Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cjfd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
59 ms
·
661.
▲
by
cjfd
7y ago
'You have not worked on bad enough code base.' You know, it is a bit pretentious to read a few sentences that someone wrote and then conclude a lot about what they know or do not know. And I actually do know what ravioli code is.
662.
▲
by
cjfd
7y ago
Well, I worked for quite some time in a code base that was basically one big ball of missed abstractions. Maybe I was traumatized a bit by that. I also have seen wrong abstractions, but not because there should not be an abstraction. If peo
663.
▲
by
cjfd
7y ago
If there is any article that I absolutely hate it is 'Duplication is far cheaper than the wrong abstraction'. A somewhat minimal abstraction has very little chance of being wrong. And if it is wrong, is it really that difficult to
664.
▲
by
cjfd
7y ago
Sounds more like too little care rather than too much. Of course it also depends on how much maintenance is going to occur on that code. I think in production code one should already look for an abstraction if something is done twice. The g
665.
▲
by
cjfd
7y ago
There is more going on besides price. The review process is also completely arbitrary. I don't like the whole thing that the only place to get apps is the app store. I will never buy any apple device as long as that is in place.
666.
▲
by
cjfd
7y ago
This piece is jumping from (un)equality in the family to (un)equality in the state. That itself does not seem to be a good idea. The state cannot be run as if it were a family. Regarding the family conundrum I would say that the four childr
667.
▲
by
cjfd
7y ago
It has worked several times in the history of physics, though.
668.
▲
by
cjfd
7y ago
Actually, string theory arose as a way of doing exactly what this person requests. It was noticed that quantum field theory and gravity do not go together, so it was attempted to do something about this. So, it did not really work out? Well
669.
▲
by
cjfd
7y ago
I think the realization that research is better of without boundaries can be effectuated a whole lot earlier than removing all of the silly lines on the map. In fact it may well be a long time before removing the silly lines on the map is e
670.
▲
by
cjfd
7y ago
We should realize that there is not always a very sharp distinction between a participant and a spectator. We all are sometimes a participant and sometimes are tired and just want to watch TV and be a spectator. Drawing a disctinction betwe
671.
▲
by
cjfd
7y ago
I did not write this as a casting of blame. Merely as an observation. One can observe that having a broken leg is not optimal for locomotion without blaming the person who is in that condition.
672.
▲
by
cjfd
7y ago
The common ground is that these people are way too interested in what other people are doing. As if life is what other people are doing instead of what one is doing oneself. Life is for participation not spectation.
673.
▲
by
cjfd
7y ago
I once played a maze game on X where the maze would literally not allow the mouse cursor to go through the walls so it would be taken hostage. The only way to continue your X session was to solve the maze. That was quite funny. Oh, well, th
674.
▲
by
cjfd
7y ago
There are other ways to get liveness, though. You could make it such that multiple instances of the program can run and make, e.g., sure that new logins go to the new one. Once the last login has disappeared from the old program it can be s
675.
▲
by
cjfd
7y ago
Actually, most research in this area points to the percentage of people being gay among males to be about twice that of among females.
676.
▲
by
cjfd
7y ago
Software engineering would have been a higher quality profession of python had never gotten into any production project. Now we need to patch over the mess by adding mypy but we could have used a language with explicit types right from the
677.
▲
by
cjfd
7y ago
How much optimization you need depends on the situation. The first question is for how many concurrent users are you going to write it for. In most cases O(n^2) is too much unless you know that in practice n is always going to be less than
678.
▲
by
cjfd
7y ago
The 'many from over a decade ago' part shows one problem with TODO comments. Very often these TODOs are never done. Really, TODO comments should not exist. When you are writing some code is the point when you know most about it an
679.
▲
by
cjfd
7y ago
In mathematics pure proofs are well, alive, and kicking.
680.
▲
by
cjfd
7y ago
The thing is that the prime numbers have to go through all of the filters. Although the prime numbers are a minority among the numbers they are not a very small minority. In fact, a random number N has about a probability of 1/log(N) t
681.
▲
by
cjfd
7y ago
clearly O(n^2) for time. Well, perhaps O(n^2/log n) or something, but that is not much different. The thing is, every prime p gets passed through a filter that filters multiples of primes p' for all p' < p.
682.
▲
by
cjfd
7y ago
Clearly much worse than the original solution. Basically, a nested sequence of filters is built, one to filter out multiples of each prime number. One way in which the complexity of this is bad is that if you want prime numbers < N you o
683.
▲
by
cjfd
7y ago
To understand recursion you must first understand recursion.
684.
▲
by
cjfd
7y ago
Fair enough, sounds like a workable solution.
685.
▲
by
cjfd
7y ago
The main problem with such a stack based language for 'serious' programming would, I think, be the lack of dynamic allocations. The stack is all nice and fine if pieces of memory only need to be preserved inside functions and thei
686.
▲
by
cjfd
7y ago
Actually, conservation of energy has enormous effect on the day-to-day practice of physics.....
687.
▲
by
cjfd
7y ago
Well, java tends to be one extreme and python the other. Java appears to be the most bureaucratic language around where most code is written by people who are just a bit too enthusiastic about OO so every class becomes a FactoryManagerPatte
688.
▲
by
cjfd
7y ago
The question is whether the performance hit that one gets from running such a language at run time is acceptable. For one, thing, it pretty much forces one to use a purely functional language. Which may or may not be a good thing.
689.
▲
by
cjfd
7y ago
Mostly good points but also some quibles. "Personally, I want to write all my specifications in more-or-less the same language I use to write ordinary code." If we take 'specifications' one level further and actually wan
690.
▲
by
cjfd
7y ago
There is also very much accidental complexity in software. Mainly the plethora of OSes, programming languages, build systems, package managers and what not. For maximum simplicity there should exist only one of the things I mentioned in the
More ›