« first day (2754 days earlier)      last day (2190 days later) » 

12:00 PM
I have a habit of using let with promises because I know promises change.. I've actually never thought that consciously and always assumed it would either break something now or in a near feature revision.
 
I feel like, in 10 years, WASM will be very popular, and JS will lose market share to C++ znd potentially GCed languages once WASM gets that module
 
or rust
 
JS might lose some but theres no way it'll take the backseat
 
I tried Rust... I’m not convinced it will take over. The learning curve is steep.
 
actually .. EcmaScript did pretty well in the past 10 years, envolving the language to number #1. If it keeps doing that, I don't see any language challenging
 
12:01 PM
@BenjaminGruenbaum I'll look into it. Thanks
 
@Feathercrown I guess we’ll have to wait and see. 10 years is a long time in tech
 
Web assembly is the future lol!
 
s/future/present/
 
so, I have a friend whose father got fired from IBM recently. He was 4 months from retirement. That really sucks
 
Yeah 10 years is a very long time
oof :(
 
12:04 PM
I don't know if he was a bad programmer or something, but looking things up online, it seems like IBM is getting a huge age bias
 
I've heard IBM has a bad rep as an employer
 
also, the severance is 1 month of pay. Really shitty
 
I predict we see at least four new "major frameworks" in js frontend in 10 years, but I still see EcmaScript on number #1 position then
 
I don’t
 
12:06 PM
in 6 years php dies, but in 7 years, hipsters bring it back
 
I've heard PHP is dying ever since I got here
 
I probably wouldn't be surprised if they "merge" with TypeScript or EcmaScript itself will become "type-safe", but still, it will be ECMAscript
 
I hope we won't be writing JS in 10 years
 
it's like nuclear fusion. always 5 years away
 
I hope it gets better
@Luggage lmao
 
12:07 PM
I honestly think, the evolution of ES is unique (and exceptionally great) when it comes to asycronous programming. Concepts like promises are very old, but what ES evolved these things to in single-threaded environments, is really awesome
 
Why do people always want JS to be strongly-typed? It's one of its unique features. Does everyone just want all programming languages to gravitate towards the same thing?
 
I'd agree to that aswell
 
@Feathercrown because weak typing is very hard to reason about
@jAndy to be fair, we're about the same point other languages are, and some languages have had these things a lot sooner
 
But JS will never be TypeScript, so no worries.
 
the problem what JS has is, it became too popular. People trying to do everything with ES nowdays, from programming games, microchips .. anything. And there, type-safety plays an important role
 
12:09 PM
You can opt-in.
 
Well yeah JS isn't really the best language for microchips
Games though, I think you're wrong
I've made plenty of JS games and I've never run into typing problems
 
@BenjaminGruenbaum well, what language really had the concept of promises for collecting and dealing with callbacks before? I can think of Huskell probably? And then the syntax sugars with async/await for dealing with such constructs is brilliant imo
which other language had this issues (single-threaded) and "needs to run in a browser"
@Feathercrown I didn't really mean it can't be done in JS, I was more referring to, that so many people and programmers came from other languages to JS. That lead to pseudo classes, the wish for type-safety and a whole lot other things
 
@Feathercrown Never encountered "cannot read property whatever of undefined"?
I call BS
 
who's BS and why are you calling them?
does our relationship mean nothing?
I thought you loved me
 
@Feathercrown I'm looking at using Rust to build a game engine
 
12:15 PM
@MadaraUchiha what has that do to with type-safety?
 
@jAndy TypeScript with strictNullChecks don't allow you to have nulls implicitly
And if you do have nulls, it will force you to explicitly declare them and handle them.
 
that problem could potentially be fixed (emulated) by pre-compilers like webpack easily
maybe not so easily
 
@jAndy How?
Providing a default value is generally a lazy solution that would mean you get unexpected values 5 layers down the line
 
how would type-safety change anything here anyways. I you augment an object or a nested object at runtime programatically
it can always happen
"cannot read property whatever of undefined"
 
@jAndy TypeScript won't let you by default.
 
12:18 PM
that sucks too imo
 
const o = {x: 42};
console.log(o.y.whatever); // compilation error
 
that's a major feature of the success of Ecmascript
having that freedom
 
@jAndy You still can
You just have to be explicit about it
 
so it still can potentially happen in TypeScript
 
No, it can't
 
12:19 PM
It doesn't prevent you from mutating objects, you just type an object as having dynamic keys and you can stick new props on with reckless abandon
 
console.log((o as any).y.whatever); // no compilation error
 
interface I {
  x: number;
  y?: {whatever: string}
}

const o: I = {x: 42};
console.log(o.y.whatever); // compilation error, o.y is potentially undefined.
@FredKleuver That's explicitly shooting yourself in the foot
 
I still dont think this is a typing issue
 
With a proper interface, you are forced to handle the situation where o.y is undefined
 
That was the point though, saying you have the freedom of es6 if you wanted to
 
12:20 PM
console.log(o.y ? o.y.whatever : 'no value'); // works
 
It's banning a certain type, not forcing variables to be a certain type, that fixes the "problem"
So IMO it isn't a strict- vs loose- type problem
 
looks to me like another case of "cookie-cuttering" bad (unexperienced) programmers from mistakes in a language, they don't know much about
 
I want to be able to do this:
 
dealing with this kind of situations properly in native ES is actually very easy to accomplish
 
^ jAndy
 
12:22 PM
@jAndy Dealing with it is easy
 
Just because JS has different ways of handling these things doesn't mean it's bad and you should implement the old ways
 
The problem is when you don't detect the case in time and suddenly you have errors and crashes in production.
 
let accumulation = {item1, item2, item3} = this.state;
 
*old --> other languages'
 
@MadaraUchiha then you wrote bad code in the first place
 
12:23 PM
Of course it's easy, but in a large codebase those 'easy to handle' situations add up and you start missing the compile-time checks that other languages give you.
 
^ @jAndy lol
 
@jAndy Not necessarily, not to mention you're not always responsible just for your own code.
The compiler gives you a lot of value, preventing a large class of problems, for a relatively low price.
 
@jAndy How is that a bad thing though? I started with TypeScript when I was bad at JavaScript. After working with it for some years, I'm now comfortable in both. For me, the main benefit of TypeScript at this point is that you'll automatically get better documentation for users of your API.
 
@jAndy C#, F#, Scala, Java (to an extent), Haskell and a bunch of others
@jAndy "needs to run in a browser" is a cheap shot :P But... ActionScript
 
I mean.. come one boys. If you dealing with dynamic objects and accessing stuff like oh.my.gosh.its.so.deep.johnny, you want to make sure the access paths are available and defined
 
12:24 PM
JS doesn't need to run in a browser anyways
 
either by writing your own routine or using try/catch
 
Having proper intellisense is less time-consuming though
 
@FredKleuver That is actually the biggest win with TypeScript
 
@BenjaminGruenbaum I think "needs to run in a browser" is the ultimate shot :P
because of the single-threaded environment linked to the UI queue
 
(((Node.js)))
 
12:27 PM
@jAndy that makes sense for non browser environments too though :D
@jAndy right, but one way to do that is to not have them as objects (have them as dictionaries - which is explicit).
 
kind of, but nowhere else it has such a direct influence on humans (user experience), means.. if the UI freezes
 
@BenjaminGruenbaum any opinion on the nginx-kaltura module?
that hls-manifest creator on the fly
for static mp4 videos
 
@MadaraUchiha Do you have any good resources on how to properly structure stores and models and whatnot
 
@Cereal Not really, we're still kind of feeling around ourselves.
If you find something good, let me know
 
12:32 PM
Will do
 
@jAndy I haven't used it, I just asked around - it works well, we used it several times and Eran (who wrote it) is very well regarded.
Although I'd probably convert it ahead of time if I were you
 
I'm actually pondering that decision, between doing it dynamically or create those manifest once with ffmpeg
 
We have a tutorial on doing that with ffmpeg if you'd like
I'll just say it like it is - from what I hear here the mp4 plugin is for very long-tail content (a lot of videos seen only a few times) which may or may not be very common in porn.
The more times you serve a video the worse mp4 will be - there is also a plugin to limit mp4 bandwidth on nginx
Though mp4 is a bad format for online video delivery IMO.
 
why is that
isn't Youtube actually converting videos to mp4
(what doesn't mean that it is good or anything)
 
What? YouTube works with DASH
Actually, their own called "Youtube DASH", which is very similar to HLS (segment based) and not mp4.
 
12:41 PM
I thought DASH is just another segmenter manifest type
 
@jAndy The Game
 
without regard on the file-type
 
There are some cases you need mp4 support.
@jAndy it is, mpd and hls serve the same purpose, one is an Apple standard and one is a Google standard, HLS is what everyone is using
 
two issues on my vscode AWK syntax highlighting in the past week. i guess someone else uses awk scripts in vscode
 
Mostly because it's impossible to play MPD natively on iOS but also because MPD is a much harder standard.
 
12:42 PM
@BenjaminGruenbaum so Youtube takes whatever original video input type and keeps it? segmenting it by DASH or HLS doesn't matter
but I'd guess, they will translate the video type to "something" generell once uploaded
 
@jAndy YouTube transcode the video a gazillion times for every format for different devices, they're YouTube
 
heh
 
Digesting videos isn't hard when you're Google, serving them is significantly easier if you have a box in every ISP acting as cache
 
for that... they show a nice performance
if we have to deal with an uploaded video, we translate it via ffmpeg into 1080, 720, 480 and 360p, all to mp4
takes like 30 minutes for ~2GB
 
:O
It shouldn't take nearly that long
 
12:45 PM
I can only imagine how many machines and servers youtube uses
 
You have something weird in your ffmpeg config, it should take seconds, not minutes
 
not with CRF settings
 
@CapricaSix Did someone crank up the Game chances?
 
constant rate factor to bring down size
I mean.. the server hardware (ram/cpu/disk) are still a weakspot on out site, but ... I can't imagine that takes seconds even on powerhouses
ffmpegArgs		= [	'-i', this.file,
									'-c:v', 'libx264',
									'-crf', `${ q.crf }`,
									'-preset', 'veryfast',
									'-c:a', 'copy',
									'-threads', '4',
									outputFile ];
those are our standard ffmpeg args, crf typically is set to 24
 
12:51 PM
What's everyone's favorite (not necessarily useful) node package?
(Negative Zero)
It's basically this: Object.is(x, -0);
But it has 9 files and when you import it it takes almost as many characters as just typing the above :P
 
JS package culture is weird to me :)
 
yep
also use strict culture too
 
@jAndy if you were a client I'd just let you talk to a video engineer from here : P Let me open the tutorial and see
 
they use strict for this
module.exports = x => Object.is(x, -0);
like just why :P
bell rang gtg
 
Can you try with the config here @jAndy docs.peer5.com/guides/production-ready-hls-vod ?
 
12:55 PM
@BenjaminGruenbaum ha :P
 
To be fair it used to look like this
 
lmao
See that kinda makes sense though
I feel like they lost sight of the usefulness after they figured out they could use Object.is()
 
Probably didn't want to pull the package though
It's got 5 dependents after all :D
 
Yeah thats what I figured
btw how do you check dependencies?
 
There's a tab for it on the package's npm page
It's obviously not going to show unpublished packages or private registries
 
1:14 PM
@BenjaminGruenbaum running that suggested parameters on a 1.24GB mp4 file, already runs for 7 minutes now
 
total 18 Minutes, but it didn't create the 1080p .ts files for some reason
my bad
I guess with the 1080p it takes another 10-15 minutes, so.. looks quite similar in time
 
1:46 PM
well this room is dead
 
@towc first comment, omg I can't even
 
Hey guys
 
@KendallFrey the floating point one?
 
I was expecting a "no, we hate types in JS" comment
 
1:56 PM
anyone here have experience with reselect (memoization library for redux)?
 
how can I pass 2 values
 
@SterlingArcher Yes please
 
what do you mean breathing
 
in jqeury function
on the html page
 
2:05 PM
which function? what are you trying to do?

I mean the syntax is just:

functionName(input1,input2);
 
> 31.5"
 
Good morning
 
@Feathercrown yes
but something line
 
You know, the bright side of a faulty motherboard, last night was a great into on what plugs in where on a computer. That's actually the first time I've opened up a computer
 
Does anyone know how to handle URL requests in Apache by passing it as a parameter to serverside JS?
 
2:09 PM
If GPU prices ever go down, you'll be building your own in no-time.
 
on change = 'function(this, '#id + "1") '
 
@SterlingArcher and it's mostly power cables :)
 
@Luggage And flat, circuitboard-shaped power cables
And data-carrying power cables
That covers most of it.
 
i don't know of data carrying power cables
But it is funny how HDs have a large power cable and a small data cable these days. It used to be the reverse
 
I'm just happy that molex is pretty much gone
 
2:13 PM
@Luggage That data going through the cable, is that, or is that not in the form of electrons?
 
I read somewhere that it's bad practice to use componentWillMount(), do you guys think so? The guy also said to always use componentDidlMount() instead because then you can manipulate your component.. I'm not sure that's really valid even if the component has state?
 
There are times that componentDidMount() is more correct. And maybe componentWillMount() is redundant, but it's not universally a 'bad practice' to use componentWillMount(). Unless they deprecated it.
 
@DavidKamer here's a good reason daveceddia.com/…
 
That's what I was thinking when I read it. Ajax requests probably fit better in componentWillMount() especially when using a store?
 
The opposite actually
 
2:17 PM
componentDidMount
 
async requests fit better in DidMount because it insures you have set up your state correctly, and there's been a render
 
@Feathercrown functionName(this, and?)
 
Not to mention componentWillMount is deprecated.
 
ohh it is? then yes. no more reason to use it at all
 
how to add other thing apart from this?
 
2:19 PM
@Luggage The only legitimate usecase is to extrapolate state from props (same as componentWillReceiveProps which is also deprecated)
They replaced them with a static deriveStateFromProps or some such, which accepts props and returns state.
Don't remember the exact naming
 
I put my ajax requests in the constructor with .setState after the containing promise returns. It could as easily be done through a reducer, so you're not limited to componentWillMount() for making server calls at the start. Of course, I'm very new to react/redux
 
@person27 you're using setState inside the constructor?
 
@person27 IO in the constructor is a big no-no
 
constructor() {
    fetch().then(x => this.setState(...)); // i think?
}
 
After a Promise makes it a requirement since it's asynchronous
Am I wrong?
 
2:21 PM
Work, in general, in the constructor is a medium-sized no-no
 
But IO in the constructor is a big-to-huge no-no.
 
All my async requests go in DidMount or DidReceiveProps
Or a specified non-component lifecycle function
 
Are you sure componentWillMount is deprecated? Also it works well with fetch requests through redux actions, but I switched to did mount because of a similar article to the one just posted.
 
I'm passing my store down through a routing component connected to redux btw
 
I've only ever heard "don't use setState in the constructor because that forces a re-render". Well, I have to re-render because I can't guarantee when the async function returns. So what's the problem?
 
@person27 it doesn't force a re-render, the constructor hasn't reached the render cycle yet
 
Thanks both
 
@person27 The re-render isn't the problem, it's that the component is not yet ready to receive state changes
 
2:24 PM
Constructor is for state initialization only
 
Also, if you stick to react's lifecycle events you'll more easily handle future needs. upgrading react, server-side rendering, using a new library, etc
 
Okay, thanks Madara.
 
But it'll work for now, as all react really knows is the setState() gets called at some point int he future, and that's fine.
 
@KendallFrey meh
I was hoping for a new kind of stupid thing to complain about
(feel free to argue it's not a stupid thing to complain about)
(it's just annoying to complain about it)
 
My comissioning date conflicts with my vacation, so I may switch to leading the Ontario project @Mosho @rlemon @KendallFrey :O
I'll keep you informed
 
2:28 PM
@towc lol, I'm still waiting for the phrase anti pattern
 
sorry I was afk
 
@towc are you really asking me this on a random gif from 5 years ago?
 
there are no anti-patterns here. just a misunderstanding about with the new bigInt type solves.
 
@SterlingArcher I'm gonna be so pissed if you come to Ontario and it's like Thunder Bay or some shit
 
@KendallFrey all I know is the site is... 30 minutes outside Toronto?
no idea which way
 
2:29 PM
!!s/bay/dome/
 
ok that's not as bad :P
 
@Breathing
on change = function(this, [whatever variable your id is stored in without quotes] + "1");
 
But if the the date changes I'll stay on the chicago project
 
@FlorianMargaine yes
so?
 
@Feathercrown what are you trying to ask?
 
2:30 PM
I was answering not asking
 
you do understand that it's only adding to your level of weirdness, right?
 
I watch you sleep, this is nothing
 
@Feathercrown oh sorry, I got mixed up
 
lol its good
 
@towc you wish.
 
2:31 PM
anyway, what is it actually from?
 
you don't even know my postal address.
 
I was looking something up in the transcript, and I saw that gif a few messages down
123 Baguette Ave, Stripeshirt City, France?
 
@Loktar my computer rewards came in (I didn't know I got rewards from it) so I just got some bose speakers for $75 :D
$200 off
err $175. I think they're $250 PC speakers. But yay
 
I prefer einstein myself
 
@SterlingArcher Dell <3
 
2:33 PM
Bose Companion speakers?
 
I've liked dell ever since my gpu died and they sent a guy to go install a new one
 
@Cereal I mean, I'm mad that I have to wait 7-10 days for a replacement tower, but Dell has always been good to me
 
@KendallFrey Either one, as long as it's a condensate.
 
Hell, my XPS battery started to bulge a few weeks ago, it's out of warranty, they sent a battery 3 days later to fix it. Dell is kinda cool.
No charge.
 
@SterlingArcher Yeah I had to wait like a week, but I mean it was relatively painless
 
2:34 PM
i should check mine
 
Convincing the gpu was actually broken was an issue though. The video just stoppedworking. Very hard to troubleshoot
 
@Cereal I was just really looking forward to relaxing and finishing Alien Isolation this week lol
Looks like Im a console peasant this week D:
 
or you could go outside too
 
during the day?!
 
Day light is work time D:
 
2:36 PM
I love the Sun, even when it scorches me because I have the UV resistance of a scrambled egg
 
scrambled eggs never survive being eaten long enough to get sun burned.
 
I'm already burnt from the beach Im good on sunshine until september
 
@hilli_micha what is that, exactly?
 
just a bunch of hydrogen with an arbitrary label
 
@KendallFrey I'm running on 3 hours of sleep dude, I honestly have no clue
My brain is a border line sponge right now
not even a good sponge, like one from a dollar store
 
2:39 PM
what do you mean borderline? Do you even know what neurons are?
 
At this moment, I do not.
Not without utilizing Wikipedia
 
is knowing what neurons are necessary?
 
I think I know what Kendall means
 
@AndrasDeak Can you translate to human? :)
 
I believe he is implying the brain is already kind of a sponge.
 
2:40 PM
if you look close enough you see a locally high-surface, high-connectivity structure
 
@AndrasDeak It's candle that's a bit slow.
 
He's being anti-pedantic, so he can still be pedantic.
 
@SterlingArcher The week that my pc was out of commision, I think I put something like 70 hours into my ps4
 
sorry, I'm missing social background info here :P
 
When I hadn't touched it for a month before that
 
2:41 PM
you good boo
 
I'm trying to draw an image to a canvas, after a user selects it from their disk.

I'm getting a TypeError that my image isn't the right type
  31 |     const img = new Image();
  32 |     img.src = b.target.result;
> 33 |     this.ctx.drawImage(img, 0, 0);
I'm like 98% sure that's an image
 
@AndrasDeak I think social is the wrong word when you talk about anything I do
 
And if I set the src of an actual image element on the page, it renders it correctly. Anyone have any idea why this is being fucky?
 
Is there some other Image class in scope?
 
oh ffs
 
2:43 PM
@Cereal I think that the img.src setter is async
 
yes, I thought I renamed that
Thank you
 
@KendallFrey I generously include all kinds of weird creatures in "people"
 
@Cereal Where art thou TypeScript?!
 
I knew that was coming :)
 
I'm preparing both for skynet and for the lizardman takeover
 
2:43 PM
@MadaraUchiha it's a sync setter - but the action it performs is async :D
 
@MadaraUchiha In the back of my mind, with proper naming
 
async setters would be... interesting
 
@BenjaminGruenbaum That's what I meant, yes.
@Cereal TypeScript would have actually given you a good error in this case
 
Wrt 3rd point, Is it talking about typing of http response that we receive from back end? for example
Purpose of `interface` keyword:
. Type-checking based on the shape that values have - One of TypeScript’s core principles
. Powerful way of defining contracts within your code
. Powerful way of defining contracts with code outside of your project
 
The amount of time it would take to convert all this shit to typescript isn't worth it right now I think
 
2:44 PM
Also, img.src is interesting in regards to promisification since if load was a promise then setting .src would be an unhandled rejection
 
Considering I need to finish this feature for june, and I keep getting pulled off to add "more important features" zz
 
@Cereal communicate your exact situation all the time in a clear way if you don't want your ass handed to you when the feature isn't ready for june.
Generally - the way to beat pressure is to make it their problem.
 
I really hate that the TypeScript playground doesn't come with a proper URL shortner
 
Just wait until the deadline and start crying.
 
I got to love how the repl is basically vscode :D
Say what you will about vsonline - it's a pretty good web editor compared to the competition
 
2:48 PM
@BenjaminGruenbaum Yes, that's an impressive trick, surprisingly it even works rather well.
 
Make a better TS playground.
 
@MadaraUchiha yeah, it's like the one part I miss in the Microsoft world
That and linq-stuff
 
Everyone needs a personal jsfiddle clone.
 
I actually already made a backup. I know how these guys work, and I'm about 50/50 on whether or not I'll have the time to finish the actual feature
 
Although to be fair with the state of our tooling linq is getting closer to doable
 
2:49 PM
So I made something they can show off, that's not entirely functional
 
we'd need a transform to do true linq-style code, but it could just map to standard functions like it does in C#
.select(), etc
 
oh for fucks sake. My power cable is literally an inch from my fingertips and I can't move my back well enough to snag it D:
 
Bend at the hip!
 
I can't my back is all torn up lol
 
@Luggage we all transform anyway though.
 
2:50 PM
right.
 
Speaking of I really shouldn't have taken the motorcycle to work today. All right turns hurt LOL
 
The hard part is transforming closures but an AST can do that
 
@SterlingArcher just give up and start training for the paralympics
 
I don't even have the willpower to fight the pain and grab a cable you really think I could compete
 
Also.. linq is used to return ASTs, too, in the form of FunctionExpressions. And that AST goes to generating SQL, etc. so that's a whole other thing.
 
@SterlingArcher no but it would be funny to watch
 
lol screw you
 
I prefer nails, screws are so twisted
 
So my lootbox came last night and it was a Frodo toy, a Thanos t-shirt, and a map of Hyrule
That's a solid lootbox
Counter point: let's shut down every queue review, flagging system, etc, for a month so that people are forced to acknowledge the tedious sewer work many people put in every day. — Sterling Archer 52 secs ago
 
I believe with the new inclusive mindset, referring to all of that as "sewer work" is offensive to the people submitting it
 
2:58 PM
^
 
@BoltClock are you just here to say "hah!" when people mention inclusivity these last couple of days :P?
 

« first day (2754 days earlier)      last day (2190 days later) »