« first day (2738 days earlier)      last day (2214 days later) » 

6:14 PM
@SterlingArcher we require photos!
 
@SterlingArcher now you need key caps
my F keys are all smiley faces with X eyes, not sure where I got them
 
Fucking hell F1 put on a good show this weekend
 
6:31 PM
hi
 
@Avikool91 Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
just came across that article when I was looking at something else
goes back to the discussion about LCD inherent latency
 
6:53 PM
$150 off :D $50 sale, $100 in rewards I didn’t know I had
 
@SterlingArcher are those batteries?
 
Yeah that’s why I went there in the first place lol he scanned my card and was like do you wanna apply this to your $100 reward balance I was like whaaaaaa
 
I paid $1000 for mine
 
did you find out why you had it?
 
well, the vive
 
6:55 PM
also, why were you buying batteries?
 
I spend a lot of money at Best Buy
To... power things with electricity?
 
like... a torch?
 
That’s powered by fire dummy
 
no really though
what do you use that still uses batteries?
 
lol they’re for my Xbox controllers
 
6:57 PM
ah, ok
 
and spares in general
 
no blame there
ok you're confusing me again
what else do you have that uses batteries?
I think we need to help you reconsider your life choices
and if I say it, it really must mean something
 
i mean it’s just always good for emergencies to have batteries lying around
flashlights etc
 
I got some 18650 flashlights from banggood
 
afk driving home
 
6:59 PM
holy shit are they bright. One has a police mode that will blind you at night
 
do you have a loudspeaker too?
 
thank fuck factorio autosaves
first power blip of the weekend
And this time it's out for good 🙁
 
7:17 PM
Storm?
 
so, TIL npm edit
does anyone here ever use it?
> After it has been edited, the package is rebuilt so as to pick up any changes in compiled packages.
npm builds packages?
 
surely not
 
any difference between this and editing the files at node_modules/<module>?
 
Not a Package Manager
 
7:24 PM
@ssube it... still doesn't build them, right?
it manages them, adds them to projects
but doesn't actually touch the code afaik, other than for package[-lock].json
 
you can add other things with the scripts, but by default, that's all it does
 
uhm, where does the building come in?
you mean it automatically runs npm run build or something?
I guess I can look at the npm source
but urgh
 
reading other people's code is hard
sometimes they use standards, it can be downright barbaric
 
it's something I shouldn't have to do when it comes to npm
there's the docs for that
 
just put around 310k items in my bin... i think i have a problem
 
7:31 PM
How come it has a split USB?
It’s so pretty though! The texture feels awesome
cc @KamilSolecki
 
One for the keyboard, one for the hub or for extra power
 
Do they both need to be plugged in at all times?
 
Probably not
The may have symbols on the to know which is which
 
Gosh I don't know if I'll have enough USB ports lol
 
iirc, the blackwidow chroma also has 2, but that was for connecting another keyboard or w/e
 
thats what i remember though :D
 
You will. Also the keyboard is probably a USB hub and theonitor may be too
 
you might be able to plug your mouse into the keyboard and the keyboard (both plugs) into the monitor
then plug the monitor into the desktop and wrap everything up
 
Oh yes you're right!
 
But that Dell probably has many ports
 
7:36 PM
actually I'm not sure how npm is doing anything. There seem to be unresolved paths in the bin/npm
 
Yup there's a USB port on the abck of the keyboard
 
yeah, you're more likely to end up with a short cable on one odd device
 
var npm = require('../lib/npm.js')
but ../lib only has a node_modules in it
 
My surge protector has a 2 USB powers so that will free up a power port at least
 
also, no semicolons?
is this standardJS, that you were all shitting on?
 
7:38 PM
@towc not everybody believes semi-colons are needed in JS. They just let the ASI handle it
 
 
Unboxing the rift now because I have no self control :D
 
@SterlingArcher are you patronizing me?
 
adopt me first
 
7:39 PM
@towc what're those underlines
 
do you know what that word means?
 
@Zirak linting errors
 
lint requires semicolons and double quotes?
 
@Zirak my global config does
and no, it's complaining about unresolved paths
not single quotes
 
7:41 PM
Is there an easier way to get the first element of a dicionary? dictionary[Object.keys(dictionary)[0]]
 
there's no such thing "first element of a dictionary"
the keys don't have a specific order, it's implementation dependant
 
ITS SO PRETTY
 
If you want order, use an array
 
the controllers feel so natural
@Loktar :D
 
@SterlingArcher oh, is that a Rift?
 
7:43 PM
!!giphy archer neat
 
@Zirak yup! Just got it on a whim
 
@Zirak "implementation dependant"? Aren't they in the order which I add them?
 
@EnderLook They don't have to be
 
7:43 PM
uhm
disappointed
 
They can be, they might be, but nobody guarantees that. It might change tomorrow on one browser or engine.
 
The 2-5 day wait just got even worse
 
