Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Gupie
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
271.
▲
by
Gupie
11y ago
An example that superficially looks like "cut and paste" programming occurs is actually implementing a new derived class. In the C++ case, you could: 1. Type out the new .h and cpp files from scratch. 2. Copy/rename the base
272.
▲
by
Gupie
12y ago
> Just use your common sense, let your experience guide you and if you're not sure about something, ask your teammates. Brilliant, added to our bugzilla quips list.
273.
▲
by
Gupie
12y ago
Some benchmarks for difference C++ methods of converting a string to double: http://tinodidriksen.com/2011/05/28/cpp-convert-string-to-do...
274.
▲
The Two Envelopes Problem
(en.wikipedia.org)
1 points
by
Gupie
12y ago
|
0 comments
275.
▲
by
Gupie
13y ago
"peoples' brains aren't wired to do lots of work for little or no or unequal reward" This is the actuality for most people in the West or the Third World. Thinks sweat shops, paddy fields, StarBucks...
276.
▲
by
Gupie
13y ago
Good take, but the Enterprises have save the Federation from destruction on multiple occasions. With out them the Federation would have been assimilated, enslaved by the Klingons, destroyed by meglomanic advanced alien AIs...
277.
▲
by
Gupie
13y ago
"produces an astonishing 500 cloned pigs a year" - but why? Is there a market for cloned Pigs!? Is this a research project?
278.
▲
Call yourself a hacker - your computer could be seized without warning
(theguardian.com)
6 points
by
Gupie
13y ago
|
0 comments
279.
▲
by
Gupie
13y ago
> C++ “solved” the problem of redundant casting and error- > prone size calculations by replacing malloc and free with > new and delete. The corrected C++ version of the code > above would be: > > struct Pod { >
280.
▲
by
Gupie
14y ago
What is the potential for technology to help, some sort of combination of Google glasses and siri?
281.
▲
by
Gupie
14y ago
Aren't the first two problems simple to solve: 1. create an array length n of booleans set to false, set the each index i to true for the integers in the array, the index of one still false is the missing integer 2. same as 1 but with a cou
282.
▲
by
Gupie
15y ago
Sorry short and messy, ask an actuary. The probability of a breakthrough is IMO much the same as for an afterlife, not very high. There are lots of quacks about. However the following about fasting once a week is interesting: http://www.te
283.
▲
by
Gupie
15y ago
Anything to do with world population history?
284.
▲
by
Gupie
15y ago
Has there been a change to the law? Can you give a reference please. I thought UK law has always allowed reasonable force to be used in defending your property..
285.
▲
Apple copies rejected app
(theregister.co.uk)
249 points
by
Gupie
15y ago
|
68 comments
286.
▲
by
Gupie
15y ago
Simple advise - don't over-eat
287.
▲
by
Gupie
16y ago
I work with a guy, long time ago, who would take code already split into functions and refactor it into one big function. I am not joking here, actually happened.
288.
▲
by
Gupie
16y ago
"until now it has been inconceivable to me that people making nuke plants could possibly underestimate the risks" What I don't understand is why the walls meant to protect the plant from a Tsunami were too low.
289.
▲
by
Gupie
16y ago
Perhaps social interactions are just not rewarding for some really smart people, by definition almost everyone they meet will be significantly less intelligent than themselves. Anyway, that's my excuse :)
290.
▲
by
Gupie
16y ago
"I left shortly after IPO to pursue other interests." :)
291.
▲
WTF - WikiLeaks Task Force
(guardian.co.uk)
4 points
by
Gupie
16y ago
|
0 comments
292.
▲
by
Gupie
16y ago
How do I know that you, the selector of the 100 digit number, are not an enemy spy?
293.
▲
by
Gupie
16y ago
For what its worth, my solution was to give the guard a set of sealed envelopes. Each envelope having a password written on the outside and a password written on a piece of paper inside. The spy would give the guard the word that is written
294.
▲
by
Gupie
16y ago
Just what I was going to say. The form is split into 2 sections, one for account information, the other for billing. The "Tips" checkbox is in the billing section! This is a terribly bad place to put a checkbox labelled "Tips". Are these ad
295.
▲
by
Gupie
16y ago
> Awesome, I'd like to take one of my Lamborghinis for a spin. > > Oh, wait, I can't, because I don't actually own any. If you have a spare £600: http://www.dreamcarhire.com/cars/lamborghini_lp560_4_spyder....
296.
▲
by
Gupie
16y ago
Distance makes the heart grow fonder
297.
▲
by
Gupie
16y ago
No, the "very stupid criminal" comment was just an attempt at humour. If you get stopped by two cars and one of them is a marked police car then it is obvious that the other car is also a police car.
298.
▲
by
Gupie
16y ago
There is a regular marked police car and uniformed officer behind the bike so that should have made it clear that the guy with the gun was also police, or perhaps a very stupid criminal.
299.
▲
Pavlovsk seed bank faces destruction
(guardian.co.uk)
7 points
by
Gupie
16y ago
|
1 comments
300.
▲
by
Gupie
16y ago
I agree. Poor programmers write convoluted messes. Poor but smart programmers write over-complex code. Smart programmers write simple elegant code. A good language is one that make it easier to write simple elegant code. But I am not convin
More ›