Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
anaphor
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
181.
▲
by
anaphor
7y ago
A great example of the simple code snippet is Flask https://palletsprojects.com/p/flask/
182.
▲
by
anaphor
7y ago
the #d channel on freenode is extremely helpful and knowledgeable though, which helped fill the gaps for me personally.
183.
▲
by
anaphor
7y ago
Uniform Function Call Syntax is one of my favourite things about D
184.
▲
by
anaphor
7y ago
It's definitely not your incompetence. I started learning D a few months ago and it didn't click until someone on IRC explained it clearly to me. It's not in the tutorial or anything unless I missed it.
185.
▲
by
anaphor
7y ago
On the other hand, I like the explicitness of it instead of automatically converting to a different type. At least you know exactly what it's doing. The python version of it would be calling `list()` on things all the time, which you m
186.
▲
by
anaphor
7y ago
I've written like one C++ program in my life and I had no problems figuring it out. Although I write C somewhat frequently and have done a lot of Haskell stuff. I think experience with any statically typed language is going to make it
187.
▲
The Confused Deputy (or why capabilities might have been invented) [pdf]
(zoo.cs.yale.edu)
2 points
by
anaphor
7y ago
|
0 comments
188.
▲
by
anaphor
7y ago
Your database (in the context of things like blogs and so on) is a filesystem, it's just built on top of a higher level abstraction than traditional filesystems.
189.
▲
by
anaphor
7y ago
Haha, I completely forgot about that, sorry.
190.
▲
by
anaphor
7y ago
A lot of them will use an algorithm similar to this one https://www.jwz.org/doc/threading.html
191.
▲
What Every Coder Should Know About Gamma
(blog.johnnovak.net)
1 points
by
anaphor
7y ago
|
0 comments
192.
▲
by
anaphor
7y ago
I think they mean they want to see how, e.g. aerobic exercise vs strength training, etc would affect the relationship, if at all.
193.
▲
by
anaphor
7y ago
The XCB tutorial is quite good as well https://xcb.freedesktop.org/tutorial/ Also, if you want to do simple graphics stuff with X11, then I highly recommend looking at https://www.cairographics.org/ in
194.
▲
by
anaphor
7y ago
I don't think most of this applies only to "poor programmers". The advice about KISS is something many "good" programmers would benefit from following. Likewise, I've seen good programmers recommend using array
195.
▲
by
anaphor
7y ago
Wouldn't he still be making money on the sale, unless the loans gain the same amount of interest as the amount the properties have appreciated by?
196.
▲
by
anaphor
7y ago
Having for/while loops definitely isn't fundamental to OOP at all. Languages like Erlang and Racket capture the essence of OOP fairly well, yet you don't need to use loops to write programs in them.
197.
▲
by
anaphor
7y ago
I don't think you should judge it based on the syntax. With UFCS (Uniform Function Call Syntax), or a pipeline operator, it could easily be rewritten to something like: xs.map(\x -> (div (n - length x) 2).replicate(' ') ++
198.
▲
by
anaphor
7y ago
https://www.linuxjournal.com/content/more-using-bashs-built-... has a decent explanation. I came here to say the exact same thing. This is my favourite thing most people don't know exists in Bash.
199.
▲
by
anaphor
7y ago
I agree that it's a thing, aside from some examples I have in mind, like for example, the original authors of OpenSSL (originally SSLeay) didn't really ask for any credit as far as I know. I think you might be overestimating the n
200.
▲
by
anaphor
7y ago
It basically boils down to whether you think people are really being altruistic, or whether it's simply reciprocal altruism.
201.
▲
by
anaphor
7y ago
I have a .vimrc like this in some of my projects set makeprg=./build.sh set autowrite I've found trying to figure out complicated build tools to mostly be a waste of time unless you really need them. It also encourages you to not
202.
▲
by
anaphor
7y ago
I've written a couple parsers in D using https://github.com/PhilippeSigaud/Pegged and they seem pretty fast and easy to verify. Of course since it generates a lot of code at compile time, you can end up with somew
203.
▲
by
anaphor
7y ago
You need something like http://adapton.org/ for C/C++ compilers really
204.
▲
by
anaphor
7y ago
It's also deterministic in the sense that people who think this way are assuming that the universe works deterministically, so they can know that A always leads to B, etc
205.
▲
by
anaphor
7y ago
Maybe the example could be a bit clearer. In the example, the point is that they don't know all of the variables. I would define this sort of (faulty) deterministic reasoning literally as not accounting for hidden variables. If we kn
206.
▲
by
anaphor
7y ago
Not just language, but things like visual perception of colour as well. We don't perceive things as a continuum, we perceive discrete colours. This phenomena applies to tons of different things. We're literally not wired to percei
207.
▲
by
anaphor
7y ago
Once you understand that the author is talking about how people understand the world, it makes more sense. I actually see some parallels here to the problem of induction, i.e. can we predict the future by generalizing a finite number of pas
208.
▲
by
anaphor
7y ago
My main two feature requests would be: - Add a way to mute notifications from an individual user - Add a way to organize threads by topic For the first one, I believe they've said they will never implement it. For the second one, I
209.
▲
by
anaphor
7y ago
That sounds really interesting. I'm going to check it out. Thanks for working on this!
210.
▲
by
anaphor
7y ago
One thing I also find sorely lacking in Docker is the ability to run your containers with the appropriate seccomp privileges (in order to enforce Principle of Least Authority). I know this is possible with Docker, but it's not really
More ›