Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lazulicurio
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
lazulicurio
7y ago
A lot of hate for Java in this thread. Just want to try to counterbalance it with some things that I, personally, like about Java. 1. Java enums 2. Java's generics, especially covariance/contravariance with wildcards (erasure real
92.
▲
by
lazulicurio
7y ago
Type erasure gets an unfairly bad rap. Yes, it makes reflection difficult sometimes. Yes, it doesn't play well with value types. But other than that, erasure is a very powerful concept.
93.
▲
by
lazulicurio
7y ago
My workplace just sent out an email Friday afternoon saying that they're Fedexing layoff paperwork out starting Monday. I agree with you that the unemployment increase is just getting started. Luckily I'm in pretty good financial
94.
▲
by
lazulicurio
7y ago
What I was trying to get across with my example was that you can define a standard, reliable way to perform equality checks on type-erased values without having equals on the root object. Granted, it looks a bit wonky, but it provides saf
95.
▲
by
lazulicurio
7y ago
Member-by-member sub-equals might make more sense in some situations, but not all (as the article discusses, equality is context-dependent). By making equals() an instance method, encapsulation is broken by tying an external concern (equali
96.
▲
by
lazulicurio
7y ago
As much as null is considered the "billion dollar mistake", personally, I think that Java giving Object a virtual equals() and hashCode() was an even bigger mistake. NPEs blow up loudly in your face and are fairly easy to lint for
97.
▲
by
lazulicurio
7y ago
> So [...] you discover that an ArrayList of Integer is not interchangeable with an ArrayList of Number because you can stick a Double in one of them and blow up everyone expecting only whole numbers. Is this really an issue with Java&#x
98.
▲
by
lazulicurio
7y ago
They should have gotten Alton Brown to do their cooking for them! https://www.youtube.com/watch?v=tqABijWMlxA
99.
▲
by
lazulicurio
7y ago
> the question [isn't], "should someone sitting in a cafeteria access critical resource X by default", but rather, "is it actually true that someone sitting in a cafeteria cannot access resource X1 through XN by defau
100.
▲
by
lazulicurio
7y ago
As I mentioned elsewhere in this thread, leaded paint can be a major health hazard in older homes.
101.
▲
by
lazulicurio
7y ago
My guess would be for having to properly handle and dispose of leaded paint in older homes.
102.
▲
by
lazulicurio
7y ago
Another, less-nefarious (than military exercises), option: animal surveys[1]. > Another benefit of drones over current methods is that the industrial grade drones offer thermal or infrared technology, which means surveys could be done at
103.
▲
by
lazulicurio
7y ago
I think the idea is that low-interest rates cause investors to push companies to adopt riskier behavior and that easy credit enables said riskier behavior.
104.
▲
by
lazulicurio
7y ago
Implementations as in .Net implementations? Or implementations as in other languages' implementations? As far as .Net goes, I've not looked around. I feel like it would be somewhat of a fool's errand to develop an alternative
105.
▲
by
lazulicurio
7y ago
Sure, but if you're going to go that route, why not just say "the entire computing system at a whole is just a state machine, so what's the difference"? Threads provide a very privileged form of state machine that are ti
106.
▲
by
lazulicurio
7y ago
> async/await in .NET is actually good because they added async equivalent APIs to nearly all blocking operations I mean... I get it---it's great how Microsoft put in an effort to add async equivalents to most of your standard
107.
▲
by
lazulicurio
7y ago
> I wonder if the advent of async/await in all the popular and upcoming programming languages will be seen, after some (buffering) interval, as a disaster of major proportions. And, I wonder how the programming world will respond to
108.
▲
by
lazulicurio
7y ago
Genuine question: looking at that graph, it's saying that median weekly earnings reached a peak in 2009 then dipped 2010 through 2013. I find it rather counter-intuitive that a peak in median earnings would occur during the recession.
109.
▲
by
lazulicurio
7y ago
A decay function on reputation might help, but I think the real issue is treating reputation as a precise indicator of user quality. But is a user with 40k rep really meaningfully better than a user with 35k rep? An idea that I had was to h
110.
▲
by
lazulicurio
7y ago
That brings to mind an interesting idea for an IDE: having one big virtual file that you edit, which gets split into multiple physical files on disk (based on module/class/whatever). Although, thinking about it, there are some lan
111.
▲
by
lazulicurio
7y ago
Almost, but not exactly. For example, you still can't have multiple symbols in the same scope that vary only by case. Which, personally, I'm okay with.
112.
▲
by
lazulicurio
7y ago
VB.net is case-insensitive, and probably more popular than you think[1]. I think that case insensitivity actually does make sense when working with symbolic identifiers. I've seen justifications for "Foo" and "foo"
113.
▲
by
lazulicurio
7y ago
That's pretty much the position that I've come to concerning copyright. Individual works last 20 years or until the first author's death, whichever is greater. The rights are assignable but non-transferable. Corporate works l
114.
▲
by
lazulicurio
7y ago
> are you saying that git pull can produce some unwanted artifacts? (e.g. not do exactly what you want it to do?) Not in the sense that git pull has unpredictable behavior, but I like being able to view the remote history and manually di
115.
▲
by
lazulicurio
7y ago
Personally, I prefer to never use git pull, and instead use git fetch then manually merge or rebase as appropriate. It's one more command, but I find it helps me visualize exactly what I want to happen.
116.
▲
by
lazulicurio
7y ago
There was an article on state in OOP posted here a few days ago that I found very thought-provoking[1]. The blog post and related youtube videos are pretty interesting as well[2][3][4]. [1] https://news.ycombinator.com/item?
117.
▲
by
lazulicurio
7y ago
There's still plenty of ways reference resolution with NuGet can go wrong, even without the GAC. For example, because NuGet allows packages to import .props and .targets files you can have packages that add arbitrary references that do
118.
▲
by
lazulicurio
7y ago
> Only if it's involved in preserving some object invariants, or accessing parts of its state that are abstracted away in the public interface. Otherwise, you're breaking encapsulation by putting some logic in the object that d
119.
▲
by
lazulicurio
7y ago
You might not care about the implementation for a single call that only hits the happy path, but as soon as you are making more than one call or having to deal with failures the implementation definitely matters. And I think that FP makes i
120.
▲
by
lazulicurio
7y ago
Forty years to recognize the power of the Toyota Production System, but another eighty to actually take those lessons to heart (if ever). A major stumbling block is the adversarial relationship between management and labor in the US[1]. TPS
More ›