Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kinjba11
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
kinjba11
5y ago
Instead of catching an error why not just return it. Then it's obvious to anyone reading that an error can happen there. auto fileOrError = downloadFile(); if (fileOrError is error) {...}
32.
▲
by
kinjba11
5y ago
Perhaps OP should be writing 11976 not 01976 https://en.wikipedia.org/wiki/Holocene_calendar
33.
▲
by
kinjba11
5y ago
> my experience essentially does not involve catching exceptions Which is part of the problem. If you're not catching the exception, you don't need exceptions. You just need a way to log stuff, such as a trace, and exit the pro
34.
▲
by
kinjba11
5y ago
Can someone explain why these novel and highly suspect financial constructions like NFTs are a benefit to society and not just a digital extension of the rich art market?
35.
▲
by
kinjba11
5y ago
If you don't know what a thread is, start there. Otherwise, you might read this. https://blog.stephencleary.com/2013/11/there-is-no-thread.ht...
36.
▲
by
kinjba11
5y ago
You don't necessarily need inheritance. Kotlin for example has a feature wherein all that forwarding boilerplate you had to write is automated. https://kotlinlang.org/docs/delegation.html
37.
▲
by
kinjba11
5y ago
Pretty sure Apple/Safari and Microsoft/Edge have the monopoly shield taken care of at this point. Firefox on its current trajectory will bleed to death slow enough for nobody to notice. Mozilla stopped innovating in the one produc
38.
▲
by
kinjba11
5y ago
> only exist to mutate state Which part of the state, and when? Is this your program? // change anything, anywhere, in the entire database, the biggest state execute_sql(user_input) You might want controls around tha
39.
▲
by
kinjba11
5y ago
The Stanford Prison experiment was theater. Milgram was only slightly better. Never mind being unethical, they are just poor science. This is the core of the replication crisis in psychology: theatrical, grandiose claims get all the attent
40.
▲
by
kinjba11
5y ago
Yes, 'My' was dropped in Vista. It is now 'This PC' in Windows 10.
41.
▲
by
kinjba11
5y ago
You may also find https://craftinginterpreters.com/ useful.
42.
▲
by
kinjba11
5y ago
ADHD is a real condition absolutely. However, the symptoms seen all over the board as layman. Which is concerning. How often is ADHD misdiagnosed as a result? If it is hereditary, have we found the gene(s) which would enable us to pinpoint
43.
▲
Britain can help you get away with stealing millions (2019)
(theguardian.com)
31 points
by
kinjba11
5y ago
|
0 comments
44.
▲
AHA – Avoid Hasty Abstractions
(kentcdodds.com)
2 points
by
kinjba11
5y ago
|
0 comments
45.
▲
by
kinjba11
5y ago
Tools like Prettier can automate this with curly-brace languages, so indentation (tabs or spaces?) stops being something you waste brain power on, similar to how code editors will match the current line's indent on the next line when y
46.
▲
by
kinjba11
5y ago
> Harm OCD is a subset of classic obsessive compulsive disorder (OCD). The condition is characterized by having aggressive, intrusive thoughts of doing violence to someone, as well as the responses the person uses to cope with these thou
47.
▲
by
kinjba11
5y ago
I agree the order of magnitude improvement is no more. Programming in C is much the same as Java. Both are high level curly brace languages. But there is room for improvement still, quite a bit. The fact that Kotlin, Go, etc. were created a
48.
▲
by
kinjba11
5y ago
The examples from the article are almost all rich people getting away with greedy behavior, not at all comparable to desperate crimes of the poor. Absolutely we need more enforcement of good behavior and punishment of bad behavior at the to
49.
▲
by
kinjba11
5y ago
The last movers advantage is a tradeoff. It becomes increasingly difficult to make major paradigm shifting changes the further you go. Being conversative increases the length of the runway and Java has benefited from that. Though, the supe
50.
▲
by
kinjba11
5y ago
"Java 2" is already out - it's Kotlin (or Scala if you're so inclined) ;) Unfortunately the more compatible you are with "V1" the more compromises you have to make. See: Kotlin, F#, TypeScript bending over back
51.
▲
by
kinjba11
5y ago
I don't really see a problem with that code - there is no confusion, `Ptr(None)` is clearly not `None`. Whereas var i *int = nil var x interface{} = i if x != nil { I assigned `nil` to `x` and yet `x` is not nil. Impli
52.
▲
by
kinjba11
5y ago
> would turn into gRPC-web calls after it was loaded in the client Isn't the point of SSR to avoid needing to have the client make additional requests for the first render? If I return something like <div dangerouslySetInnerHTML=
53.
▲
AHA Programming
(kentcdodds.com)
1 points
by
kinjba11
5y ago
|
0 comments
54.
▲
by
kinjba11
5y ago
Speaking in terms of tech addiction, there are tools and strategies out there to manage. Anti-engagement tools you might call them. The "Digital Wellbeing" app on Android can be used to limit certain apps, such as to one hour per
55.
▲
by
kinjba11
5y ago
> Posting too much on social media is a vice Sounds like you'd love https://minus.social/ where you are limited to 100 posts, period.
56.
▲
by
kinjba11
5y ago
C and C++ are effectively immortal at this point. This is due to the fact that they've been king of the hill in systems for decades. Effectively the only choice for that domain. If you enjoy C++ more power to you. But there are those l
57.
▲
by
kinjba11
5y ago
Does that 60 MB include something like Qt, comparable to WPF? I'm not sure that comparison is fair.
58.
▲
by
kinjba11
5y ago
> There is value in simplicity and not overly using abstractions that take you farther and farther away from bare metal. This is a contradiction. Simplicity is obtained through abstractions. As an example, fifty years ago, 'goto
59.
▲
by
kinjba11
5y ago
> But I won't be looking for .NET jobs Have heard this sentiment in more than one comment in places like HN. "The {tech} is great, but the culture was ... so I'm not putting {tech} on my resume". And So it becomes a s
60.
▲
by
kinjba11
5y ago
This. In many ways .NET Framework is to .NET Core/6 as Python 2 is to Python 3. The new stuff is all phenomenal, truly. But there are mountains of code running right now, responsible for billions of dollars of economy, still being main
More ›