Hacker Newsnew | past | comments | ask | show | jobs | submit | marcelr's commentslogin

can someone interpret this as not a skill issue?

i want better, declarative, interactive, fast UIs

CSS is the best answer we have


old man yells at cloud


:o has anyone thought of this before? /s


ah yes, the regressive approach


blaming framework on low quality software is a skill issue


> 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.


These arguments are becoming tropes with little influence. Find better arguments.


Does the truth of the arguments have no bearing?


An argument can both be true and irrelevant.


Okay, you saying it's irrelevant doesn't make it so. You don't control how people feel about stuff.


Arguably you shouldn't trifle your argument by decorating it when fundamentally it is rock solid. I wonder if the author would consider just walking away from tech when they realize what a useless burden its become for everyone.


haha this sounds like a slave master saying “again, free the slaves? really? i’ve heard that 100s of times, be more original”


Thank you. The dismissals are getting more and more obvious.


Definitely a head scratcher.


ai can do code review? do people actually believe this? we have a mr llm bot, it is wrong 95% of the time


I have used it for code review.

Like everything else they do, it's amazing how far you can get even if you're incredibly lazy and let it do everything itself, though of course that's a bad idea because it's got all the skill and quality of result you'd expect if I said "endless hoarde of fresh grads unwilling to say 'no' except on ethical grounds".


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)


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)


The type encodes the logic in the schema, it is absolutely a refinement as every parser is. Maybe you meant a comparison with dependent types?

Now every time you will have to use a NonEmptyString255 as a type it has to be branded by passing through the constructor, so you can't pass a normal string to an API expecting it, and you get the error at type level. The logic is encoded in the schema itself, which you can click.

And it also provided the decoder (parser) and encoder (constructor). So you use the parser in a form or whatever and get parsing and precise errors (for it being too long, too short, not a string). And you can annotate the errors in any language you want too (German, Spanish, etc, English is the default)

Essentially this approach is similar to using some class NonEmptyString without using a class and while keeping the information at type level.

It's practical and the ceremony goes as far as copy pasting or providing a different refinement, besides, AI can write those with ease and you don't need to do it frequently, but it's nice in many places not mixing UserIDs with ProductID or any other string makes codebases much easier to follow and provides lots of invariants.


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”


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


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


> 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

I care, because I don't want any vendor lock-in. "The unreasonable effectiveness of plain text" hasn't gone anywhere.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: