Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fhd2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
64 ms
·
841.
▲
by
fhd2
13y ago
I can't speak for larger companies, but as a small remoter company, we don't see much gain in saving a few thousand bucks each year trying to hire cheap. It's comparatively rare for us to find someone who's a good fit, i
842.
▲
by
fhd2
13y ago
Wow, ageism is nothing new, but I've never seen clothism before. What kind of experience and character traits do you think the next Microsoft CEO should have? I'm having trouble deducing those from age/clothing.
843.
▲
by
fhd2
13y ago
> It's better to train yourself to get used to seeing code bases formatted slightly differently, just one of the things you have to get over, IMHO. Like camel notation version underscores versus dashes. That's a pretty good poi
844.
▲
by
fhd2
13y ago
Good point, I believe clang + libstdc++ is a much more common combination than clang + libc++. One thing I really don't like about libc++ is that it doesn't support anything from TR1 - makes it needlessly difficult to use in exist
845.
▲
by
fhd2
13y ago
It's still an issue, but arguably one you only have when starting a new project. I have yet to hear a single reason for tabs or spaces that justifies changing the indentation for a whole established code base - unless it had inconsiste
846.
▲
by
fhd2
13y ago
Yeah, Google has 80 column limits for almost every language (except for Java, it's pretty difficult there). So does Mozilla and all major open source projects I can think of (again, Java being the exception). It really does a lot for r
847.
▲
by
fhd2
13y ago
Yup. After a decade of programming, the only thing I care about is consistency. Even the weirdest code style people can come up with is just fine in a clean, consistent code base. Mildly surprised to see people arguing for specific tab widt
848.
▲
by
fhd2
13y ago
Well, Torvalds said that about C where you have no indent at the class/namespace level. So I'd argue it can be a bit more for languages that have this (most of the popular ones), 4-5 I guess.
849.
▲
by
fhd2
13y ago
"Simple" and "easy" mean two very different things [1]. [1] http://www.johndcook.com/blog/2011/11/11/simple-versus-easy/
850.
▲
by
fhd2
13y ago
Even unused code arguably adds to the overall complexity. But maybe that's what he meant, yeah.
851.
▲
by
fhd2
13y ago
I'm sort of a C++/Stroustrup fan I guess, but this confused me: > C isn’t simpler for C-style programming than C++ is [...] Is Stroustrup really arguing that C is not simpler than C++? How can it not be simpler? C++ is essentia
852.
▲
by
fhd2
13y ago
I love it. I'm staring to look for reasons to try Rust in a project, luckily they're piling up :)
853.
▲
by
fhd2
13y ago
These guidelines pretty much apply to C++, although pointers in Rust are more akin to smart pointers than raw pointers, and there are indeed a bunch of use cases for those. Sticking to values and references works pretty well most of the tim
854.
▲
by
fhd2
13y ago
To transform PHP code, it seems [1]. That's not quite the same as the backend and infrastructure of Facebook and Google. I'm not trying to start a flame war or anything, just pointing out that C++ is good at some things you cannot
855.
▲
by
fhd2
13y ago
> Rather than debating the technical facets of the article, you fall back on the ubiquity of C++ projects as an overwhelmingly positive aspect. For what it's worth, people say the same thing about PHP; how do you feel about that lan
856.
▲
by
fhd2
13y ago
I see your point, comparing languages created for robustness and programmer productivity with languages created for raw hardware access and performance doesn't make much of a point. However, C++ tries to be both, that's what'
857.
▲
by
fhd2
13y ago
> Kind of surprised that marketing cost them more than development ($115m vs $150m). Kinda depressing, considering how game developers are typically underpaid and overworked... But as long as people are willing to put up with it, it'
858.
▲
by
fhd2
13y ago
Can't say anything about Haskell, but what Scala has is less flexible then const correctness in C++ IIRC. You can't have an immutable reference to a otherwise mutable object and then call non-mutating functions on it. It's ei
859.
▲
by
fhd2
13y ago
> The lack of transitivity for one. Const pointers shouldn't be able to modify the pointed objects Are they? I either misunderstand or disagree. The syntax gets a bit silly with pointers, because you can have const pointers and poin
860.
▲
by
fhd2
13y ago
You mean that it's not clear if copying the handle will copy the data or just create another reference? At least in the STL that's kinda clear: vector will copy its elements (if they are pointers, it'll copy the pointers. if
861.
▲
by
fhd2
13y ago
> It certainly exists in plenty of other languages, but in a non-broken way. C++'s const correctness model is mostly broken, by the way [1]. D's model is a bit more sane [2]. Languages like Haskell or Clojure (AFAIK) make immut
862.
▲
by
fhd2
13y ago
> The closest I've seen to this working is maybe games written in C++ that can be fairly easily built for different mobile platforms with a few native language bits done via a bridge where needed. Speaking for the game industry, C++
863.
▲
by
fhd2
13y ago
> My problem with his preferred solution is that I cannot know that Gadget is really a handle to a shared Gadget and not a big fat Gadget value on the stack. The only way of knowing that is to look at the implementation or the documentat
864.
▲
by
fhd2
13y ago
If you've ever wondered what's the deal with C++ and why it's being used in 2013, you might wanna watch this. Stroustrup isn't a very flashy speaker, but he says some incredibly insightful things. C++'s C heritage m
865.
▲
by
fhd2
13y ago
Well, what's easy in Java here is that you're effectively always working with shared objects. That's easy to use, but in my experience quite error prone, I can't count how many memory leaks I fixed in Java/JS code.
866.
▲
by
fhd2
13y ago
Yup, that's true. Currently they're blowing the open platform horn (for their Steam Box as well), but Steam itself is by no means open. At some point, open platforms might no longer align with their business goals. That's whe
867.
▲
by
fhd2
13y ago
The point of the example is that this is how NOT to do it in C++. There are two better options: void f(int n, int x) { Gadget p(n); // Stack allocated // ... if (x < 100) throw new Exception(&quo
868.
▲
by
fhd2
13y ago
RAII ("classes as resource manager") is one of the nice concepts in C++. My favourite is certainly const correctness. And then there's tons of things that creep me out a bit. Being a multi paradigm language sounds good on pap
869.
▲
by
fhd2
13y ago
> That is simply not true, the vast majority of games work fine, and most of those that don't only need you to fiddle with the "compatibility" settings. I realise that's just my experience, added a remark above. I
870.
▲
by
fhd2
13y ago
I think it's not Windows 8 in particular that made Valve nervous, but it was probably the wake-up call. The industry as a whole is moving into walled gardens right now, following Apple's lead. I'm very worried about that myse
More ›