Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sclangdon
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
61.
▲
The Danger of Opinions
(codersnotes.com)
2 points
by
sclangdon
9y ago
|
0 comments
62.
▲
by
sclangdon
9y ago
What is a "better" solution? If a macro-programmed office document is doing its job, what constitutes "better"?
63.
▲
by
sclangdon
9y ago
I particularly liked the part where he tells the engineer "you're not understanding me, I don't care why it doesn't work, I'm just telling you that it doesn't work. I'm a consumer and these are $300 earp
64.
▲
by
sclangdon
9y ago
If you're interested in Zork and functional programming, you might be interested in Eric Lippert's series about writing a Z-machine (a virtual machine used by Infocom for some of it's text adventure games, including Zork) in
65.
▲
by
sclangdon
9y ago
I believe some games companys use it. Naughty Dog of Uncharted and The Last of Us fame, being the most famous. I think they used it to create some game logic DSL or something of that sort. More info here - https://www.reddit.com&
66.
▲
by
sclangdon
9y ago
As an aside, I always think it's such a shame that no one seems to mention Bresenham's updated, and quicker, run-length slice line algorithm. http://www.phatcode.net/res/224/files/html/ch36/
67.
▲
by
sclangdon
9y ago
And here is the source, along with some other Farbrausch projects. https://github.com/farbrausch/fr_public
68.
▲
by
sclangdon
9y ago
To be fair, "More on DOTA 2" is completely meaningless out-of-context. The article could literally be about anything (in the DOTA 2 universe). So whilst the new edited title is a bit click-baity, it is nevertheless more meaninful
69.
▲
by
sclangdon
9y ago
It's interesting that you think CMake is a "dumpster fire". Consider that CMake isn't the only build tool, but has, without question, risen to the top as the premier build tool for C++. Why do you think that is? No doubt
70.
▲
by
sclangdon
9y ago
It makes me smile when someone starts off a complaint with something similar to "I've been programing in C++ for x decades. I have y qualifications that should impress you. I worked at z company which should impress you further. Y
71.
▲
by
sclangdon
9y ago
Also remember that id Software wrote an engine specific to the game they were creating (it's debatable whether you can call them engines at all, really). Things are a lot more streamlined if you take this approach because you rarely, i
72.
▲
by
sclangdon
9y ago
Isn't it just what you're used to? I recently (2 years ago) went the other way - from Windows to macOS - and I feel the same way as you but in reverse. I'll never buy another Mac, and I can't wait to get back on Windows,
73.
▲
by
sclangdon
9y ago
If you think you don't have to comment your code, I don't think your understand the purpose of comments. If you've been a developer for any length of time, I'm sure you will have encountered a situation where you've
74.
▲
by
sclangdon
9y ago
That isn't a compramise, it's the goal. Your comments should be about the "why", and not the "how". We already know how, that's what code is - instructions about how something works. What we don't k
75.
▲
by
sclangdon
9y ago
In my experience - working solely for large organisations for the last 17 years - the number crunchers are almost always swayed by "it'll be better in the long run". It rarely ever is, of course, but don't underestimate
76.
▲
by
sclangdon
9y ago
You seem to be under the impression that writing efficient code is at odds with writing reliable or robust code. Efficient does not mean unsafe. Efficient code does not have to shoot-from-the-hip. Efficiency means that the task is completed
77.
▲
by
sclangdon
9y ago
When this article refers to the term "modern C++" it seems to be talking about Andrei Alexandrescu's now 16 year old notion of modern C++ [1], not the C++11 and newer notion [2]. [1] Addmittedly, Andrei's notion is still
78.
▲
by
sclangdon
9y ago
The download isn't even remotely that big. If you are talking about the compiled size, you only need to build what you use (look up the --with-<library> and --without-<library> switchs). You can also use the included bcp ut
79.
▲
by
sclangdon
9y ago
macOS comes with Apple's build of Clang, which has different versioning from "proper" Clang.
80.
▲
by
sclangdon
9y ago
Selective, private-sector, paid-for schools in the UK are called Public Schools. I assume the quotes are because the schools are anything but public.
81.
▲
by
sclangdon
9y ago
Actually, it tells the compiler that every time it comes across a class called string that isn't fully qualified, it should use std::string. And since he's put it in the global namespace, it will apply everywhere this header is vi
82.
▲
by
sclangdon
9y ago
Insertion and deletion _were_ prime examples. It's not necessarily the case with today's hardware, especially until you reach some threshold of the number of elements (usually hundreds of thousands). You say "the same operati
83.
▲
by
sclangdon
9y ago
Perhaps not a perfect fit, but what I've done in the past, and found to work quite well, is to turn those big datasets you mention into an event stream. You can do it quite trivially by simply raising an event on every line read, or yo
84.
▲
by
sclangdon
10y ago
Actually, it is the merit of the language. C - and FORTRAN for that matter - are fast because their restrictions force you to program a certain way. A way that just-so-happens to be efficient (if not particularly safe). For example, general
85.
▲
by
sclangdon
10y ago
If I remember correctly, the reason Facebook switched to Mercurial from Git was because they needed to make some changes or add additional functionality and Mercurial is an easier system to do that with, apparently.
86.
▲
by
sclangdon
10y ago
STL does use hybrid sorting. It is usually implemented as an introsort, which begins with a quicksort and switches to heapsort based on the number of elements to be sorted.
87.
▲
by
sclangdon
10y ago
Not familiar to me, no. I have a desktop for desktop-style use, and guess what, I don't have to worry about it being limited to 16GB of RAM because it doesn't have to consider size, power consumption, or anything else that a lapto
88.
▲
by
sclangdon
10y ago
Since when were simple solutions considered stupid? If filtering audio (which will probably only work the CPU, and thus the fan, more) is smarter than stopping a fan, I must be as dumb as bricks.
89.
▲
by
sclangdon
10y ago
PBRT is big because it is written using literate programming and therefore includes (almost[1]) the entire source code for the ray tracer in print, which arguably makes it easier to follow than other books on the topic. The PBRT ray tracer
90.
▲
by
sclangdon
10y ago
Good job OP. I personally found Eric Lippert's 6-part series (and playable Silverlight demo) on the subject fascinating. I didn't notice it referenced in your design document, so here it is. https://blogs.msdn.microsoft
More ›