Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gnulinux
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
48 ms
·
481.
▲
by
gnulinux
4y ago
I practice TDD for the most part, I agree that it's not easy. E.g. there are a lot of unanswered questions: What if you write the test first, red, write the code but it's still red. Could be your code wrong, could be your test wro
482.
▲
by
gnulinux
4y ago
When you say TDD doesn't work do you mean it doesn't work if it's religiously practiced? I've worked for many companies who do TDD and I personally enjoy it very much and we ship code, we make money. So clearly somethin
483.
▲
by
gnulinux
4y ago
I'm really sorry but these kind of "I mocked a simple program in 45 mins when my TDD practicing counterpart took longer" comments mean nothing. The code is never written once and done. If you were maintaining that code for th
484.
▲
by
gnulinux
4y ago
In my current company, I'm practicing TDD (not religiously, in a reasonable way). What this means for us (for me, my coworkers and my manager): 1. No bug is ever fixed before we have at least one failing test. Test needs to fail, and t
485.
▲
by
gnulinux
4y ago
New York City came 1-day close to declaring bankruptcy on 16 October 1975. https://www.newyorker.com/news/news-desk/the-night-new-york-...
486.
▲
by
gnulinux
4y ago
Isn't it the opposite of what you suggest? If there was nothing, there would be nothing to investigate; but now that we now the universe exists, it does make sense to ask why is that something exists rather than nothing.
487.
▲
by
gnulinux
4y ago
Calling this "Middle East" is inaccurate given the article claims it happened in "Sarayburnu" which is geographically in continental Europe. https://en.wikipedia.org/wiki/Sarayburnu
488.
▲
by
gnulinux
4y ago
This doesn't make sense to me. YAGNI doesn't really relate to product management. When a PM talks about future extensions of the product, they're literally stating that "we're gonna need it". You can disagree w
489.
▲
by
gnulinux
4y ago
> The only philosophers of that kind that produced an advancement in terms of stuff being consumed are the ones who did it all inside their heads and the only expense they needed was paper and pen (Einstein, Feynman, Bohn, Maxwell..) Thi
490.
▲
by
gnulinux
4y ago
How's it NOT a problem? If I'm trying to produce "stock people images", and if it only gives me white men, it's clearly broken because when I ask for "people" I'm actually asking for "people"
491.
▲
by
gnulinux
4y ago
Quite the opposite, we have very safe languages now in 2022. Any software that's not written in Rust or Haskell has to explain the trade-off of being written in an unsafe language. Of course the industry will still use unsafe languages
492.
▲
by
gnulinux
4y ago
An alternative perspective to look at this is that orgs like USPS are services provided to Americans because they're the kind of services that would otherwise be inaccessible to great majority of Americans. For this reason, increasin
493.
▲
by
gnulinux
4y ago
I still regularly use pen and paper to take notes and design things as a software engineer because in my opinion it's simply the best tool for the job. All my CS exams in UC Berkeley were pencil and paper and I thought it was fine (pre
494.
▲
by
gnulinux
4y ago
This is exactly my experience. My expenses rose >75% even though I'm living a lot more frugally compared to 2021. I live in Boston and everything is just SO F'ING EXPENSIVE! I make ~$130k, I used to save ~$2000 every month befo
495.
▲
by
gnulinux
4y ago
By this logic we're not supposed to defend anything because one day some people can (and I agree will ) destroy it? Your argument argues for the opposite, it makes more sense to defend this now when there is political capacity to defe
496.
▲
by
gnulinux
4y ago
I think part of the problem is no implementation has an exciting story about writing the "shell" part in a different language. I love love love writing purely functional code. Probably my favorite thing to do. But what a lot peopl
497.
▲
by
gnulinux
4y ago
I think this comes down to experience. My favorite programming language is Agda and I have a lot experience writing code in Haskell and Lisp variants. I personally also find it trickier to debug in functional languages. I believe this comes
498.
▲
by
gnulinux
4y ago
Others already argued against your point, but I want to point out that (2) is simply wrong. You can have mutability in functional programming -- not in general, but there are cases where this can be expressed. For example, in a very simple
499.
▲
by
gnulinux
4y ago
> generic American city Hmm, it's imho inaccurate to put it that way. I don't think there is a single "generic city" in the US. I think most American villages, towns and small cities look and feel the same (they all h
500.
▲
by
gnulinux
4y ago
My point is that even the trivial implications of the definition are absurd; without inspecting non-trivial broadcasting cases we can already determine the API is poorly designed.
501.
▲
by
gnulinux
4y ago
Well yeah you're right OP could have explained this better; but this argues their point. From the definition that `a in b` is `(a == b).any()` it's trivial to see things like `np.array([1, 0, 0]) in np.array([1, 2, 3])` will retur
502.
▲
by
gnulinux
4y ago
All words starting with the letter "n" and ending with "g", case insensitive >> /^nw*g$/i This is not right. That should be a "\w" instead of "w".
503.
▲
by
gnulinux
4y ago
Hmm this might be hard for you to believe but I've never negotiated in my life. I always accept asked price. Didn't realize this is not the norm. This is not in business context though.
504.
▲
by
gnulinux
4y ago
I find it nuts to think productivity can even be a consideration when it comes to how long I sleep. It's a biological function! Am I supposed to also think I should drink less water since I lose time and focus on peeing. I should a
505.
▲
by
gnulinux
4y ago
I don't understand why this is relevant. Regardless of the rationale to add it to the language, if syntactically it's `func main()` I can tell it's a function definition because it's always `func`. You can't do that
506.
▲
by
gnulinux
4y ago
> Sticking fn in front of every def isn't quirkier? No because almost every single programming language that's not C/C++ has a keyword that signals function declaration.
507.
▲
by
gnulinux
4y ago
Yeah but that's a very quirky style; I don't want to change the structure of my code just to make it searchable!
508.
▲
by
gnulinux
4y ago
This is factually false in my case since ALSA alone has always been fine, no issues. And since I switched (with the same hardware) pipewire also works just fine. But pulseaudio (pa+alsa ofc) is just simply broken on my archlinux install. ED
509.
▲
by
gnulinux
4y ago
I've been using linux for decades and by far -- by a HUGE margin -- PulseAudio has been the most annoying and broken thing I had to use. I'm still baffled by how something as basic as audio output can be eternally fragile in linux
510.
▲
by
gnulinux
4y ago
Haha yeah no, Epic Games is a software company, they should have known better, period. Asking for free labor from people who already created a free product you want to use is disrespectful and clearly incompetent. It's not my responsib
More ›