Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vore
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
421.
▲
by
vore
4y ago
Well, what did you expect? When interviewing someone, I would still want someone to work through a problem live with me to see how they solve some problem. I don't care about the end result, I want to see how you're getting there.
422.
▲
by
vore
4y ago
You can generally make do with weak references. For a doubly-linked list, you can make the backwards pointer weak.
423.
▲
by
vore
4y ago
Yeah, and don't forget to run the shell script in screen as well so you can detach it /s
424.
▲
by
vore
4y ago
Better yet, a GitHub Actions action to do it!
425.
▲
by
vore
4y ago
I think you should include that in your original comment, because it gave me a very different impression!
426.
▲
by
vore
4y ago
I don't understand this logic: you know that waitstaff in restaurants are paid less than minimum wage because they make it up in tips, so you choose not to tip them which actively contributes to them making less than minimum wage? The
427.
▲
by
vore
4y ago
It's incredibly ironic that you're accusing the parent post of "assuming a level of insight into people’s meta-knowledge of their own mental state" while up and down the thread you're making gigantic reactionary ass
428.
▲
by
vore
4y ago
Did you mean to prove your own point like that with your spelling? Sorry, I couldn't resist the dig. In any case, your own personal feelings without anything to back them up doesn't really help anyone.
429.
▲
by
vore
4y ago
Or maybe those changes are fine. You have no idea, I have no idea! But I surely don't know how you're saying this with such certainty!
430.
▲
by
vore
4y ago
Performance measurements are only one dimension of code quality. Having a laser focus on it disregards why you would want to sacrifice performance for a different dimension of code quality, such as extensibility for different requirements.
431.
▲
by
vore
4y ago
Inline functions can't be made type safe (or at least, as type safe as C gets) over generic arrays.
432.
▲
by
vore
4y ago
There you go, actually: you can have your clean code cake and eat it too if you have the right language abstractions (like parametric polymorphism).
433.
▲
by
vore
4y ago
Have you never used C++ iostreams? Or the Python file abstraction? Or Rust std::io::Read/std::io::Write? Or Node.js streams? Or DOM Web Streams? Or Ruby files? Or Haskell conduits? Or hell, fopencookie/funopen in C? The abstractio
434.
▲
by
vore
4y ago
I think it really truly depends. I think it's always good to do the minimal viable thing first instead of being an architecture astronaut, but if you've been asked for three (random ballpark number) different implementations for t
435.
▲
by
vore
4y ago
The shapes example is pretty contrived so I don't really have an opinion on it either way. But imagine you have something like a File interface and you have implementations of it e.g. DiskFile, NetworkFile, etc., and you anticipate oth
436.
▲
by
vore
4y ago
This guy is so dogmatic about it it hurts. I would argue that clean code is a spectrum from how flexible vs how rigid you want your abstractions to be. If your abstractions are too flexible for good performance, dial them back when you see
437.
▲
by
vore
4y ago
I'm not sure if getting some extra syntactic sugar is worth adopting a whole other language into a codebase: at least, that seemed to be one of the lessons from CoffeeScript.
438.
▲
by
vore
4y ago
As cache-friendly as advancing two pointers and a bounds check.
439.
▲
by
vore
4y ago
That seems like an inside-out way of doing it to me. I would schedule work onto the transaction struct and make it ultimately responsible for if it should roll back the work or keep it committed. let mut tx = Transaction::new(); dof
440.
▲
by
vore
4y ago
I find that after writing a lot of Go, manually having to defer/scope(exit) is a lot more error prone than just RAII destructors: it’s impossible to forget to defer the destructor.
441.
▲
by
vore
4y ago
There’s a difference between using it as treatment vs punishment though. That’s like saying they use the same substance for lethal injections (pentobarbital) for treating anxiety.
442.
▲
by
vore
4y ago
That's fair, and I don't disagree that parents and guardians should have rights over their children to punish them for discipline. That said, you certainly still can't spank your pets... Look, I agree that the state should ha
443.
▲
by
vore
4y ago
If I (non-consensually) spank an adult, that's abuse. If I spank an animal, that's also abuse. But if I spank a child, that's somehow magically not abuse? Most of Europe has been getting along fine without physically hitting
444.
▲
by
vore
4y ago
Fortunately?
445.
▲
by
vore
4y ago
Nothing improves morale more than the uncertainty of being randomly fired!
446.
▲
by
vore
4y ago
It’s always hard to convince management of the business value of a v2 rewrite, especially if v1 works “well enough” from the outside :( Sometimes it’s easier to just front load the cost to avoid significant churn later.
447.
▲
by
vore
4y ago
You hit the nail on the head with long term vs short term gain, but I think there is an additional factor to consider: software generally isn’t frozen at v1. You should also consider if using Rust reduces the toil of incremental changes to
448.
▲
by
vore
4y ago
This is workable if you’re in your early 20s and dedicated to the grind, but not sustainable if you’re going on 40 with two kids. Owing my employer almost all of my waking hours is not worth it for me personally. In the end I’d rather look
449.
▲
by
vore
4y ago
I think the parent is just saying John Roberts employs apoliticism as a smokescreen for the inherently political nature of the Supreme Court.
450.
▲
by
vore
4y ago
I would also be happy to pay for favorable legal decisions in disputes against my company.
More ›