Oh, that is a pity :(
 
Again, that's just not what dicts are. Arrays are ordered
Dicts are for fast lookup, and if sorting keys one way makes it faster than the other, then that's what implementations will use
 
 
7:49 PM
gtfo
 
wow
very diet
 
8:01 PM
@SterlingArcher does the keyboard have a USB hub
 
8:13 PM
:a hub?
 
@BenjaminGruenbaum Yep, this is totally fucked
Next stop 1) Content-Encoding and http proxies 2) Content-Encoding and range requests
 
@SterlingArcher hah nice dude
I didn't realize you ordered one
You're still waiting on your PC right?
if so god dang dude you've gotten EVERYTHING before
 
// I have some code that looks like this:

const obj = {
  a: 'a',
  b: 'b',
};

if(someOption) {
  let a = 1;
  const b = 2;

  obj.a = a;
  obj.b = b;
}

const { a, b } = obj;
 
@Loktar haha I went to best buy to get batteries and saw it was $50 off and was like eeeehhh maybe and then the guy said I had $100 in rewards so i was likw $250 for a rift bundle? Might as well!
 
first question: is there a more elegant way of doing the obj.a = a; obj.b = b?
a more easily changeable one would be to use let obj, and then doing obj = { ...obj, a, b }
 
8:25 PM
don't do that unless you need a new reference
 
but that feels wrong because obj is unnecessarily re-assignable
 
you can use Object.assign
 
another one is Object.assign(obj, { a, b })
but that feels so 2014
 
there's nothing wrong with settings the properties
 
is there a new thing cool kids use?
 
8:26 PM
@SterlingArcher oh shit it's $50 off??
 
@Mosho like obj.a = a?
 
yes
 
@towc don't over complicate your code for the sake of complicating it
 
the wrong thing is that you type things twice :/
 
I was thinking of grabbing another for my secondary machine for my kids..
 
8:27 PM
@Loktar it was at my best buy, but I don't think it's a legit sale
 
@towc so?
 
I don't see it online
Maybe they messed up the pricing?
 
@Mosho you should only have to type them once
 
@towc why?
 
ah, well good deal regardless
 
8:28 PM
@Mosho to change it more easily in the future?
 
I have to head to BB today to get a new router today anyway so prob wont spend more on another rift I guess lol
 
Haha I didn't even go there with the intention of buying it
 
if I think "oh no, I'll have to type something twice to make it better", I'll be much less likely to do it
Object.assign is the more likely option, but I hope I'm missing something more elegant
 
Now I really can't wait. I'm way too antsy
 
@towc I don't think it has any effect on difficulty to change it in the future
Object.assign is fine though
a little overthinking though
 
8:30 PM
for one, context-renaming won't change obj.<x>, when applied to the assigned value
so it makes the tools harder to use
and might be cause for confusing bugs
 
How is Young Sheldon still running.. I can't see anybody watching that abortion of a show
 
"but I renamed this, why is it not working?"
 
@towc and it shouldn't
renaming a random variable shouldn't have an effect on that object's keys
that would be the worse option
 
@Mosho usually, sure, but it's what I want to happen in this specific case
it might still not work with the property assignment shorthand ({ a }), but it will be more clear that there might be a mistake there
I think my problem is with javascript in general
 
Oh my surge protector came. The front desk must hate me right now lol I've gotten like 8 packages in 3 days
 
8:33 PM
but I haven't found a language that's better than it yet
 
is it seriously winter again
I have to shovel the driveway?
 
omg, I can go by "τc"
get it?
GET IT?
 
tempting...
 
8:59 PM
@towc boy you will be surprised
 
@KamilSolecki examples?
 
C#, of course!
 
mmm don't have experience with it
 
C# feels like working with a mature, complete language, but does keep up with the times and new functionalities
 
My opinion is skewed, since I only had the chance to work on existing codebases with very specific demands, but I did not enjoy the c# experience
 
9:02 PM
@Zirak any specifics that you didnt like?
 
I loathe Visual Studio with the hatred of a thousand suns, and whenever I had to interface with weird-but-not-too-weird APIs I was very disappointed
Like SMTP, or directories, or the registry, or WMI
 
well so the libraries, not exactly the language
 
It's not c# itself really (though it also pained me at times). The .net framework is a 16 year old which doesn't get carded and tells you it's legal
You discover the mistake way too late when you're in deep
 
also, you can do C# in VSCode
but Core
 
I did it with emacs at the end, but it wasn't for long stretches of time so I didn't invest the time to configure it properly
 
9:04 PM
not the big .net framework
 
From a language perspective, some things felt very ad-hoc, like tuples and function types
Enumerables are nice but they're weird
 
tuples sucked until they introduced named tuples
 
Extension methods are cute but they're really a way to get extensibility when your type system sucks
 
so they dont suck anymore
 
And I dunno...the type system felt weird
And I faced some problems with generics, like how you can't create a generic which accepts both an object and a value
On the one hand it makes sense, on the other...isn't it the point?
Like the dynamic dispatch was both in and not in
meh, I don't want to complain too much, since it's enough to get by most of the time
And I didn't pay too much attention to the language, the environment was just oh so fucking bad
Let's talk about AppConfig
wtf
like really
wtf
 
9:08 PM
yeah appconfig is shaite
and I personally don't like the tie that C# makes to XML
 
