Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mrloba
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
mrloba
10d ago
If AI replaces programming it will indirectly replace a lot of other jobs as well, just by good ol' automation
2.
▲
by
mrloba
4mo ago
Human accomplishment is a predictor of future accomplishment. AI not as much. Human effort signals value, AI does not. Human effort is often inviting collaboration. AI rarely does.
3.
▲
by
mrloba
5mo ago
I really doubt spec driven development is gonna last. As before, creating working software and iterating on it is faster and makes it easier to understand what you thought you wanted but don't, even if it's vibe coded. So, hello a
4.
▲
by
mrloba
6mo ago
That depends on how many details I specify. If I specify a lot, I usually get what I want. But in the extreme this is just another form of coding (high quality code is quite similar to a detailed spec). In many cases I find I have to do man
5.
▲
by
mrloba
10mo ago
Well they then use more AI to try to fix the PR, which leads to many more rounds of the same. It's like I'm coding using an AI except through a real person who mangles the prompt. I've had some success as well in talking peo
6.
▲
by
mrloba
10mo ago
It is everywhere. Even on birthday invites for my kids there's nonsense from an LLM. At work I review PRs with code that doesn't even run. Doing research is harder than ever as more and more references are completely made up. We&#
7.
▲
by
mrloba
2y ago
One of my favourite features in n++ is to enable "show all characters". Discovered a lot of weird end-of-line and bom issues like that
8.
▲
by
mrloba
2y ago
I always found that a simple merge style patch is enough, and a lot simpler. You just have to know that there is a difference between null and undefined. For large arrays, it's usually some sort of bulk operation that can be solved by
9.
▲
by
mrloba
2y ago
The problem with this standard is all the free text and bank specific fields that banks will use instead of the standard. One bank I integrated with had the equivalent of "Our fee is 5.65" in a text field which you had to parse, i
10.
▲
by
mrloba
2y ago
Then you should store the time as well, because the number of decimals in a currency can change (see ISK). Also, some systems disagree on the number of decimals, so be careful. And of course prices can have more decimals. And then you have
11.
▲
by
mrloba
3y ago
I agree, and I just want to highlight what you said about generating a config file. It's extremely useful to constrain the config itself to something that can go in a json file or whatever. It makes the config simpler, easier to consum
12.
▲
by
mrloba
3y ago
People who are more into it usually prefer human made puzzles since they often have a logical path that you're supposed to find, which can be quite satisfying. Generating sudoku puzzles is actually quite easy. Just put random numbers o
13.
▲
by
mrloba
3y ago
Has anyone had any success in code generation? I feel like chatgpt usually completely fails to write even a small function correctly unless it's a very trivial or well known problem. I usually have to go back and forth for a good long
14.
▲
by
mrloba
3y ago
It's not perfect, but I have had success running postgres in Docker and running integration tests against that. Usually you can trigger the problem by running a handful of queries in parallel.
15.
▲
by
mrloba
3y ago
It's a running joke in our org that we should always vote for a new government. Keep making the dependency graph messy and we'll keep having a job
16.
▲
by
mrloba
3y ago
If you have different currencies you need to keep track of the number of decimals used, e.g. YEN has 0 decimals, bitcoin has 6, etc. It could even change over time like Icelandic ISK did in 2007. If you have different services with differen
17.
▲
by
mrloba
3y ago
My experience is the opposite of yours. With typescript I use an openapi spec to validate and generate types. For other entry points I use typebox to create validators and generate types. It requires a bit of work, but it adds a lot of capa
18.
▲
by
mrloba
3y ago
You can easily parse json into types using something like typebox. Not only does this work, it works much better than many other languages. Have fun trying to represent even a simple patch request, or discriminated union, in something like
19.
▲
by
mrloba
4y ago
True, but there might not be a big need for unit testing the glue code. By its very name it doesn't contain much logic to test. Integration tests are more valuable in this case.
20.
▲
by
mrloba
4y ago
Nodejs now has async local storage built in, which makes this fairly easy.
21.
▲
by
mrloba
4y ago
Last time I worked on call I was compensated 2 hours overtime for every time I opened the laptop, as well as a fixed rate for the week. I was also able to convert some of the fixed rate to days off the week after. Still, having to wake up m
22.
▲
by
mrloba
4y ago
What are the main differences to aws lambda? Will you be transparent about how it works, such as when a function is frozen? This is something I miss with many Aws services
23.
▲
by
mrloba
4y ago
I've had great success with having a monolithic code base with multiple entry points. Each entry point is sort of a micro service (or just service), but it can access the same db as the other services (if it makes sense), use the same
24.
▲
by
mrloba
4y ago
Very nice, I found myself nodding along with almost everything in this post. One thing I do a bit differently is that I usually put the API handlers in their own module (they're usually just a couple lines of code each), along with dom
25.
▲
by
mrloba
5y ago
Uri's are hierarchical, and hierarchies are notoriously difficult to get right. Even if you get them right, the definition of right often changes over time. In my experience, things have to be flat to be static. IDs seem to work pretty
26.
▲
by
mrloba
5y ago
In general a function component does a lot more work than a class render function. Some of it is just about handling cases that we probably should have done with classes as well, but often didn't. The result is that everything must be
27.
▲
by
mrloba
5y ago
Good code is produced when people can easily improve it. In my experience, people leave too much crap untouched because of unnecessary barriers, and having to create a new issue is definitely one of them. I'd rather review 10 extra fil
28.
▲
by
mrloba
5y ago
How about not using configuration files in the first place? Instead expose a library in some programming language (preferably typed) to assist with writing config, then serialize the output in whatever format is easier to parse.
29.
▲
by
mrloba
5y ago
This is is the crux. It's possible to justify any and all designs using the single responsibility principle / separation of concerns. I've seen plenty of bad designs rationalized this way. Answering your question (or "wh
30.
▲
by
mrloba
5y ago
I like this approach a lot. I wonder if it's a good idea to keep the assertions in prod as well. I guess this is a trade-off between safety and convenience.. As a side note, what do people think about JSON schema? I find it quite verbo
More ›