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

04-07-2017 , 12:29 PM
The answer to most react problems is to use create-react-app and copy what they do.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-07-2017 , 03:13 PM
Looks like they do it with Babel/Webpack, and not in a particularly transparent way:

Quote:
You don’t need to install or configure tools like Webpack or Babel.
They are preconfigured and hidden so that you can focus on the code.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-07-2017 , 03:26 PM
Quote:
Originally Posted by goofyballer
Looks like they do it with Babel/Webpack, and not in a particularly transparent way:
you can run "npm run eject" for transparency.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-07-2017 , 06:24 PM
Quote:
Originally Posted by goofyballer
and I be like hay I'm on the client side I can't just require this.

Is this where I have to start digging into the browserify/babel/whatever stuff I've been avoiding, or is there a way to use this sort of thing on the client while still avoiding the yaks?
I don't really javascript but are you using some kind of tool to compile/collect all your JS into one app.js to send to your client? That's what most people do. Webpack or whatever. In those cases, the requires() get handled at "build" time.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-08-2017 , 09:47 PM
Quote:
Originally Posted by goofyballer
Is this where I have to start digging into the browserify/babel/whatever stuff I've been avoiding, or is there a way to use this sort of thing on the client while still avoiding the yaks?
you can just include the file in the global namespace via an html script tag or concat your files so the stuff you need appears first. then just lose the require statement. you may have to declare it as a globally available object so webpack/browserify don't complain.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-08-2017 , 09:58 PM
I eventually figured out what to do with browserify - something like that would probably have worked too but I'm not sure how to tell the Typescript compiler that something's globally available like that.

I now have a 777kb JS bundle with react, react-dom, and react-linkify. Mobile bandwidth caps everywhere will weep.

Last edited by goofyballer; 04-08-2017 at 10:03 PM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-08-2017 , 10:02 PM
Linkify Baconfy!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-08-2017 , 10:33 PM
any reasonable js app should be under 200k so there's something not right.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2017 , 12:28 AM
Quote:
Originally Posted by Grue
any reasonable js app should be under 200k so there's something not right.
+1
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2017 , 12:58 AM
According to this react and react-dom are yuuuuge by themselves. I'm not doing any minification or gzipping or whatever fancy things the kids do. My own JS source (when compiled from typescript, before browserify bundles it) is 5kb.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2017 , 10:58 AM
Quote:
Originally Posted by goofyballer
I eventually figured out what to do with browserify - something like that would probably have worked too but I'm not sure how to tell the Typescript compiler that something's globally available like that.

I now have a 777kb JS bundle with react, react-dom, and react-linkify. Mobile bandwidth caps everywhere will weep.
Is that Gzipped? If not, you'll see huge gains. Main Construct 3 JS file is ~1.5mb uncompressed, and 430kb Gzipped.

Last edited by Gullanian; 04-09-2017 at 11:04 AM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2017 , 11:02 AM
Quote:
Originally Posted by Grue
any reasonable js app should be under 200k so there's something not right.
Think that's a bit of an arbitrary rule of thumb, like anything it depends what it's trying to do
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2017 , 06:04 PM
Quote:
Originally Posted by goofyballer
According to this react and react-dom are yuuuuge by themselves. I'm not doing any minification or gzipping or whatever fancy things the kids do. My own JS source (when compiled from typescript, before browserify bundles it) is 5kb.
def run it thru uglify, it's like a 20char change if you're already using browserify. gzipping youd turn on at web server level
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2017 , 06:17 PM
Gzip on express is a one liner after the npm i.

Sent from my SM-G925V using Tapatalk
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2017 , 10:31 PM
Talked to some people on Friday who were both also bootcampers, both from the "top 2" in SF. One had just gotten a FT job after 7 months, one has been working for some time but has friends still searching after 7 months or so as well. They were pretty bearish on SF bootcamps going forward, and it's one of the first times I've seen anyone on the "inside" other than me being Chicken Little about them. The one who just got hired isn't sure what to say when friends ask him if he recommends a BC, and the other told a friend a few months ago that they should do one but is now quite nervous about that.