oh, and the ten million serialisation formats
 
I mean
its kinda a good thing?
gives you options
also what do you mean you cannot pass type and value to a generic method
 
See, it's a double edged sword
On the one hand, great
On the other, it reminded me of Go: You had to annotate each value with a bazillion decorators for each serialization format
oh yeah you had to use completely different interfaces when you had cyclical values
 
I guess, its just that C# likes explicity a lot. Love it or hate it, I personally learned to live with it
it does get ridiculous sometimes yes
 
@KamilSolecki I don't remember exactly, but it was something like I had a Something<T> and sometimes T was an object, and sometimes it was int or whatever. And c# yelled at me that it can't figure it out, because it upcast int to some object
 
9:12 PM
but yeah you can do .net core in VSCode ^
 
@KamilSolecki hhrrnnghhh you're bringing me back
The wrapper classes and glue...
 
and you get full debugging and launch etc
 
Way less worse than Java, way way less worse. Especially Java 6, it was the devil.
 
if only there was a better way to say "less worse"
 
No, less worse
On the scale of "worse" to "way worse", it was "less worse"
 
9:15 PM
a scale can't have worse because it's comparative
 
I just wish JS had a type system
and all that comes with it
method overloading
 
it does
 
@Mosho You can't handle the truth
 
@Mosho not a real one
 
@KamilSolecki and I like the lack of a type system :D
 
9:16 PM
@KamilSolecki I mean typescript
 
@Mosho its a workaround that still won't solve certain things. when I write JS I always do TS, but there is things that you simply cannot have without runtime types.
again, real types, not just 5 of em
 
perhaps
but duck typing should be enough in that case
there are libraries that implement runtime types in JS/TS
I never had to use one though
 
will I ever need my SettingsReader anywhere else than startup
hmm
I dont think so
 
though I suppose that's usually how defending JS goes
"it may not have this feature but check out this cool library that does the same"
 
lmao yeah
I am so happy with .NET Core 2.1 preview 2 so far that Im just gonna go ahead and put it in production lol
 
9:27 PM
ok
 
so far there is only 46 very case specific and very obscure bugs
 
my "suicide" rated sandwich has arrived
 
wait did you go for it
damn
I once ate a super-sambal kebab
 
RIP bhole @Mosho
 
There are also a lot of things you can do explicitly because there's no real typesystem in JS
Great and terrible things.
 
9:29 PM
I went on the wall for people who tried, but yeah my stomach did NOT like it
needless to say the time I spent in the bathroom that night was what I imagine a napalm over Vietnam felt like
 
There's one thing I miss from proper typed languages (don't think c# has this actually): Enum protection
Whenever I have an enum, it follows the "zero, one, always" policy, and having something to enforce it is useful
So if you're, say, traversing an AST and you get a Node type, and you have pattern matching/switch case/whatever over its subtype, you either don't care about the subtype, you care about one case, or you have to handle all cases
 
"suicide" is probably an exaggeration
but you know what
for a random mediterranean place it's pretty fucking hot
 
I went to this little thai place in seattle a month ago
I got their 4 out of 5 hot level
cried like a bitch
 
Btw, im gonna be missing for a week (will probably pop in-out) cause Im going to Spain this week
so @GNi33 @BenFortune I leave yall with the chatroom morning cleanups :P
I got corrida tickets
for tuesday
Its also Feria in Sevilla so its gonna be some top torreadors
 
9:38 PM
feria, eh?
going for the corrida, sure. Not at all for the drinks.
 
Hey guys pls some help would be nice, why my observable array not filtering in view ? stackblitz.com/edit/angular-rnkbnf?file=app%2Fapp.component.ts
 
@FlorianMargaine shh dont let them know
 
@KamilSolecki hmm. On the one hand, I'm sure that's pretty interesting to see. On the other, I don't know if I'd really want to
but have fun. Just going for vacation or something else?
@Mosho haha, that stuff will fuck you up
 
@GNi33 yeah, vacation
 
nice, enjoy
 
9:52 PM
danke
shitt, foot cramp
aargh
 
I'm thinking about a semester abroad in Alicante
 
that sounds cool
I dont think any blood is reaching my right foot right now
 
yeah, I'll have to check out my options here
 
do you do any spanish?
 
none whatsoever
 
9:57 PM
its a fun language
and a useful one as so many people speak it
anotha opportunity to learn it :P
 
here come the farts
 
10:11 PM
Fucking still no power
 
next time you will surely remember to pay the electricity bills!
 
Not the electricity bill, it was the weather bill
Anand it's back
 
which channel is the weather bill on
 
A__
hi, i'm new to the facebook api and can't figure out how to just get a list of videos (or any media for that matter) site-wide, rather than just a given page/user. anyone happen to know if this is not possible by design? this page implies it's not i guess but just want to confirm from anyone familiar w fb graph api
 
@KendallFrey idea: placing monetary bets on wether planet 9 in our solar system exists or not
 
10:26 PM
better idea: placing bets on things that can be verified
 

« first day (2738 days earlier)      last day (2214 days later) »