Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jeorgun
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
jeorgun
12y ago
Comparisons work, but Ruby's == isn't the same as Java's; what I was referring to was 250.object_id == 250.object_id # true (2**70).object_id == (2**70).object_id # false
92.
▲
by
jeorgun
12y ago
This particular quirk also holds true of, say, Ruby or Python: 256 is 256 # True (2**50) is (2**50) # False albeit without Java's fear of operator overloading and the counterintuitiveness it causes.
93.
▲
by
jeorgun
12y ago
Small world— I've just started this exact assignment at CU. Kind of a neat coincidence seeing it discussed here.
94.
▲
by
jeorgun
12y ago
In fact I think most of them are more applicable to a C programmer. Most C++ programs aren't going to be making extensive use of, say, snprintf, which several of the errors I was shown involved.
95.
▲
by
jeorgun
12y ago
Hexadecimal numbers, probably. 0x001_f05 would be ambiguous.
96.
▲
by
jeorgun
12y ago
That's still an incredibly unclear definition (c.f. the Chinese Room Argument, P-zombies, etc., etc.). And that human intelligence is an entirely computable process isn't exactly universally accepted.
97.
▲
by
jeorgun
12y ago
Individual preference (it seems to me) isn't racist, but in aggregate it at the very least raises questions about where those widespread preferences come from.
98.
▲
by
jeorgun
12y ago
I'm using a Chromebook Pixel running Arch right now. It works pretty well with KDE, and almost perfectly with GNOME, with the exception of— stupidly— Chromium, which has pretty minimal high-DPI support.
99.
▲
by
jeorgun
12y ago
Apparently the libstdc++ people aren't entirely convinced by the growth factor claims: https://gcc.gnu.org/ml/libstdc++/2013-03/msg00059.html
100.
▲
by
jeorgun
12y ago
The boost units library does this for C++.
101.
▲
by
jeorgun
12y ago
Replicating web-style prettified UIs seems to be one of the major goals of QML. In any case, if your alternative is an HTML/CSS/JS/Node application, I don't think replicating native look and feel is really that likely to
102.
▲
by
jeorgun
12y ago
The literal types are optional— they're user-defined literals, which can be written like (say): QString operator""_qs(const char* c_str, size_t len) { return c_str; } void foo() { aut
103.
▲
by
jeorgun
12y ago
You can do that. That's part of C++11 and is supported by basically every major compiler. The advantage of iterators is that they're incredibly flexible. You can use them for sub-ranges, reversed ranges, non-ranges like input and
104.
▲
by
jeorgun
12y ago
I'm in pretty much the same boat. The actual problems I don't really mind (I have to code to some, and it wouldn't hurt to revisit the rest), but I'd very much like to have my username back. OK, so it's an extremely
105.
▲
by
jeorgun
12y ago
Are they actually case-sensitive, though? Randomly capitalizing words seems to have no effect to me (unless iOS is sneakily autocorrecting it), so it's something of a moot point.
106.
▲
by
jeorgun
12y ago
I think that's raart's point. The syntax is really simple and easy to pick up, so all the tutorials focusing mainly on syntax and paying less attention to actually, well, getting things done, do the language a disservice.
107.
▲
by
jeorgun
12y ago
RTTI returns nullptr when casting a pointer, but it does throw an exception when casting references. Both of these behaviors are well-defined, although the first is kind of questionable.
108.
▲
by
jeorgun
12y ago
From my understanding, they're only dangerous if you swallow more than one of them; then they can attract each other through organ walls and cause serious damage.
109.
▲
by
jeorgun
12y ago
I've never used Moose, but in my limited experience, most of the cases where multiple inheritance is useful seem to be ones that basically amount to Ruby's modules/mixins system¹. Are there any examples of useful patterns tha
110.
▲
by
jeorgun
12y ago
It seems to me that, in pretty much every field, the most rewarding tasks, often with the most highly regarded results, are the most constrained— rhyming schemes and meter in poetry, immutability in programming, whatever. It could just be f
111.
▲
by
jeorgun
12y ago
I feel really conflicted about Qt. On one hand, as a graphical toolkit/environment, it's great. It's well-structured and easy to use, and QML is basically everything web applications should have been. On the other hand, as a
112.
▲
by
jeorgun
12y ago
I really like that idea; enough so that I do all of my private browsing through Tor. Of course the downside to that, besides all the inconveniences of Tor, is that it gets associated in the public mind with both extremist criminals and po
113.
▲
by
jeorgun
12y ago
If you literally couldn't see your other posts, wouldn't that suggest that your other profile was hellbanned or something, not that people just stopped upvoting you?
114.
▲
by
jeorgun
12y ago
Arch was one of the earliest distros outside of Red Hat to adopt systemd. It's been using it for nearly two years.
115.
▲
by
jeorgun
12y ago
Really? I'd been under the impression I was the only KDE user left who actually liked the Oxygen widget theme. Everyone else seems to be cheerleading for the new look being shown off here ( http://dot.kde.org/sites/
116.
▲
by
jeorgun
12y ago
The switch for disabling activities and widgets exists; you can enable it by not using activities and widgets. It's not like they're forced upon you. If you feel that strongly about widgets, you can switch to the Folder plasma vie
117.
▲
by
jeorgun
12y ago
How would this lazy-vector-mapping compare to the optimizations used in std::valarray? Or are those optimizations just the ones you mention here?
118.
▲
by
jeorgun
12y ago
I assume you mean the old, pre-4.7 design[1]? Interestingly, Oxygen itself ditched those for a less glossy design that had always reminded me of the (now old!) OSX icons. Not really sure what to make of that. [1] http://icons.ico
119.
▲
by
jeorgun
12y ago
Pretty much their entire pitch is that they don't store the data[1]. I don't really see how they can be forced to give up data they don't have. [1] https://duckduckgo.com/privacy#s3
120.
▲
by
jeorgun
12y ago
If we're necro-replying… Thanks for the detailed reply. Those are all good points. It's worth pointing out that a lot of Ruby's oddities (specifically :symbols, predicate_functions?, and implicit returns) are stolen from vari
More ›