« first day (2292 days earlier)      last day (2654 days later) » 

4:06 PM
ugh, just ran into a file that was previously coffeescript and never hand-re-written.
What an ugly mess.
 
I personally hate coffeescript
People say it's simplified javascript, but I find it annoying
 
I liked it for a time, but ended up abandoning it.
Once my project was down to only a little bit of CS left, I just transpiled what was left.
all the main parts were hand re-written and readable. I just ran into the dark alley of my code that was previously CS and only transpiled. never cleaned up.
I steer people away from Coffeescript if they ever bring it up here.
If I was more knowledgable about ES6 (which wasn't out yet, at the time, but probably available through 6to5) I never would have fallen in that hole.
ugh.. between coffeescript and lodash.. so much extra code
 
if es6 had come out a couple years sooner, we would never have suffered through coffeescript
 
workTypes = _.filter(workTypes, (function(_this) {
    return function(w) {
        return w.facility === _this.params.facilityId;
    };
})(this));
 
guys, how exactly do you load the index.html page on a webpack 2 dev server hot reload system?
 
4:15 PM
I can't resist the urgh to just re-write this whole file, now.
@corvid You are the webpack 2 expert. You tell us.
 
how did I become the expert on everything? :| I'm also the flow expert apparently
 
Yea. You are the only one asking questions about those topics
 
don't forget meteor
 
Can you really be an expert and a scrub at the same time? Doesn't that result in a space time paradox?
 
You can be an expert at being a scrub.
or scrubbing.
 
4:19 PM
@KendallFrey Happy belated birthday, you moose mounting syrup sucker.
 
I want to hire an expert scrubber to make my house sparkle.
 
@ssube 100k a year, and I'll do the cooking too.
 
A bang-maid.
 
I like cooking, so that's not a selling point.
and I have certain requirements for a bang maid
 
any good way to include a dependancy on a google font in a lib? Is it ok to create the link in js: ie: <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
 
4:21 PM
async/await better become a standard. If I end up transpiling this all back to plain JS ima be pissed.
@SuperUberDuper I use, in my scss file: @import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700');
 
So the job I was interviewing fell through because of the federal hiring freeze. They're a contracting company, but they're going to hold off on hiring until after they see what the gov sector does.
 
@Luggage is there a pcss equivalent?
 
I'm not certain what features are scss, css or webpack.. but that might all be normal css.
plain css. google fonts site lists that as a valid way to import
 
user2620028
@Trasiva wow, im glad i got my job when i did then :O, yeah this is a shitty situation
 
is it too much to ask for a panel pc that doesn't fucking freeze randomly?
 
4:24 PM
@Trasiva they are waiting to see if the world burns
 
kickstarter.com/projects/1460165270/… one of the stretch goals is a deck of harambe cards
@ndugger
 
@Luggage At this point he's just waiting for the fuel to atomize to the optimal level.
 
also those guys make pretty decent cards, although kickstarter.com/projects/jokerandthethief/… look dope
 
> 1.8GHz ARM Cortex-A17 CPU, 2GB LPDDR3 RAM, four USB 2.0 ports, support for gigabit LAN and Bluetooth 4.0, 3.5mm audio jack, microSD slot, Micro USB for power, swappable 802.11 b/g/n Wi-Fi antennas, and a HDMI 2.0 port with support for 4K video.
for $70
sold.
 
does anyone use koa with nodejs?
 
4:28 PM
@Luggage I guess I can use Lucida Console and not worry about it
its in every OS I think
 
...
 
when will they ever break that 2gb limit
the specs you're posting are like the windows tablet from 2 years ago
 
there's still 2gb stuff outside of museums?
 
sure, and the latest rpi is like a tablet from 2010
 
it's probably cpu/chip related
 
user2620028
4:30 PM
@Loktar windows surface pro tablet?
 
@HatterisMad no
like the cheapo tablets
the sub $150 and $100 ones
 
the surface pro uses a real chip, it can have a ton of memory
 
my windows tablet for $130 has similar specs to what @rlemon posted
 
@SuperUberDuper that thing i pasted is plain css. you should be able to use it
was on the phone.. couldn't respond at the time
 
and has an ips touch screen, it's like 2 years old now
 
4:31 PM
I'd bet that ARM before some version can't address more than 2gb
 
user2620028
@Loktar oh the rt?
 
no not the rt
those are shit lol
 
user2620028
then i am lost, a third party windows tablet?
 
yeah there are tons of third party win tablets
 
@Loktar What game(s) are on that arcade?
 
4:32 PM
random example
 
user2620028
why would you buy a third party windows tablet XD
 
> Price: $71.84
 
user2620028
but it is running the rt os right?
 
@HatterisMad what do you mean? Why would you buy a third party pc?
no rt is dead, has been dead forever
 
> Intel Atom
 
4:33 PM
it runs full win 10
they are super nice since you can run any app on them, RT ones were really limited they couldn't run normal stuff
I play steam games on mine
 
user2620028
@Loktar well hot damn, i thought the mobile proc's were limited to the rt arch
 
oh no dude, they are pretty nice esp for the price
yeah rt you could only use metro apps
the newer ones it's the full experience
 
user2620028
yeah rt was the stupidest idea they came up with i think
 
user2620028
well then thats pretty cool
 
the Dell Venus are another line
 
4:35 PM
!!> let a='‮Hello, world!';(function(){return a;console.log(a);})();
 
@TrojanByAccident "undefined" Logged: "‮Hello, world!"
 
windows tablets that run the full os
 
and do people use yield in production? Or is it still too unlegible?
 
@TrojanByAccident "‮Hello, world!"
 
user2620028
@Loktar wonder if they work with continuum
 
4:36 PM
@towc yield has been around forever, most people know what it means
 
need 1 quick suggestion, i'm a 5 year experienced php developer. Angular 2 or React JS for learning?
 
@GlenPinheiro learning what? they are different beasts
 
@GlenPinheiro do you know what yield does?
 
user2620028
@Loktar this is cheap/powerful enough i would want to disassemble it and make stupid shit out of it
 
4:37 PM
@Luggage thx, gonna use lucidia for now, don't want the users network tab spammed
 
@HatterisMad do you know yield?
 
@rlemon Yeah man, looks great. Also doesn't share the lan/usb bandwidth since they're on their own controllers
 
@SuperUberDuper That's a bad reason. It's one request that should be cached.
 
hmm I see
 
if so I guess I should start using it
 
4:38 PM
well, maybe multiple requests.. but still. It's google's CDN.
 
user2620028
@towc i know nothing
 
@HatterisMad haha right?
I used mine as a controller for my drone for a bit
 
although I can't really think of a case where I'd use yield over another structure
 
but mostly I just set it up as a mobile workstation and play games on it
any game pre 2007 can run on it perfectly
 
@towc when you're writing a generator, the only place you use them
 
4:39 PM
@Trasiva all the games btw (for the arcade)
 
@towc yield is awesome. There are some cases where it greatly improved redability.
 
like 22,000 games or so are on it
 
Oh jesus.
 
@Luggage can you give me some examples?
 
those async keywords each have one very specific use case where nothing else can replace them
 
4:39 PM
@towc pacman? (I know it was a misping lol)
 
What's your address again? No particular reason, ignore the squad of guys and the moving van.
 
user2620028
@Loktar i look at that and think maybe i could embed it into my cars dash as a carputer/radio
 
@HatterisMad yeah you for sure could
 
@Loktar oh shit sorry m8
you won another ping
 
thinking..
 
4:40 PM
haha
 
user2620028
@Loktar leaves the problem of subpar radio reception and shit audio output, but im sure i can figure out a way around it :P
 
@ssube like?
 
I mean, when I think of writing with yield, I think of it as just an object containing some state, including an index, and an array of functions that is iterated over with the index, and maybe I'd prefer that structure, I dunno
 
user2620028
@Jhawins you are 100% positive that we also wouldn't be lumped into this category?
 
4:43 PM
the most basic use of generators is to solve memory constraints, handle backpressure, that sort of thing
 
oh, I see
that would make sense
I'll keep on reading the article
 
when you can't have everything loaded into an array all at once
 
well, that's still circumventable, but I see how it then gets easier to do other things
 
@towc a rather contrived example: jsfiddle.net/luggage66/tueb7u6e
The point is.. you can 'stream' out values and use all your favorite branching structures (like if, etc)
 
Hey. This is unrelated to code, but I'm at a loss of where to start searching.

I'm trying to compile a list of the most common tricks in trolling for a paper, but none of google searches are coming up with anything useful. Do any of you have a suggestion on where to go looking/asking?
 
4:45 PM
Also, async generators are fantastic for a lot of API use cases
 
a neural net with generators would make far more sense than one without
@corvid imo you can solve many of those cases better with an observable
 
@SephReed wich kind of trolling ?
 
@Luggage not too convincing, but I'm closer to the point I guess
 
it really depends on how long you expect it to live
 
@ssube which ones in specific? I am thinking mostly of infinite pagination, which I am a big fan of using async generators for
 
4:46 PM
@ssube because memory is better managed?
 
it should only take a day to learn about generators
 
@KarmaDoe Basically any edge I can get on this thing will be enough for me to delve deeper
Internet/Political Trolling atm
 
@towc indirectly, because they compute and return an infinite series of values
 
jsfiddle.net/luggage66/tLLsyfeb generators for a react-based "wizard". (just me toying around)
 
4chan.org
 
4:47 PM
One thing I don't get about generators is when they get garbage collected. Is it only when they leave scope or stop iteration?
 
@SephReed if the other side is angry and trying to argue with you further, you're a successful troll
 
"generators" don't exist
the iterator would be collected when you stop referencing it
 
@KarmaDoe At least add an NSFW tag
 
@rlemon True enough, but there's probably names for things, in the same way as magicians name their tactics
 
that has most of the state, the locals have the rest, and the method should just exit
 
4:48 PM
An easy way to obfuscate code: stick
let a='‮'
 
@SephReed magicians don't have tactics, they don't battle.
 
@BenFortune It has it's own, and it is safe unless you delve too deep.
 
@KarmaDoe this is probably a good place to go asking.... I mean not great, but, thank you
 
@Luggage oh heh, that's kinda funny, but fair enough
 
in front of your code
 
4:48 PM
@SephReed you'll get trolled there
 
@towc that's not a great demo of their real-world use.. just me abusing them.
 
@SephReed Np, there is a tab called /politically incorrect/
go check it
 
trolling, on the internet, is not going to be well defined. it's fairly new.
 
I guess I'll try forcing yield on my stuff for a bit, and see if I prefer it to other structures later
 
@KarmaDoe Literally clicking one link takes me to an NSFW page, you don't need to go deep into 4chan
 
4:49 PM
@towc it won't make sense if you just jam it in
 
they really don't seem too inviting
 
you get to work with a stream of values both as imperitive code (if (true) yield foo;) AND as a stateful object (iterator.next()).
 
this is why you never figure out any patterns, you're using them in the wrong place
 
It's powerful.
 
@BenFortune Well, i ment, the homepage is deep enough.
 
4:50 PM
@ssube sounds like my parents
you sound*
 
don't force yield, but if you find yourself needing to construct a list using complex logic, then generators may make that more readable.
 
I'll see then
 
Also, generators let you talk both ways.
 
well, important thing is that now when I see generators in someone else's code I'll know what they do
 
if you're stacking streams on map/reduces on iterators on the results of an API
 
4:51 PM
let answer = yield "question";
 
you can cut it down to yield
 
imagine a two-way stateful conversation with a function.
 
Can't.
 
any decent neural net would instantly stack overflow with callbacks
generators will just cascade the calculation down and give you a number
 
How do you add errors to an AI?
 
4:52 PM
how do you add errors to anything?
 
user1596138
@HatterisMad Definitely not
 
Ask my parents
 
@BenjaminGruenbaum Since you just walked in. Can you think of an idiomatic example of generators that really demonstrates their value?
 
well, if I were to be making a proper neural net, I'd implement my own simple bit-based memory system for faster managing, not still use js variables and stuff
 
I'm not the one that needs convincing, btw.
 
4:53 PM
@Luggage I'm in a meetup and a talk about generaotrs is just starting, want the slides?
 
I need convincing ← pick me
 
Sure.
 
@ssube Check out "The Prestige." It's a good movie
 
I built Rx on top of generators the other day which was fun but kind of sick
 
@towc no you wouldn't, that's not practical
 
Here are the slides. Generators are awesome but a lot of people can't really use them well.
 
@SterlingArcher you sob @KendallFrey happy belated birthday
 
@rlemon Getting trolled is to be expected. And I know it's not well defined. That's what makes this a research project rather than a wiki copy pasta.
 
Room question: what should @Zirak tell @MadaraUchiha in front of 200 people?
5
You have 30 minutes to decide
gogogo
 
4:55 PM
@BenjaminGruenbaum His true feelings for him
 
@KarmaDoe Thank you very much. Who knows where this ends up, but I'm sure they'll have something to say.
 
@BenjaminGruenbaum "you're a horse mask away from my bedroom"
 
obviously he should ask a jquery question
 
@SephReed It never ends.
 
@KevinB I should raise my hand and ask 'which version of jQuery do I need for this?'
 
4:57 PM
"I use spaces"
 
those slides might be better with the talk. Without, they are noisy.
 
@Luggage yes.
those slides suck by themselves
 
@BenjaminGruenbaum 1.1, 1.11, and 2.0
in any order you want to include them
 
hm.. maybe a "choose your own adventure" would be able to demo yield (and yield return values).
 

« first day (2292 days earlier)      last day (2654 days later) »