Comments by "Kristopher Driver" (@paxdriver) on "Theo - t3․gg"
channel.
-
29
-
20
-
18
-
12
-
8
-
5
-
3
-
2
-
2
-
2
-
2
-
2
-
2
-
1
-
1
-
1
-
1
-
1
-
This is a perfect example of why it's important to understand how to read charts.
If 100 companies all need 20 employees but there are tons of them out there, they can each publish one ad and select applicants for the different positions they need.
If 100 companies all need 5 employees but there are only 250 devs looking for work at any given time capable of the positions, each of those 5 jobs at all 100 companies will get their own listings.
Number of listings is a stochastic representation of the job market and says nothing about the employability of devs that average pay, average hours, or average turnover doesn't.
I would expect devs of all people to recognize this chart represents nothing.
Small business is the heart and soul of the nation, imagine 90% of all devs started successful businesses so while this chart looked like this, small business success rates quadrupled and nationwide incomes surged as a result... Would that be terrible just because indeed's listings took a nose dive?
This data reflects nothing that can be extrapolated imho, just click bait and trying to drive salaries down. Be on the lookout for scary foreboding "science" to get published about the job prospects of programmers. Know what, though? Programming is hard and even gpt needs a junior to hold its hand when using it to write code. It pays well because only practise makes you better at it - hence the expertise and the salaries. Until they start selling anything that doesn't come with code needed to run/maintain it there will always be demand for devs, and so long as dashboard for UI are helpful for customers who aren't geeks, there will always be a version of web development. That demand isn't going anywhere, it'll inflate when it's cheap and contract when monetary policy dictates, that has nothing to do with the career prospects and everything to do with poor fiscal policy and government. They engineer cycles of boom and bust because that's how bankers arbitrage, by controlling the flow and capitalizing on both ends. It's greedy and dishonest leadership of economic policy, and absolutely nothing to do with anything practical about the field.
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
CSS is as incomprehensible as it is today because of trying to grow features for the sake of growth. Many css additions are vital like transitions and variables, but how many people have actually memorized the right object-fit keywords, or the difference between static and relative position until they try both to make sure? It's so great to have css, but it's so unbelievably impossible to write it by hand without ide tools now and javascript is getting to be similarly convoluted when we have to memorize which js is universal, browser-specific, or if it conflicts with a particular bundle, maybe server, framework, or bugs/vulnerabilities with polyfills?
I may just be old, but I seriously believe js needs to slow down and plug gaps. Build new features on the new language for people who need to tie new features into a browser script. JavaScript is really really good and tying into other systems, just put those specific niche new features in a new language that's built with them in mind (like Pyscript), it's way easier for everyone to learn a Python implementation of a new feature than it is to change the whole language to shoehorn it in.
Serverside javascript is wonderful for those of us who learned js 25 years ago, but it's a mess for someone starting from scratch I would imagine. Would've been so much easier if express was in Python and javascript just linked to an interconnect api because Python is just easier to apply new modules to, and those modules can be standardized in chunks and in lower level languages for performance.
Programmers today are constantly building layers of abstraction to organize code bases but the language for some reason just sprawls incessantly like they think it'll die if it just stops changing for a bit so that standards can for organically.
I really don't understand what is so lacking of a web browser scripting language that the thing needs to keep growing. I'm not saying they've done a bad job at all, I'm just saying there's a point in which it doesn't make sense to do more when we're already leveraging markup, parsing virtual DOMs and diff-ing in between event loops and css computations - drawing and reporting precise paints and performing all these api connections between technologies. It's a great intermediary language, I don't see how expanding it while it's still bleeding from past scabs helps anything when there exist alternative approaches that javascript could readily plug into instead of building it itself.
Maybe I'm old and too novice to understand neo-modernity lol as coders we reduce and simplify, but with languages we spread eagle before mopping up from the last round of features added in. It may make 2 devs lives easier when they copy-paste templated code anyway, but for every generation that comes next who has to learn specifics like "bind(this) but not with arrow functions" it's actually worse for everyone who isn't already fully committed to the language. It doesn't help the language making it harder to learn the trade for benefits few will realize and none can measure imho
1
-
1
-
1
-
1
-
11:51 I've been writing html consistently since 1999 when I was 14, it is still easier to read closing tags with a space. If it's unclear, like not-BR tags that can be nested, never use it. If I see <> without a slash I have to stop and check if the word is one common to new HTML I'm not familiar with (like section, article, picture, or for old people like me the I, b, or center tags) then I don't have to try to remember if the em is a legit tag, an XML thing, and whether what I think it is has nested elements...
Just use a "/" in every tag or closing tag, make it clear when that part of the markup is done so I don't need to focus on that when debugging someone else's HTML. Why not use /? We should just add 1 character to make any code much more reasonable. That's why we dropped the semicolons in javascript, that 1 character is distracting because we have to stop and ask if that's where the bug is.
1
-
Imho there's an easier way to think about this so it's jot a headache: when globalThis has a property initialized that means any other functions defined next to it may use that scoped function, so it to needs wait to for the globalThis to garbage collect to be sure that the function gets collected and the array buffer with it.
I will try this theory out on my own so this is sort of a bookmark for myself, but I would bet functions wait to garbage collect until after everything in that scope is collected first since functions are hoisted when defined they're probable last to get destroyed.
That would mean defining functions in global scope or well defined scopes (unlike the example which initialized part of globalThis from a nested scope, effectively holding back garbage collection of the entire globalThis object). The practical way to avoid this is good practise already - don't initialize a global key from a nested function. A class instantiation of all possible keys would prevent this, I bet compiler frameworks prevent it, and even wasm or other transpilations would too, because they're not jit interpreters. It's probably the interpreter part that needs to hoist scopes like this because otherwise you'd just be setting an arbitrary depth for cutoff and that would be way worse performance than recursively hoisting an object being structurally modified in a deeper scope.
Either by defining all functions in their useable widest scope like functional programming doctrine dictates, or by defining all objects with all possible placeholder keys like modular OOP doctrine suggests, I bet these paradigms eliminate this memory leak by design, or at worst limit it to an interpreted, unoptimized runtime anyway where that kind of leakage should be expected.
Love these videos btw, thanks a mil. Can't wait to try this out with iffe and async and every variety I can imagine lol. I bet the browser throwing timeout into its own thread loop has something to do with it too, or specifically array buffers working at lower level than standard objects due to their memory allocation benefits maybe plays a role? There are so many different reason I can imagine this made sense to ECMA lol
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1