Lawrence Bethlenfalvy

32 posts

Lawrence Bethlenfalvy

Lawrence Bethlenfalvy

@lbfalvy

Gone until management improves

Bluesky Katılım Ağustos 2021
4 Takip Edilen2 Takipçiler
Lawrence Bethlenfalvy
Lawrence Bethlenfalvy@lbfalvy·
@aarondfrancis On Android it's very hard to beat the native date and time picker in terms of usability, it works beautifully with both drag and tap, and can be adjusted with either accurate or long movements. This kind of versatility is essential for good a11y and webdevs don't even realize it.
English
0
0
1
46
Aaron Francis
Aaron Francis@aarondfrancis·
Y'all I didn't realize the native HTML date picker had gotten so good! Is there a reason to use one of the complicated JS libraries instead of this? The only things I can think of are ranges and custom styling. Anything else?
Aaron Francis tweet media
English
158
115
2.3K
588K
Lawrence Bethlenfalvy
Lawrence Bethlenfalvy@lbfalvy·
@ebey_jacob @vite_js That is all Vite is, and that is all it needs to be. A tool doesn't need to be new or complicated to be far more useful than any of its constituents or the existing solutions.
English
0
0
1
0
Jacob.lol 🤣
Jacob.lol 🤣@ebey_jacob·
For my own sanity, can someone explain to be what's so special about @vite_js? I have a tendency to "simplify beyond what's justified", but is it not just rollup + esbuild mashed together for convenience with a weird server runtime API required to access the server bundle?
English
14
1
40
0
Lawrence Bethlenfalvy
Lawrence Bethlenfalvy@lbfalvy·
@ksylor They're unfit for components that produce graphics because a change in HTML doesn't even suggest a change in appearance. Instead they can be used for components that produce HTML to be styled by external CSS and sometimes for HOCs.
English
0
0
0
0
Lawrence Bethlenfalvy
Lawrence Bethlenfalvy@lbfalvy·
@wesbos Can we get a variant of the GPL which explicitly declares that the constraint extends to derivative works that use the code as statistical data, such as machine learning models?
English
0
0
2
0
Wes Bos
Wes Bos@wesbos·
There it is! Co-pilot is going paid. Worth $10/mo? I think yes
Wes Bos tweet media
English
120
83
802
0
Danny Thompson
Danny Thompson@DThompsonDev·
Work task: "Add regex for email validation" Me: Googles "regex for email validation"
English
72
125
1.4K
0
Cory House
Cory House@housecor·
Problem: The React docs encourage declaring anonymous functions in useEffect. This means the developer's intent isn't documented. 👎 Solution: Call a well-named function inside useEffect. #react
Cory House tweet media
English
45
138
1.3K
0
Lawrence Bethlenfalvy
Lawrence Bethlenfalvy@lbfalvy·
@p_ample_mousse @DThompsonDev Yes, just a code segment assigned to a label in a bag of data, which in turn provides fallback values for a separate bag of data. I like to put classes late in the curriculum, and explain them in terms of prototypes.
English
0
0
0
0
Danny Thompson
Danny Thompson@DThompsonDev·
Some of these "roadmaps" people post on twitter kill me. 5 Days to Learn Javascript like it is nothing and then saying move on to React. It took me a MONTH just to understand the difference between arrays, objects and how to use them! 5 days?! AS A BEGINNER?! Ain't no way!
English
137
184
1.4K
0
Lawrence Bethlenfalvy
Lawrence Bethlenfalvy@lbfalvy·
@DThompsonDev It takes a couple weeks to get the hang of the language, but I would say people can get building (initially really inefficiently) in two months. Then it takes years to get really good of course.
English
0
0
0
0
Lawrence Bethlenfalvy
Lawrence Bethlenfalvy@lbfalvy·
@DThompsonDev A pivotal element of how I teach JS is that I don't make distinctions that only exist in other languages. A function is just a code segment. It doesn't really have a name, instead, you assign it to a variable to use it. There's shorthand syntax to define and name a function.
English
2
0
1
0
GitHub
GitHub@github·
You can now use Markdown to determine different images to show up depending on if a user has a light or dark theme ☀️ 🌔 github.blog/changelog/2022…
English
25
218
1.4K
0
Lawrence Bethlenfalvy
Lawrence Bethlenfalvy@lbfalvy·
@izs @_rafaelgss @matteocollina But obviously, it's only relevant if CPU is a bottleneck, so if you do anything else to such extent that it's more of a bottleneck then yeah, that should probably be the focus of optimization efforts.L
English
0
0
0
0
Rafael Gonzaga
Rafael Gonzaga@_rafaelgss·
Did you know that Array.prototype.includes is VERY slow in Node.js v18? See: #includes-vs-raw-comparissonjs" target="_blank" rel="nofollow noopener">github.com/RafaelGSS/node…
English
8
19
63
0
Lawrence Bethlenfalvy
Lawrence Bethlenfalvy@lbfalvy·
@izs @_rafaelgss @matteocollina I see our difference, I was talking about the regression on general while you were talking about its effect on Fastify in isolation. Fastify is usually not the majority of the code in a route and so not the main risk factor. Lots of other code uses "any equal" checks like this.
English
1
0
0
0
isaacs
isaacs@izs·
@lbfalvy @_rafaelgss @matteocollina It's not that simple. Both factors matter in multiplication. "Ten fold" slowdown of something that takes one ms and happens once per request is equivalent to a 10M x increase of something that takes 1ns. Optimizing the 1% can only ever net you a 1% improvement at best.
English
2
0
1
0
Lawrence Bethlenfalvy
Lawrence Bethlenfalvy@lbfalvy·
@izs @_rafaelgss @matteocollina That's a tenfold slowdown, unless I miscounted the zeros. The only metric that ultimately matters is requests per second, and if the CPU is already a bottleneck a tenfold slowdown in something this trivial might easily force someone into a very expensive server upgrade.
English
1
0
0
0
isaacs
isaacs@izs·
@_rafaelgss @matteocollina This kind of testing across versions can be useful to find regressions, but have you considered that an operation going from 0.000000001006175s to 0.000000011521608s doesn't really matter much? Calling it "VERY slow" in this particular case seems like a stretch.
English
3
1
12
0
WebDeveloperMentor
WebDeveloperMentor@MentorWebDev·
In 2022 - HTML is 29 years old - CSS is 26 years old - JavaScript is 27 years old - ReactJS is 9 years old - VueJs is 8 years old - Angular is 6 years old - Svelte is 6 years old - VSCode is 7 years old - Git is 17 years old - Github is 14 years old Add more 💬👇
English
137
561
2.8K
0