Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
DannyB2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
36 ms
·
361.
▲
by
DannyB2
8y ago
If it no longer works then I don't consider that to be "refactoring" but "rewriting". I think of refactoring as a series of SIMPLE transformations that clearly do not have any effect on the correctness (or incorrect
362.
▲
by
DannyB2
8y ago
But I could write a simpler (incorrect) leap year function than yours!
363.
▲
by
DannyB2
8y ago
When I was in school in the 70's. (That's NINTEEN seventies.) There was this book called The Psychology of Computer Programming. This predates the microcomputer era as we know it. Punched cards were still common when the book
364.
▲
by
DannyB2
8y ago
Making correct code simple(r) requires more time (eg money) than making correct code in the shortest time possible. Simple, and still correct, is often the result of doing MORE work to achieve it.
365.
▲
by
DannyB2
8y ago
Complexity for new features or performance optimizations is simply a trade off. Sometimes one worth making. By adding a lot more complex code can I make this blitter 100 times faster? By using this more complex algorithm can I make a &quo
366.
▲
by
DannyB2
8y ago
All four of those are great! But if they are wrong, then it is still wrong no matter how simple. Like saying leap years occur every four years. Simple!
367.
▲
by
DannyB2
8y ago
Certainly don't gold plate. But simply meeting requirements is only doing the minimum possible. Now in a government job, that's okay. But in a real job, if you see where the simple solution is OBVIOUSLY wrong for certain likely c
368.
▲
by
DannyB2
8y ago
Edge cases? You mean we can't test for leap year by simply checking if the year is a multiple of four?
369.
▲
by
DannyB2
8y ago
I think you do whatever it takes to achieve correctness. If simplicity helps achieve correctness, then great. But correctness is not always simple. Most people think there is a leap year every four years. They are wrong.
370.
▲
by
DannyB2
8y ago
That is true.
371.
▲
by
DannyB2
8y ago
Yes, there are some Lisps (Scheme and CL) that run on Java JVM.
372.
▲
by
DannyB2
8y ago
Java compiles to a bytecode which is not machine code. Once bytecode is executed on target platform runtime, it is then compiled down to machine code. But there's more to it than that. The bytecode is actually interpreted at first by
373.
▲
by
DannyB2
8y ago
Definitely pick the right tool for the right job. Using C (maybe C++ ?) may be great for micro controllers, a BIOS, a stage 1 bloat loader, OS kernel and device drivers. If you're writing application software, and probably even server
374.
▲
by
DannyB2
8y ago
A low power cell tower might simply be a legitimate micro-cell, such as in a home or office where ordinary tower reception is very poor.
375.
▲
by
DannyB2
8y ago
I have 2 theories about why the EXTREME secrecy surrounding Stingray. 1. It is based on stolen credentials / crypto keys. 2. It is based on exploiting a vulnerability in the protocol. Either way, secrecy is important. In case 1, if th
376.
▲
by
DannyB2
8y ago
Imagine this scenario. You want to write your own code ProductX and link it with some GPL code. This brings ProductX also under the GPL license. You can put ProductX on a server and never actually distribute ProductX to anyone. By not di
377.
▲
by
DannyB2
8y ago
Maybe the "terrible personalities" is an observation of a symptom, which is triggered by being at Harvard, or from the process of getting into Harvard? NOT some universal truth about all Asians. Maybe not even all Asians at Harv
378.
▲
by
DannyB2
8y ago
March is national procrastination week. So it is okay to procrastinate then, in observance of the event. But people don't always get around to observing it right at the beginning of March.
379.
▲
by
DannyB2
8y ago
I seem to recall earlier, in 2016 I think, that Microsoft already acquired The Linux Foundation. Acquired might be replaced with other euphemisms like "joined" or "became a member of".
380.
▲
by
DannyB2
8y ago
Like self driving cars freeing humans from the tedium of driving while they could be doing productive things; applying AI to chatbots could free humans from ever having to chat online. Ever. Imagine how humans could do more useful and prod
381.
▲
by
DannyB2
8y ago
Says someone who must not have ever been bullied and told your very existence is offensive. You might as well not exist. Etc. Being told that, repeatedly, by multiple people, at an impressionable age, might lead someone to commit suicide.
382.
▲
by
DannyB2
8y ago
That is true. There could be even other causes. Living in an area with less dense population affects one's outlook in various ways.
383.
▲
by
DannyB2
8y ago
The bully / victim could be filled in with different values. The Bully says to gay kid, your very existence offends me. The White Bully says to non-white kid, your very existence offends me. The Sports Hero says to the Computer Nerd, y
384.
▲
by
DannyB2
8y ago
I did not make the original post. I was attempting to clarify it. I was not using an analogy at all. I literally meant: A bully said to victim that victim's very existence is offensive to bully. IMO, that summarizes how I interpreted
385.
▲
by
DannyB2
8y ago
Basically one kid (eg, the "bully") says to another kid (eg, the "victim") that the victim's mere existence is deeply offensive to the bully. Hope that helps.
386.
▲
by
DannyB2
8y ago
If true, that is interesting. My observation posted elsewhere here is that it seems to me that higher suicide states seem to be more Republican party states. Not a perfect correlation, but comparing the two maps seems to indicate more tha
387.
▲
by
DannyB2
8y ago
First, one would establish that there is actually a correlation. If so, then is there a causation? (eg, does being in a red state make one suicidal, or does being suicidal affect one's political views) That seems a bit of a stretch.
388.
▲
by
DannyB2
8y ago
I don't know why the downvotes. What you say is true.
389.
▲
by
DannyB2
8y ago
What happens in Vegas, stays in YouTube.
390.
▲
by
DannyB2
8y ago
It will be censored by smart corporate dirty word filters.
More ›