HNHacker News
TopNewBestAskShowJobs

marcelr

109 karma · joined July 28, 2018

github.com/marcellerusu
submissionscomments
marcelr··on CSS now has an if() conditional function
can someone interpret this as not a skill issue?

i want better, declarative, interactive, fast UIs

CSS is the best answer we have

marcelr··on Programming peaked
old man yells at cloud
marcelr··on It’s time to free JavaScript (2024)
:o has anyone thought of this before? /s
marcelr··on It’s time to free JavaScript (2024)
ah yes, the regressive approach
marcelr··on Zig quits GitHub, says Microsoft's AI obsession has ruined the service
blaming framework on low quality software is a skill issue
marcelr··on It’s been a very hard year
haha this sounds like a slave master saying “again, free the slaves? really? i’ve heard that 100s of times, be more original”
marcelr··on It’s been a very hard year
> Make it make sense.

Ok. They are not talking about AI broadly, but LLMs which require insane energy requirements and benefit off the unpaid labor of others.

marcelr··on It’s been a very hard year
ai can do code review? do people actually believe this? we have a mr llm bot, it is wrong 95% of the time
marcelr··on Abuse of the nullish coalescing operator in JS/TS
there’s problem with branded types this way now that i think of it

string

type nonEmptyStr = string & NonEmpty

type ipv4Str = string & IPv4

it’s not obvious how you’d automatically determine ipv4Str is also a nonEmptyStr, since the types themselves are just labels, they don’t store the refinements at type level

marcelr··on Abuse of the nullish coalescing operator in JS/TS
oh i guess you use zod in every single part of your application? not just api level.

i was suggesting the result of zod parse is a type that shows how it’s been refined

however, .ipv4().parse(“..”) returns a type “string”

marcelr··on Tiger Style: Coding philosophy (2024)
i see these rules and think “70 lines wow that’s short”

and then i read code and see a 50 line function and am like “wow this function is doing a lot”

sure strict rules aren’t amazing, but i think it would be cool to have a linter warning when there are more than X functions with over 70 lines (this is language dependent - verbosity)

marcelr··on Abuse of the nullish coalescing operator in JS/TS
while this is nice, the type itself doesn't encode the logic (unlike refinement type)

i think this would be really nice if validation libraries like zod returned branded types when they are validating non-comp-time types (like z.ipv4() should return some IPv4 branded type)

marcelr··on The Future of Programming (2013) [video]
yea i tried to do this (somewhat successfully) with a custom editor for css https://github.com/feralsoft/charisma (demos on my old x https://x.com/charisma_css)

css is primed for this since you can write your rules in such a way that rule order doesn't matter, which means you really don't have to think about where your code it

in my dream world, i have very smart search (probably llms will help), i look at just the minimal amount of code (ideally on a canvas), edit it and remove it from my context

i don't care where or how the code is stored, let the editor figure it out and just give me really good search and debuggers

marcelr··on The surprising benefits of giving up
giving up is a good tactic to see if an idea is any good

good ideas are very hard to give up on

go all the way there & imagine your life without this goal, and accept it

if it forces its way back into your life multiple times, it might be a good idea

wait for the conditions to arise where it becomes a possibility and execute

marcelr··on Experiment: Making TypeScript immutable-by-default
programming with immutability has been best practices in js/ts for almost a decade

however, enforcing it is somewhat difficult & there are still quite a bit lacking with working with plain objects or maps/sets.

marcelr··on The surprising benefits of giving up
by far the most helpful realization i had in the last decade was that i have severe limitations, and i have to give up constantly until i find the path of least resistance
marcelr··on I Work for an Evil Company, but Outside Work, I'm a Good Person
this is the only alternative you can imagine? that is pathetic to me.
marcelr··on GPT-5.1: A smarter, more conversational ChatGPT
who is asking for a more conversational chat?

this is exactly the opposite of what i want, and it reads very tone deaf to ai-psychosis

marcelr··on Learn Prolog Now (2006)
what the fuck does this mean?

are you saying you can’t comprehend prolog programs?

marcelr··on Launch HN: JSX Tool (YC F25) – A Browser Dev-Panel IDE for React
finally! been waiting for someone to take this on.
marcelr··on Learn Prolog Now (2006)
yes
marcelr··on Marko – A declarative, HTML‑based language
this comment really proves that people do not consider the information presented to them

marko is not comparable to php

it is much closer to svelte

i used to sympathize with people complaining about js-fatigue, but at some point its a skill issue

marcelr··on Why aren't smart people happier?
there’s no such thing as a smart person
marcelr··on React vs. Backbone in 2025
React is enterprise at this point. LOC isn’t the selling point.

While i dream of post react world, none of the frameworks meaningfully push the needle.

I’m working in angular now & signals make it fine.

Everything is fine, nothing is great.

marcelr··on Criticisms of “The Body Keeps the Score”
more information is better if it’s also provided with the context of how to heal.

> History shows people are also very resilient at moving on from trauma

i’m extremely skeptical that people move on

they suppress, they survive, but without deep understanding its impossible to say move on

you can be ignorant and survive, or face reality and climb the deeply uphill battle of real growth.

of course you can be paralyzed by it, but no one is advocating for that as treatment

marcelr··on Flowistry: An IDE plugin for Rust that focuses on relevant code
this looks fantastic

would love this for typescript

marcelr··on Zed is now available on Windows
tried to switch a few times

i can’t describe it in any other way other than it feels cold to use

i wonder if anyone else felt the same in earlier versions and feels that it’s fixed

marcelr··on The React Foundation
its important to note that it wasn’t a breaking change, unlike many other frameworks

backwards compatibility is underrated

marcelr··on Doing Rails Wrong
this is so outdated

vite is actually stable and good, js ecosystem has chilled out

these articles do not hold much weight anymore

marcelr··on Drunk CSS
i have been drunk, this is not it
Page 1 of 3Next →