Open Side Menu Go to the Top
Register
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

10-03-2018 , 02:59 AM
So I applied to a company today that is in pre-funding stage. Part of their tech stack is Laravel (PHP). Naturally, I wanted to know if this was just part of initial launch. Basically, are they planning to use PHP longterm or is it just to try and get something launched quickly. They plan on sticking with Laravel for the long term. Would you accept a role at this company? I'm generally of the opinion that there are far better options than PHP which afaik is the majority opinion as well.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 04:07 AM
I did PHP for like 6 years and thought it was great. I could see a problem if you were on a big team and people didn't agree to any consistency in style and syntax, but I was either alone or senior on a small team.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 07:38 AM
I think a lot depends on their answer to why they’re using it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 10:58 AM
I wouldn't turn down a good opportunity just because it's a meme to hate php
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 02:58 PM
Quote:
Originally Posted by jjshabado
I think a lot depends on their answer to why they’re using it.
I think it's likely all the normal reasons. Easy to get started, fast to get a prototype up and working, big hiring pool, etc. I think that probably makes sense for an initial launch but not for later on after you've been in business for a number of years.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 03:26 PM
Is it ok to ask questions such at this in this thread...?

Trying to learn React and I've tried every combination of thing I can think of and looked up a bunch of Stack Overflow answers, but to no avail and I'd like to understand this more than just make it work.

Code:
import React, { Component } from 'react';
import Layout from "./Components/Layout"
import './App.css';

class App extends Component {

 mouseOut() {
   console.log("Mouse out!!!");
  }
  
  mouseOver() {
    console.log("Mouse over!!!");
  }

  render() {
    return (
      <div>
	    <img src="./picture.jpg" onMouseOut={ () => this.mouseOut()} onMouseOver={ () => this.mouseOver()} height="100" width="100"   />
	<Layout />
      </div>
    );
  }
}

export default App;
The mouseOut and mouseOver functions get called when you click on and then off of the image, but don't happen when hovering over and leaving.

??
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 03:34 PM
GOD ****ING DAMNIT it works in Firefox, but not Chrome. I thought all this ****ing framework bull**** was supposed to make things work crossbrowser!!!!!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 03:39 PM
Did you try all lowercase in the event method calls? IE - onmouseout, onmouseover. Your function names are fine. https://www.w3schools.com/jsref/event_onmouseout.asp

Javascript and HTML have a weird relationship like that. Camel case with Javascript but all lower case when called inline in HTML elements (except when it's not).
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 03:46 PM
Ok, nevermind. I had Chrome on device emulator for a phone and that could only have happened by an errant misclick. I've been trying to figure this out for hours.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 03:48 PM
Quote:
Originally Posted by suzzer99
Did you try all lowercase in the event method calls? IE - onmouseout, onmouseover. Your function names are fine. https://www.w3schools.com/jsref/event_onmouseout.asp

Javascript and HTML have a weird relationship like that. Camel case with Javascript but all lower case when called inline in HTML elements (except when it's not).
From the last post - it works. I did try lots of case changes. REACT seems to require some of the javascript to be camel cased inside the render function or something like that.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 03:48 PM
That'll do it. No hover on phone.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 03:50 PM
Quote:
Originally Posted by suzzer99
Did you try all lowercase in the event method calls? IE - onmouseout, onmouseover. Your function names are fine. https://www.w3schools.com/jsref/event_onmouseout.asp

Javascript and HTML have a weird relationship like that. Camel case with Javascript but all lower case when called inline in HTML elements (except when it's not).
The stuff you see there is React JSX which is almost but not entirely unlike HTML. It tends to enforce camelcase for stuff that isn't camelcase in HTML. Although TBH I don't know for sure about JS events like this.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 04:00 PM
Yeah that seems weird since onmouseout is just an HMTL property on the image element, and you'd think react would just interpolate the stuff inside the { }. But maybe that's the way it is.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 04:42 PM
Quote:
Originally Posted by suzzer99
Yeah that seems weird since onmouseout is just an HMTL property on the image element, and you'd think react would just interpolate the stuff inside the { }. But maybe that's the way it is.
Yeah it's pretty annoying. They do it for CSS properties too. I think it will work outside of strict mode but it'll nastygram you all day for it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 04:55 PM
Microbet, yes it's absolutely fine to post things like that here.

You have a missing <Layout> which I assume is just a copy/paste error. Otherwise looks perfect. What a difficult to spot error in test environment configuration!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 05:10 PM
I don't think there's a missing tag - he used <Layout /> which is both an opening and closing tag.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 05:21 PM
ah yes

Last edited by _dave_; 10-03-2018 at 05:22 PM. Reason: indentation plus lack of coffee is my excuse lol
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 07:04 PM
Spent a few minutes trying to figure out why this code wasn't working:

Code:
region: us-west-2
Then I realized it was actually:

Code:
region: us-west=2
Not the first time I've been tripped up on - vs. =. I may need to give in and start wearing glasses.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 07:11 PM
Someone once slipped a 0 where a O should go, and I was using a font where they were very similar and holy crap I stared at that a long time.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 07:25 PM
Misnamed variables are the cause of like 99% of the bugs i end up dealing with. Luckily it becomes pretty obvious with scripts that you have done this.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 07:57 PM
I've got a super-computer in my pocket and my fridge can order its own groceries - but apparently these are still unsolvable technical problems:

1) Wireless headphones that actually work

2) Not constantly getting external monitors mixed up and rearranging or switching applications from one to another (Mac only)

Fun combo - somehow my wireless headphones can get in a weird sleep mode and stop all video from playing - doesn't matter if it's youtube, facebook or what. Only reboot could fix it.

But after going crazy trying 100 different things - I finally figured out if I unplug and re-plug the two usb3 (or thunderbolt 3 or whatever the hell they are) ports that everything plugs into - then video immediately starts playing. But of course then all my windows are rearranged and it's like a 50-50 shot if my monitors are swapped.

The weirdest part is the mac still knows where the monitors are in relation to each other. So it switches all programs even though it still knows which monitor is on the right and which on the left. Figure that one out.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 08:26 PM
Yeah mac's window arrangement stuff is awful. Sometimes I'll unplug my laptop from external monitors do some stuff am and then plug it back in and one of the windows I was actively using has collapsed down to just enough pixels to display the traffic light controls. And of course that tiny box is positioned halfway offscreen
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 08:37 PM
You don’t know Mac screen hell until you lose a terminal window in between monitor views
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 09:46 PM
Quote:
Originally Posted by jmakin
You don’t know Mac screen hell until you lose a terminal window in between monitor views
haha this drives me insane!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-03-2018 , 10:34 PM
Work wants me to supervise some contractors from Belarus and be the lead on a feature. It sounds like a great opportunity on paper but I have almost no managerial aspirations. Am I pretty much obligated to do this or is there a good way to politely decline?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m