|
necrotic posted:No semicolons alone is enough to throw that out. “Just memorize all the stupid automatic semicolon insertion rules~” no I’ll just tell it what I intend by using semicolons.
|
# ¿ Nov 16, 2022 15:48 |
|
|
# ¿ May 17, 2024 20:31 |
|
Nolgthorn posted:Does this count as jsx? Could do a full json version of it would be easier to read. JSX is when you write a transpiler that turns this: code:
|
# ¿ Jan 31, 2023 18:29 |
|
Keep data / state as close to where it is used as possible Ex: If I have an app with four sections and one of them is TODOs, and the other three sections don't do anything with ToDos, then only the top-level TODO component knows anything about them, and I keep that state there. Or lower if possible! My app does have authentication though, so all my sections need to know about the User object (just as an example, they may not!) So I will probably create a UserContext, and expose a hook called useUserData or something like that so any component in the app can get that. EDIT: and you can make your "TODO Knowing Code" a hook as well and just expose the bits you want to your top-level TODO component. Lumpy fucked around with this message at 21:00 on Feb 23, 2023 |
# ¿ Feb 23, 2023 20:53 |
|
|
# ¿ Mar 15, 2023 17:44 |
|
CJS vs ESM: Because being a developer wasn't enough of a pain in the rear end.
|
# ¿ Jun 26, 2023 17:00 |
|
necrotic posted:Ban time zones and ship it. Easy prom candy posted:I am willing to eat dinner at 11pm and go to bed at 5am if it means no more time zones. Hell that's what the Spanish do already.
|
# ¿ Aug 19, 2023 23:21 |
|
JavaScript code:
Lumpy fucked around with this message at 23:45 on Nov 5, 2023 |
# ¿ Nov 5, 2023 03:21 |
|
Roadie posted:I really want some kind of final Temporal implementation I can use without dragging in like 40kb of unoptimized extra stuff. Meh, on the front end you just compress the giant background image marketing _has_ to have on the login screen by an extra 1% and you save the file size of Luxon in your bundle.
|
# ¿ Dec 12, 2023 20:16 |
|
|
# ¿ May 17, 2024 20:31 |
|
roomforthetuna posted:But that's how marketing excuses their giant image, because if you just compress the humungous machine learning model that the telemetrics team wants in there you save the file size of their giant image. Where will it end?! I mean, if we keep doing it, eventually nobody will have to download anything, right?
|
# ¿ Dec 13, 2023 03:55 |