Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rat87
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
74 ms
·
931.
▲
by
rat87
11y ago
I think that's wrong, def lazy_lines(filename): with open(filename) as f: for line in f: yield f works just fine
932.
▲
by
rat87
12y ago
All I know is that my Mother is happy using yahoo email on her first smart phone.
933.
▲
by
rat87
12y ago
Sometimes the best name for a variable is a variation of the associated class/function name.
934.
▲
by
rat87
12y ago
Assuming you have a consistent naming scheme for your language I'd assume this would be mostly used to call libraries written in other languages
935.
▲
by
rat87
12y ago
Discussions of Clock accuracy remind me of Thief of Time (from the Discworld series by Terry Pratchett)
936.
▲
by
rat87
12y ago
That's ridiculous. In what way is it unique? Nukes are more likely to be used in a Pakistan-Indian conflict and now that the cold war is over there's no chance of a regional war spiralling into WWIII.
937.
▲
by
rat87
12y ago
It's really popular with ruby community not only rails, and from there I think it spread somewhat to node but I outside those I think linux is a lot more popular.
938.
▲
by
rat87
12y ago
I'm pretty sure symbols are not meant to be created from "user" input where user is untrusted, can't this lead to ddos atacks? Same thing for interning. De-Duping doesn't have that risk.
939.
▲
by
rat87
12y ago
From what I've heard of it I'm guessing they would be advocating switching to Perl-6 for new projects if perl-6 had actually shipped a 1.0/6.0 type release and seemed to be succeeding as a practical language.
940.
▲
by
rat87
12y ago
I think unwrap calls are mainly meant for quick and dirty stuff and if you find yourself doing it it may be the wrong solution.
941.
▲
by
rat87
12y ago
Dammit, I kept wondering why it wasn't named unwrap_or_panic/unwrap_or_assert but it could be worse at least unwrap is a less friendly name then scala's get.
942.
▲
by
rat87
12y ago
It seems like safety/correctness in general and not just memory safety is a major focus.
943.
▲
by
rat87
12y ago
Incredibly sad news. Plenty of people on this thread have recommended some of his best books(Small Gods, The Truth, Monstrous Regiment) but nobody has brought up Jingo yet. It's a wonderful satire of extreme war nationalism, it'
944.
▲
by
rat87
12y ago
I'm a guy who hasn't written that much ruby, I'm mostly writing python these days but I understand a lot of the concepts have written a bit of ruby and wish that some python things could be more like ruby. Also I'm a g
945.
▲
by
rat87
12y ago
This is so cool, so more need to install hal?
946.
▲
by
rat87
12y ago
On Linux things should go in xdg dirs ~/.config ~/.local and ~/.cache instead of ~ but a lot of old unix software and sadly a decent amount of new software(even guis) don't follow the standard.
947.
▲
by
rat87
12y ago
neo-libreral means pro free trade neo-conservate means pro war especially against non-democratic regimes they don't like seeking to remake them into democracies.
948.
▲
by
rat87
12y ago
Someone else mentioned the fact that default_result if condition else alternate_result is pythons form of ternary expression and semantically equivalent other then pythons truthiness boolean testing of objects(empty collections, 0,
949.
▲
by
rat87
12y ago
in python3 filter returns an iterator.
950.
▲
by
rat87
12y ago
I don't have access to powershell on linux but I think the syntax would be (ls).Count (where ls is an alias for http://ss64.com/ps/get-childitem.html which returns .net FileInfo objects, it can also return info fo
951.
▲
by
rat87
12y ago
> Police techniques have gotten dramatically better. Everything from witness protection programs In what ways have witness protection programs improved? More money? I can't think of any technological changes that help here and altho
952.
▲
by
rat87
12y ago
considering its a for of MySQL I'd say yes.
953.
▲
by
rat87
12y ago
For context > [Hitler] has grasped the falsity of the hedonistic attitude to life. Nearly all western thought since the last war, certainly all "progressive" thought, has assumed tacitly that human beings desire nothing beyond
954.
▲
by
rat87
12y ago
note http://www.kde.org/community/whatiskde/kdefreeqtfoundation.p... > The Foundation has a license agreement with Digia and Nokia. This agreement ensures that the Qt will continue to be available under both th
955.
▲
by
rat87
12y ago
reminds me of this quote > Her smile tilted. “Mark, you don’t pay back your parents. You can’t. The debt you owe them gets collected by your children, who hand it down in turn. It’s a sort of entailment. Or if you don’t have children of
956.
▲
by
rat87
12y ago
Other Microsoft Github accounts(I think) https://github.com/msopentech https://github.com/OfficeDev https://github.com/Azure
957.
▲
by
rat87
12y ago
> CVS isn't deprecated. Isn't it? I thought SVN was designed to be a similar but better system? Also cvs(the gpl one, not opencvs) seems to not have had any commits for several years.
958.
▲
by
rat87
12y ago
For me the spiderman(specifically 90's spiderman and spectacular spiderman) cartoons are a pretty good abbreviation/retelling of the comics without as many crossovers and with a more coherent stories. Probably some of the other ca
959.
▲
by
rat87
12y ago
I've had it installed on a bunch of corporate boxes and never used it and I'm not sure if anyone used it. Even though it's a bit crash happy on windows and the gtk file picker sucks on windows for my uses meld was the most us
960.
▲
by
rat87
12y ago
You also have the choice to bad mouth non-competes live in states where they are mostly invalid(like California) and support laws banning non-competes.
More ›