Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cjfd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
65 ms
·
691.
▲
by
cjfd
7y ago
I once encountered a comment explaining a line of code saying // speaks for itself
692.
▲
by
cjfd
7y ago
After writing the above comment, memory comes back a bit. The problem is that sqlite does not support renaming a column directly. One can find procedures for that on the internet. E.g., https://tableplus.com/blog/2018&#
693.
▲
by
cjfd
7y ago
It has been a while ago so maybe things are better now but I have seen sqlite being a disaster when the times comes to upgrade the schema. Not all of the common operations like deleting/renaming a column are supported. Since it has bee
694.
▲
by
cjfd
7y ago
There is an even nicer word for dutch/german. slechtstschrijvende/schlechtstschreibende. Yes, 9 consonants in a row and you have to pronounce all of them like you are a beatboxer.
695.
▲
by
cjfd
7y ago
Not really something to be proud of. You basically have just admitted on a forum for programmers that you don't have very much insight in algorithms.
696.
▲
by
cjfd
7y ago
Okay, we have deviations from the mean. They are (0.1, 0.1, -0.1, -0.1). Or we have deviations from the mean (0.2, 0, 0, -0.2). I think is is pretty intuitive that in the second case the deviation is larger. In the first case there are only
697.
▲
by
cjfd
7y ago
C.G. Jung once wrote that it was totally clear that the amount of conscience of a group of people is inversely proportional to the size of the group. So, if countries are like people they mostly are like psychopaths.
698.
▲
by
cjfd
7y ago
Of course. You can define more or less anything in this language. And, actually, someone has already done exactly that. See http://flocq.gforge.inria.fr/ . Never used it myself so I do not know whether it is any good.
699.
▲
by
cjfd
7y ago
Actually, there are binary numbers in the coq standard library. N is in the library NArith and Z is in the library ZArith. Both are binary. Coq is not meant to be a language for computation. If you only use natural numbers to state properti
700.
▲
by
cjfd
7y ago
One thing to watch out for, I think, is people who want to do this massive refactor (an oxymoron as another comment notes) and also have a work history consisting entirely of short employments. These people never get to experience the actua
701.
▲
by
cjfd
7y ago
Also works just fine with me. Firefox on linux here.
702.
▲
by
cjfd
7y ago
Could you give an example of situations where there would not be small and well-defined inputs and outputs because this certainly does not sound like a common situation to me? And what do you mean by 'Tests that only asses their own mo
703.
▲
by
cjfd
7y ago
I once played chess against one of the owners of the company at the Friday afternoon drinks event. When things started to look good for me he just left the drinks event. He does not seem to hold it against me in any way, though. When the ot
704.
▲
by
cjfd
7y ago
That depends. A problem may be quite difficult in computational complexity but if you can find simpler less computational complex version of it that can be used for automated tests that can be quick. E.g., test your neural network training
705.
▲
by
cjfd
7y ago
There is some point to your comment but also something that seem to me to be misunderstanding. Also, part of it seems self-contradictory to me. There can indeed be exploration stages where TDD does not help that much. E.g, if you are going
706.
▲
by
cjfd
7y ago
Until you mentioned him I had never heard of this Jonathan Blow character. The thing is both of these people seem to do game development. If you write code that is close to the hardware and needs every ounce of performance there might be a
707.
▲
by
cjfd
7y ago
And after you read the book do a simple toy project to try it out.
708.
▲
by
cjfd
7y ago
Doing TDD one should have a strong preference to write the test first. But really, in this discussion, which frequently happens on this forum the most important thing is often left out. What people are not talking about is that there also i
709.
▲
by
cjfd
7y ago
Read the book. Worked for me.
710.
▲
by
cjfd
7y ago
Presumably when a merge breaks the main branch, the merge gets reverted and it is the task of whoever pushed that to fix it. In the mean time the CI server can continue with the next branch/commit in the queue.
711.
▲
by
cjfd
7y ago
I think some decades ago I read the manual of gnu make in about an hour. After that is not great at it but can write a Makefile for a simple project.
712.
▲
by
cjfd
7y ago
If what we currently see related to people who enjoy this kind of moralizing is any indication, it seems more likely that he had some sexual skeleton in the closet than that he was asexual. Like all these anti-gay preachers some time ago th
713.
▲
by
cjfd
7y ago
I am not sure. I am a c++ programmer. We don't have a sexy new framework every week or something like that. I am not really worried. I suspect that if I wanted to I could write c++ until I retire. I changed jobs some time ago to keep w
714.
▲
by
cjfd
7y ago
Actually, the more technical a text is the more likely it is to contain references and (sub)headers. Also, I certainly would not describe this text as a 'straight wall of text'. A straight wall of text would be a text without para
715.
▲
by
cjfd
7y ago
'A long sequence of code that flows in one direction'. I guess I agree in that case but how often does that happen? Generally a 100 line method will have loops, ifs and be quite deeply nested. In that case it should be split. The
716.
▲
by
cjfd
7y ago
Yes, I am pretty consistent in it. It has the great benefit of leading to highly reliable software even in the face of complex requirements and many requests for changes. Rewriting the tests completely does not really happen. Sometimes I am
717.
▲
by
cjfd
7y ago
It can be defended when the system is in a rather passive form of maintenance. E.g., every month a small bugfix. If it is more than that it becomes way to easy to fix one small thing while breaking three. Especially if the functionality is
718.
▲
by
cjfd
7y ago
'I presume it should have become a gigantic pile of outdated and barely maintainable code.' Apart from how this may or may not apply to gcc this attitude is much of what is wrong with the programming profession. When good develope
719.
▲
by
cjfd
7y ago
https://en.wikipedia.org/wiki/Two-photon_physics
720.
▲
by
cjfd
7y ago
This is kind of true but the article is pushing it a bit far. In the schema there is an afternoon with block of two hours. One would hope that a maker could do something in a two hour block...
More ›