Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cjfd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
54 ms
·
631.
▲
by
cjfd
7y ago
There is quite a bit of the good having to suffer for the bad going on here. Which, frankly, is just immoral. It actually is not very important that coding styles vary somewhat between one part of an application versus another but it does p
632.
▲
by
cjfd
7y ago
At some point it starts to sound a bit like 'whatever you do, don't touch a keyboard'. Rewriting everything from scratch? Very risky, please don't. Strangling you old application? Some comments here tell us that we shoul
633.
▲
by
cjfd
7y ago
One could ask why the US and european countries are allies. I think it is because both are technologically advanced, both are rich, both are societies with human rights, both are democratic. (Relatively speaking, at least.) These things can
634.
▲
by
cjfd
7y ago
The US, I suppose.... The thing with back doors is that others might also find them so it is quite unsafe in any case. Also, the future is unpredictable so who says the US is going to continue to be more-or-less an ally and China is going t
635.
▲
by
cjfd
7y ago
One can always add print statement. And for asynchronous code this is often the only realistic way to debug. If you pause some thread in a debugger you might end up with other threads noticing it is no longer responding, firing timeouts and
636.
▲
by
cjfd
7y ago
The point is well taken. Gradually refactoring things is generally a much better and safer road to take. I think it could have been said better, though. 'When programmers say that their code is a holy mess (as they always do) ...'
637.
▲
by
cjfd
7y ago
I think it is reasonable to expect pull requests to be reviewed within 24 hours but not necessarily sooner. From this it follows that one can pick a convenient time for them every day and for maximum efficiency one should do precisely that.
638.
▲
by
cjfd
7y ago
Normally I don't suffer that much from having roommates but today I was diagnosing a difficult problem and the noise from people talking to each other, then on the phone, then leaving, then coming back and so on. Every time that happen
639.
▲
by
cjfd
7y ago
Any dependency is also a risk. What if the next version does not just contain a nice feature that you want but also a nasty and subtle bug that you notice only later? Also, maintenance of a small library is by no means guaranteed to remain
640.
▲
by
cjfd
7y ago
This sounds like a legitimate fear that one could have. I can't really say I share it, tough. Also, at some point one does have to note that economic growth cannot go on indefinitely, although it is quite clear that it still can go on
641.
▲
by
cjfd
7y ago
Your original comment talked about this zero-sum game being a very grim circumstance. It talks about 'plunder' and the like. This is in part what I was commenting about, noting that it is not necessarily a grim thing. The other th
642.
▲
by
cjfd
7y ago
Let us tell a bit of a story. You bought your two cars because your all-terrain car hobby is very important to you. This was a bit of a financial squeeze and you could not go on holidays as often as you liked. But since the car hobby is mor
643.
▲
by
cjfd
7y ago
Well, this response sounds a bit more measured than what you originally wrote but it is still seems a bit weird. For one thing, sometimes people consume less just because they do not need as much in a particular year. E.g., a person might b
644.
▲
by
cjfd
7y ago
Yes, the try/catch block is better if the catch block can handle exceptions for all its descendants. As always in programming YMMV and this is sometimes true and sometimes it is not and when it is not it is better not to throw an excep
645.
▲
by
cjfd
7y ago
This is incorrect. If GDP is constant it means that every year the same amount of goods is produced. There can be a new industry in this case. It just means that another industry needs to get smaller. The workers in the other industry can m
646.
▲
by
cjfd
7y ago
Sure, it depends on the situation. In the case you outline, there could also be room for an auxiliary function like fetch_alternatives({ preferred_resouce, second_best_resource , third_best_resource}) that would fetch them in until one can
647.
▲
by
cjfd
7y ago
The code example is not convincing at all. Obviously a single if is much cleaner than a single try/catch block but that is not the comparison. The if needs to be replicated N times for every N things that could fail and that are callin
648.
▲
by
cjfd
7y ago
I have seen the startup stages of software projects with varying levels of quality. The whole spectrum from very bad to very good can be observed and/or participated in in the wild. The good ones start out with one experienced develope
649.
▲
by
cjfd
7y ago
I don't think the clusterf*ck is necessary for anything. It is an indication of immature people working on something when a product goes through a phase like that. Of course, at the stage where the project is 100 lines large one does n
650.
▲
by
cjfd
7y ago
In my previous job I introduced automated tests. This was over time taken up by other developers too. At one point the automated tests prevented a broken build from being shipped which made them quite popular.
651.
▲
by
cjfd
7y ago
There should be boundaries to what is considered respectable opinions that exclude both the extreme right and the extreme left. If people do not express these off-limits opinions they should be considered respectable and treated as such in
652.
▲
by
cjfd
7y ago
You know, dropping f bombs is not a very mature way to engage in discussion. I agree, though, that it should also become harder to get patents. If a useful invention depends on more than one or, at most, two patents the patents mainly serve
653.
▲
by
cjfd
7y ago
Actually, I think in practice my solution is much simpler than yours. For yours to work it is a precondition that these audits are of good quality. Perhaps they will be and perhaps not but at the very least we can note that the pharma compa
654.
▲
by
cjfd
7y ago
It may very well be quite true that the price of insulin is too high but price controls really are not that great. If the price now is to high, $100 probably still is too high. Also, in the more general case (not for insulin, obviously) pha
655.
▲
by
cjfd
7y ago
I can't say I share the feelings that PG is describing. I don't really mind being a noob at something I see as useful to learn. The feeling that I get in that case is a drive to find out what is up with that thing. In programming
656.
▲
by
cjfd
7y ago
I am currently writing a future in C++. We were using the future of the stlab library but that turns out not to work 100% reliably.
657.
▲
by
cjfd
7y ago
Sure, only use threads when you actually need them. The cases where you actually need them are quite numerous, though. E.g., you have a library that connects to something over the network but the library is blocking. Or you need to respond
658.
▲
by
cjfd
7y ago
It may not always be wise to start working despite not feeling it. One could burn out that way. Scott H. Young write an article about this recently. https://www.scotthyoung.com/blog/2020/01/13/too-tired&#
659.
▲
by
cjfd
7y ago
Yes, completely agree. Also alphabetizing includes in C++ is just wrong. The more basic file should be below the less basic file. This is because the less basic file may need to include the more basic file itself and the compiler no longer
660.
▲
by
cjfd
7y ago
It is quite possible to get an MVC by deduplicating things. Image we have two tables that display some data by the same means, e.g., a web page. This will be about the same code twice. For instance, both will iterate over rows and columns.
More ›