Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kmoser
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
871.
▲
by
kmoser
3y ago
Yeah, but separation of causes then violates the DRY principle because you have to repeat the 'a' expression twice: a = b if ( a == c ) ... The repetition is even worse if you replace 'a' or 'b' with a
872.
▲
by
kmoser
3y ago
Agreed, that would be one level too far, and thus unnecessary. I'm not arguing that every operator should be parenthesized, but I think parens should be used more than most programmers tend to do. On a related note, I occasionally wr
873.
▲
by
kmoser
3y ago
> When trying to define default values, people get confused with expressions like a === b ?? c and assume it will be parsed as a === (b ?? c). When in actuality it will be parsed as (a === b) ?? c. I'll never understand why programm
874.
▲
by
kmoser
3y ago
At least everybody knows humans are fallible. We expect computers to be better than that, or at least less fallible. And when they do fail, we expect to be able to determine where and why. That's not often the case with today's
875.
▲
by
kmoser
3y ago
Not ready to retire, but I did something like that a few years ago with the previous generation of code I wrote: https://www.kmoser.com/sourcecode/
876.
▲
by
kmoser
3y ago
I'm guessing it'll hallucinate things about you that it doesn't know. This might be a mixed blessing: it could introduce you to things you weren't aware of, but it could also be annoyingly inaccurate.
877.
▲
by
kmoser
3y ago
A massive increase in environmental plastics may also have something to do with it. "The scientists theorize relationships among the global increase of plastics production, human exposure to microplastics, and the global increase of ov
878.
▲
by
kmoser
3y ago
In the early 1980s, when people had just begun to hear about laser printers and they were huge and expensive, I fooled my classmates into thinking I owned one by Xeroxing some images from a magazine onto pin-fed printer paper. Never mind th
879.
▲
by
kmoser
3y ago
> "A lack of planning on your behalf, does not constitute an emergency upon mine." Depends on your relationship with the person who planned poorly: if you truly don't care, then you run the risk of becoming known as the je
880.
▲
by
kmoser
3y ago
Here's one I've heard but never seen online: German engineers from the Trabant factory toured an auto assembly line in Japan. At the end of the line they witnessed a Japanese worker put a live cat inside the car and shut the doors
881.
▲
by
kmoser
3y ago
"I can work on a team but I prefer working alone [...]" This to me is a red flag. Unless you're already pretty experienced, and have a large client base (or a small number of clients who keep you busy), it's nearly impos
882.
▲
by
kmoser
3y ago
I'm wondering the same thing: in what way is the provider of a service legally obligated to tell everyone about it? As long as they provide the actual service without bias to all who inquire, shouldn't it be up to them to decide h
883.
▲
by
kmoser
3y ago
I like this theory. Since most people are right-handed, and the right leg does more work than the left when walking up a counter-clockwise spiral staircase, it makes sense that spiral staircases would be designed counter-clockwise.
884.
▲
by
kmoser
3y ago
Flexbox and grid get all the limelight but let's not forget the usefulness of columns: https://developer.mozilla.org/en-US/docs/Web/CSS/columns
885.
▲
by
kmoser
3y ago
Of course it was staged: it was performance art! It's not like she found herself wandering through the gallery and suddenly decided to subject herself to the whim of strangers. The event was planned ahead of time. Or do you mean the re
886.
▲
by
kmoser
3y ago
The government who writes the coded law could be required to provide freely available services that translates those laws into plain language.
887.
▲
by
kmoser
3y ago
Sure, but there would be all manner of services that could automatically translate law-in-code to any human language you wanted. The best part is that you could easily and automatically translate a law into, say, English, Japanese, and Germ
888.
▲
by
kmoser
3y ago
I built a bird feeder similar to https://www.youtube.com/watch?v=1F4wdJSEVEo only I used clear polycarbonate for the body which allowed me to see the level of bird seed remaining.
889.
▲
by
kmoser
3y ago
> What were the recent changes? If you narrow your search to most recent changes, you have a really good chance of finding the source of the bug. The culprit may even be you!
890.
▲
by
kmoser
3y ago
More interesting to me is the logo's resemblance to William Faulkner https://unseen-japan.com/boss-coffee-japan-history/
891.
▲
by
kmoser
3y ago
Top programming talent may still need to be managed (and in fact may need to be managed more than lower quality talent). The sweet spot is to hire top programming talent who is also good at intra-team communication and can organize themselv
892.
▲
by
kmoser
3y ago
Not exactly a forum as we now know it, but I believe Bill Basham's Diversi-Dial (DDial) BBS software for the Apple II was written entirely in assembly. https://paleotronic.com/2019/09/28/diversi-dial-an-a
893.
▲
by
kmoser
3y ago
You can extrapolate the whole "IDEs are a crutch" idea to pretty much any tool that saves time by automating something you would have had to do manually. High level languages hide the underlying machine code being generated, so de
894.
▲
by
kmoser
3y ago
I wonder which is worse: not setting up a freeze and risk being the victim of identity theft, or setting up a freeze by submitting your info and risk having it stolen from NCTUE?
895.
▲
by
kmoser
3y ago
I remember getting trial accounts that had a limited number of hours, but if they ran out while you were still connected you didn't get booted off; you just couldn't connect the next time you dialed in. So I would log on near the
896.
▲
by
kmoser
3y ago
(41,991 points!) And why does the year default to 1962?
897.
▲
by
kmoser
3y ago
Yes
898.
▲
by
kmoser
3y ago
I just tried the troubleshooter, and it said it fixed the issue but it actually didn't: when I run the program, Windows pops up a modal (before it just displayed an error on the console) with a title bar that says "Unsupported 16-
899.
▲
by
kmoser
3y ago
I have a command line Windows binary compiled over 30 years ago (June 1996) that won't run on Windows 10 (64 bit). Windows complains, "ANAGRAMS.EXE is not compatible with the version of Windows you're running. Check your co
900.
▲
by
kmoser
3y ago
It's not just aging that makes us bad at noticing when we're dehydrated. The ubiquity of so many types of foods has given us the ability to satisfy the craving for that which stimulates our senses, not necessarily what we need. I
More ›