Published outcomes on one of the top SF bootcamps have declined recently (granted, it's still 90%+).

The one who recently got hired said that the resume "spamming" approach doesn't work well anymore; you won't get responses and you need to get real referrals. Still, his total amount of jobs applied to was only slightly higher than mine almost 2 years ago.

They reiterate that, in SF at least, there is none of this "super helpful careers department that will get you in the door" at bootcamps that a lot of you and people around the internet have in their heads.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-10-2017 , 02:24 AM
Well, another BC just popped up in NE ohio. It is specializing in women and minorities.

Last i checked the one i went to has a waitlist and is expanding to columbus.

So, ya screw SF. Move to ohio.

But i do wonder how long it will last. It seems they are pumping out around 300 jobs a year.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-10-2017 , 11:39 AM
Quote:
Originally Posted by Baltimore Jones
They reiterate that, in SF at least, there is none of this "super helpful careers department that will get you in the door" at bootcamps that a lot of you and people around the internet have in their heads.
It is in all school's self-interests to promote employment numbers to get students in the door (and many will count serving tables as a pip). Anyone who's went to school in California can tell you that no school is legally allowed to help you get into any door. I'm sure an incoming student, if they ask this question intake point-blank, would be told about this. Most students will only pay attention to the got-a-job numbers, not the details of what those numbers mean or what the school can legally do.

Career counselors are surprisingly powerless, thought they are able to access jobs and internships that may be hard to find or know about. For example, when I was doing something related to the film business years back, I would call up a local school and tell them I have a job available, paying $X, and that would be my entire employee search. She would then post about it on the school job board, but she wasn't allowed to hand-pick the best students or call me to see if I have more work.

I hope a student would do a little more due diligence if they are planning to drop $20k to move the SF and attend a school, but it would be kind of honorable for schools to explain this stuff as well.

Or you can move to Ohio.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-12-2017 , 01:55 AM
Quote:
Originally Posted by PJo336
dG



done
shift+V Gd

perhaps a bad vim habit but I always highlight text before messing with it
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-12-2017 , 01:56 AM
Gotta a nice little FU c/o Linux last night. Thankfully, the damage was minimal, and may even be a bit beneficial.

I normally use LXDE for my DE, as I have for years, and I was kind of getting sick of looking at 1980s graphics and decided to switch. I found LXQT, the "next LXDE" and installed it. It was buggy, so I uninstalled it.

Well, it didn't stop at uinstalling itself... it uinstalled LXQT, LXDE, AND openbox. I could do nothing but access the trouble-shooting command line.

One would think I could just "dnf install lxde" and be done with it, but nooooo, the uninstall also removed all of the network drivers, so no wifi, no hooking up the cord, etc. I did a bit more searching and tried "dnf history undo last" and it crashed because it removed some god-knows-what fonts from the system, and those fonts were no longer in the cache.

I have 2 USBs, so moved a bunch of stuff over to USB #1. The other USB had Fedora 24 on it, so I installed 24 and upgraded to 25. This failed hard and I was only get into grub. In theory, this isn't like a huge deal, but alas, the upgrade removed the root home directory and removed the grub.conf file, so stuck yet again.

A roommate has Windows so I installed Fedora Jam Lab, which is a massive relief. It has the audio codecs, Jack, Ardour, ALSA, and all of the other stuff I need for recording pre-packaged. This is a total PITA to do by hand and I didn't bother writing all the steps down when I did it before, so the bitter pill has the sweet flavoring of knowing this setup was done by someone who knew what they were doing.

This flavor came with KDE, which is a bit different. It's actually very nice looking and highly customizable. It'll take getting some used to, but I'm pleased that I wasn't turned off by it immediately like I am with just about every other DE I've tried. A little bit mouse-centric by default, but you can customize all of that to hotkeys. I'm loving the win-[type program] function.

I thought these horror stories were a remnant of the past, but I guess not.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-12-2017 , 03:39 AM
KDE is my favourite.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-12-2017 , 08:29 AM
i3 all the way baby
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-12-2017 , 10:21 AM
Not to start a debate, but tabs vs spaces is basically that tabs sometimes format to 4 spaces and spaces are always spaces but they take more space?

If I can start a habit I guess based on what is said itt spaces seems solid?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-12-2017 , 10:35 AM
Yeah, basically you can never guarantee what your code looks like when you use tab characters. A tab character might be displayed as an arbitrary size in an editor or code viewer.

I think the main argument against spaces is mostly philosophical; that tabs are the "one true" character for formatting. The taking space argument is a non-starter imo with how cheap memory is today (in any form). If you need to worry about space then you're going to be using an uglifier anyway.

I think it doesn't really matter which you use as long as its consistent (internally and externally).

Last edited by Wolfram; 04-12-2017 at 10:41 AM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-12-2017 , 10:54 AM
I think most editors convert tabs to spaces by default anyways. The rest should have an option to automatically convert and the ones that don't have the option aren't worth using, so keep on pressing that TAB button.

And before you ask the follow-up, emacs.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-12-2017 , 12:17 PM
Emacs usage correlates 100% to being some kind of ****tard in my experience. The only two emacs users at my company are the only two people we've fired.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m