Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
thiht
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
511.
▲
by
thiht
2y ago
> that junior/bad programmers put out tons of garbage code That's what code review and mentoring are for. Don't blame tools, as a senior it's your role to pull the rest the team up. And in terms of process, it's
512.
▲
by
thiht
2y ago
Chi is amazing. I love the philosophy of extending the stdlib instead of writing an alternative. I try to keep that in mind when writing my own libs or helpers now, and I'm very satisfied with the results. For example I made a lib to w
513.
▲
by
thiht
2y ago
No examples on the homepage = dead to me.
514.
▲
by
thiht
2y ago
As a developer, I do try to use LLMs in my daily work, and I get a slight productivity boost, but I wouldn’t say it’s a spike. It helps me write tests faster, it helps me write pure functions faster, and it helps me autocomplete some docume
515.
▲
by
thiht
2y ago
> would you spend a round trip and block it Yes. If I spend time reviewing some code and I don’t understand some part of it because of naming, it’s definitely an issue that must be addressed during the code review. You just need to learn
516.
▲
by
thiht
2y ago
> Same with the variable names No. Code is harder to read than it is to write. It's also read countless of times. Obviously single letter variables are ok for short scoped variables, or for conventional names[1] but other than that
517.
▲
by
thiht
2y ago
> Better battery life That’s the only thing from your list that people actually care about and they did improve battery life, there was a whole segment about it. The rest? No one cares. Do you even use an iPhone? You sound like me before
518.
▲
by
thiht
2y ago
Exceptions are a terrible error handling mechanism. You have no idea what throws and what doesn’t, it’s impossible to write defensive code that makes sense with exceptions. Errors as value is the only sane way to deal with errors. Granted,
519.
▲
by
thiht
2y ago
Same for me. I also use it for some SQL queries involving syntax I’m unfamiliar with, like JSONB operators in Postgres. ChatGPT gives me better results, faster than Google.
520.
▲
by
thiht
2y ago
It’s usually not when there’s some context. > A large part of why many people love Rust is that it's the first time they've used an ML family language. You wouldn’t search "ML" but "ML family language". Or c
521.
▲
by
thiht
2y ago
This is indeed an abbreviation, but it doesn’t convey meaning. At this point ML is just the name of the thing, it could not expand to anything and still convey the same meaning. If you don’t know ML, knowing what it stands for won’t help yo
522.
▲
by
thiht
2y ago
Lobste.rs is basically HackerNews, but with some features that make it better for engaging in a discussion (you get notifications when someone reply to you for example). Depending on the technology you want to discuss, there might be Discor
523.
▲
by
thiht
2y ago
What does it do exactly?
524.
▲
by
thiht
2y ago
Funny to think the strong nuclear force is just one dude’s underfunded and barely maintained side project that might collapse some day
525.
▲
by
thiht
2y ago
If you’re already using a Mac and an iPhone, NetNewsWire is great! It’s native, beautiful, and "just works". I finally ended the chase for the perfect RSS reader and started enjoying my feeds.
526.
▲
by
thiht
2y ago
The cursor also switches to "pointer" (the hand) for no reason on the documentation pages, eg. here: https://docs.ruby-lang.org/en/master/String.html#method-i-ri...
527.
▲
by
thiht
2y ago
https://api.rubyonrails.org/classes/ActiveJob.html That one's a bit too much red for my taste :) There's a sweet spot to find that's closer to "nice accent colors" than "aggressive red wal
528.
▲
by
thiht
2y ago
The ruby-lang website[1] uses red accents and looks gorgeous (to me at least). I wonder why they didn't just use the same colors. [1]: https://www.ruby-lang.org/fr/
529.
▲
by
thiht
2y ago
I doubt you’re the only user of the Ruby documentation though. I’m not a (frequent) Ruby user, but I routinely check the Go documentation, the MDN, the Python documentation, and several other language documentations on mobile. Because somet
530.
▲
by
thiht
2y ago
Yeah I didn’t came up with the idea first, at my work we used an in house solution[1] but it had lots of shortcomings (hard to read output, hard to debug tests, virtually no documentation, and the code was very hard to extend and fix). My p
531.
▲
by
thiht
2y ago
I’m working on a test integration tool. You write your tests declaratively using YAML (ie. setup the environment, databases, etc., load fixtures, make api calls or db calls, and check assertions), so it’s completely language agnostic, which
532.
▲
by
thiht
2y ago
I can’t believe a mostly text website that doesn’t scale well on mobile made it to production in this day and age. Was it worked on by a single person? Did no one review it and think of opening it on their mobile? I’d even say it’s harder t
533.
▲
by
thiht
2y ago
Not reliably, especially if you alias tables. Realistically, you need to know what you’re selecting from before knowing what you’re selecting.
534.
▲
by
thiht
2y ago
Doesn’t change anything, you can still have the select at the end, and optional from and joins at the beginning. In your example, the select could be at the end, it’s just that there’s nothing before.
535.
▲
by
thiht
2y ago
Honestly SQL screwed things up from the very beginning. "SELECT FROM" makes no sense at all. The projection being before the selection is dumb as hell. This is why we can’t get proper tooling for writing SQL, even autocompletion c
536.
▲
by
thiht
2y ago
There are always some mild arguments that CORS is better that nothing, but honestly your intuition is right, CORS is absolute nonsense.
537.
▲
by
thiht
2y ago
What? Not at all.
538.
▲
by
thiht
2y ago
I don't understand why people make an issue of that. Just add everything that needs to be ignored to the .gitignore, as long as it makes sense to someone. If I use XYZ-Obscure-Unknown-Editor, just let me add `.xyz-obscure-unknown-edito
539.
▲
by
thiht
2y ago
> I have never wanted to go back one frame Good for you I guess? I have never wanted to go forward one frame so let’s remove that too
540.
▲
by
thiht
2y ago
That’s the whole point yeah
More ›