HNHacker News
TopNewBestAskShowJobs

s4vi0r

400 karma · joined October 26, 2016

submissionscomments
s4vi0r··on Americans can opt out of airport facial recognition
It's been incredibly in your face if you aren't a privileged white person since basically the dawn of the country, with a small period of kind-of-not-really-thoufh improvement around WWII. Workers rights have always been shat on, being poor sucks and keeps getting worse with every year that m4a isn't a thing, and being a visible minority obviously also sucks what with the whole police murdering you thing or ICE gestapo knocking on your door etc.

Frankly I hope they ramp it up, because maybe it'll at least open up peoples eyes to all the other insane sorts of injustices that go on.

s4vi0r··on Verizon reportedly seeking to sell Tumblr
Libertarians (the right wing kind, at least) pretty commonly get made fun of/characterized as pedophiles among other things so they probably did mean libertarian lol
s4vi0r··on SR-71's “R2-D2” Could Be the Key to Winning Fights in GPS Denied Environments
Luv too celebrate imperialism, very cool
s4vi0r··on Write yourself a Git (2018)
Inconsistent commands are pretty annoying - why is it git stash list instead of git stash -ls or --list?
s4vi0r··on Workism Is Making Americans Miserable
You're too used to 8 hours - its been the standard for as long as you've been alive, but there is no good or scientific reason for it.

The work day used to be 12 (or in some cases more) hours, and a lot of people fought and literally died to get it down to 8. And the expectation wasn't that it would stay there - instead, the common idea was that as productivity due to technological advances etc. would keep pushing it down to only a few hours per day.

Instead, productivity has soared and the parasitic capitalists of the world and their legion of class traitor middle managers have managed to convince people that 8 hours is somehow perfect even though rarely anybody even actually works 8 hours these days - how long is your commute? Do you get work related alerts on your phone? Coworkers/bosses messaging you? That's all time wasted thinking about work. This small group of people - probably what, no more than 5000 out of 7bn people? Are hoarding and stealing obscene amounts of ill gotten gains, killing the planet in the process and ruining probably billions of lives, while we sit here and argue about whether or not we "deserve" to work less or whatever.

s4vi0r··on Pee, Not Chlorine, Causes Red Eyes from Swimming Pools: CDC (2015)
What's the harm in it? The amount of urine is negligible in relation to the water, and unless you're sick with a UTI or something urine is sterile anyways.

I don't get it the other way around - why do people freak out about it? I don't care one way or the other whatever or not people piss in the pool next to me - its like somebody splashing you with water in the middle of a rainstorm.

s4vi0r··on Reddit's user uprising against China because Tencent will invest in the platform
"This is enough money" generally not being a thing is an inherent issue and contradiction of capitalism. Hopefully more people will realize the absolute ridiculousness and damage the idea of infinite growth the system has baked into it causes to people and nature.
s4vi0r··on How Millennials Became the Burnout Generation
The average person doesn't have the ability to do that because the average person doesn't really have agency.

>the average person has never had a good life, and probably never will

Because our society doesn't care about people, only capital. There's nothing wrong with the average person, its that the average person is born into an environment where everything is working against them.

And I think it's pretty clear that as we reach unprecedented levels of income inequality - especially with climate change being a thing - that the inherent contradictions of the system are becoming more and more obvious. The yellow vest protests are a clear example of this. If we're lucky it'll end well, but whether or not the ruling class will take control of the situation and steer us towards fascism remains to be seen.

s4vi0r··on Minimalism: Practical Guide to Writing Less Code (2002) [pdf]
What you want is a monad.

Instead of loading up every language with stupid keywords that are meant to simplify monadic code (but only for one domain), language designers should really take a page out of Haskell or Scala's book and think seriously about unifying on a do notation/for comprehension type construct.

That way regardless of if you're working with promises or not, you don't have to worry about hacking it with && or nesting 10 layers deep with if/else.

s4vi0r··on Minimalism: Practical Guide to Writing Less Code (2002) [pdf]
Suckless is at best satire and if we're being honest just plain idiotic.

Without fail every suckless person I've talked to either has no idea what they're talking about, or in the off chance they do they're incredibly shitty far right wing types who gripe on about women/minorities/CoCs ruining tech.

s4vi0r··on US asks allies to avoid Huawei
ACAB.

The entire police system is inherently corrupt and racist and needs to be torn down. Also, regardless of whether or not its a few bad apples (hint: given how extremely fucking common these problems are, it absolutely is not just a few) the point still stands that the "not bad" cops are still guilty of supporting their coworkers and enabling their unacceptable behavior.

s4vi0r··on US asks allies to avoid Huawei
You mean in a manner similar to the united states at the moment? :^)

China has some serious issues, but people acting like this is out of the norm is ridiculous. The US is afraid of Chinas rising influence/power and these sorts of articles attacking it are a common tactic.

Like, great - there's no explicit social credit system in the US on an app where you're barred from leaving the country because of who you're friends with. Instead, there's an implicit one where the NSA gets to spy on all your shit (similar to what happens in China), where you're arbitrarily put on a watch list or no-fly list (similar to China), and depending on your ethnicity and/or family you may get unjustly targeted by the state with no real way of defending yourself (again, similar to China).

I'd almost prefer it be done the Chinese way, because at least then the problem is obvious. As it is in the states, like half the country can't even fucking agree that maybe there might be a problem with women & minority rights, immigration, police brutality, etc.

s4vi0r··on GM closing all operations in Oshawa, Ontario: sources
And instead of taking the opportunity to nationalize them, our useless neoliberal leaders instead went "uhh okay lol heres some money pls don't do that thing we all know you'll do".
s4vi0r··on There is more to high house prices than constrained supply
Yes, but the state isn't leeching off of the people. My point is wrt landlords in the sense of people who do nothing, provide no value, and make money solely by virtue of "I/my ancestor was here first I/they bought this when there was less people so gimme money".

I don't see where you get your conclusion from. For many (most?) people, they really don't have a chance to fight their landlord. Legal expenses, time, energy, etc. are pretty huge deterrents. Not sure why you can't fight a "state-landlord", also.

s4vi0r··on There is more to high house prices than constrained supply
Not sure why, but I couldn't respond to your comment for quite some time.

I'm not sure what you're asking re: what would remain. Housing as a human right, I guess? There's no good reason for landlords to exist, nor do I understand why you would want housing to be a commodity especially considering we live in a post-2008 world.

s4vi0r··on There is more to high house prices than constrained supply
Or just destroying the entire cancerous concept of landlordism and housing as a commodity.

No need to get all complicated, the solution is pretty simple.

s4vi0r··on Ask HN: Do you like to see “Back to top” buttons on websites?
C-g? Does that also work, or did you mix up G/S-g?
s4vi0r··on Why I love Common Lisp and hate Java (2012)
I think many Haskell, OCaml and Scala programmers would disagree heavily with you.

Repl driven development works very well with pure functional code and at no point did I feel an increase in loc begin to make it tedious or whatever.

The repl approach perhaps doesn't work as well in Java because Java and its ecosystem encourage writing messy jumbled code built upon unsafe abstractions.

s4vi0r··on TypeScript at Google
I'm not at a desktop or laptop where I could provide you with a proper example, but the most obvious pain point is HOCs.

I was receiving an error complaining about a missing prop on a component I was wrapping with `injectIntl` from `react-intl` and could not for the life of me figure out what was wrong. Searching the type error wasn't helpful, and it wasn't until I really dug down and spent about a half hour of my time that I realized it was because we had something like `injectIntl(connect(foo, bar)(SomeComponent))` instead of `connect(foo, bar)(injectIntl(SomeComponent))`

The type error did not in any way make that clear or obvious. If I had to compare it to anything, it would probably be the type of error messages you see if you play around with type level programming/dependent types in Haskell. Or the types of error messages you see when writing Clojure.

s4vi0r··on TypeScript at Google
Using TS3 with ours and the problems are definitely still there.

I think the most immediate and obvious pain point for me is typing HOCs. It's basically a matter of rearranging how you apply them until TS can automatically infer a type for you. At the same time, using `compose` instead of applying them individually solves that problem but results in strange types (that are different from the type TS infers if you apply the HOCs manually yourself in an order that makes it happy) that I suspect will cause type errors down the road when we convert the files that make use of it to TS as well.

s4vi0r··on TypeScript at Google
The most recent, 3.0.1 I believe? Or 3.1.0 - whatever it is.

As far as going back goes - it's preferable to plain JS I guess? But that's not saying all that much. I don't know - I'm sure I'll appreciate it more after this migration period is finished and things start to stabilize, but as of right now I'm definitely not enjoying it.

s4vi0r··on TypeScript at Google
As somebody migrating a React codebase from JS to TS, I can't believe how popular TS is.

It seems like something that only exists due to the popularity of Angular, where I can only assume the experience is significantly better than with React.

The type system is frankly disappointing, and the errors the compiler spits out at you (besides the most obvious ones) are almost always useless or gibberish and at times even more harmful than helpful.

It's better than nothing I guess, but I can't help but feel extremely underwhelmed with it given how many people use it. Are all of the people in this thread Angular developers or something?

s4vi0r··on How Fast Do People Type? (2007)
That's consistent, also. It can peak up to 600-700 as well.
s4vi0r··on The Fred Rogers We Know
Seasons 1-7 are available on Amazon, though I don't know if that covers all of them or not.
s4vi0r··on How to get kids to pay attention
Don't spank your kids. It has no benefit, and many negative effects.
s4vi0r··on China has turned Xinjiang into a police state like no other
The amount of protests in China has been exploding over the past decade(s). I didn't even know until someone mentioned it on here a few months back, but iirc its gone from maybe a few thousand per year in the 90s to well over 100,000 in recent years.

The Chinese rich I've interacted with are also (in my experience, at least - I don't have stats to support this) really ignorant of how bad a lot of their countrymen have it. A friend of mine's father is some sort of government official in a tier 1 or 2 city, and he's told me that the rich and poor are segregated enough that he himself didn't even realize his family was anything other than middle class until he came to Canada and saw it wasn't exactly normal to have parents who can afford 100k+ annual tuition, luxury cars and apartments, etc.

s4vi0r··on From Java to Kotlin and Back Again
There's plenty of decent reasons imo. Its easier to parse and handle type inference (i.e. you don't need to do something silly like have a 'type' that just says "this thing is inferred" ala auto and var). You free up the left side a bit as well which means you can use something like val x = 4 instead of having to write final or const or whatever all over the place. I (and I'm sure most devs) can also just self infer the type of something based on how it's used, so I'd rather have the name of the thing first so I can move on with scanning the code than a probably obvious type.

Also, if your type is something stupidly long (ex. Java) its really easy to read something like MyAbstractFactoryBeanImplBuilder while you have a bunch of stuff in your head and space out/forget something. Humans aren't good at keeping a bunch of things in their heads, so I'd much rather just have the names of these things and then types be as a reference to return to as a "oh wait, what was this thing again?" sort of deal.

s4vi0r··on Leveraging the type system to avoid mistakes
Depending on when you were using Scala, it could have to do with abuse of implicits; back in like 2012/2013ish there we a bit of a craze with using implicits everywhere which would make any sort of IDEs job incredibly tough and compilation painfully slow. I write Scala in Emacs at the moment so I can't speak to intellij but Emacs certainly isn't the fastest editor around and I've yet to run into major issues.

The core team also finally realized how important tooling is and recently dedicated a team (a bunch of teams?) to working on language server based intelllisense which is nice.

I'd highly encourage anybody who last used Scala a while ago and didn't enjoy it to give it another shot at some point in the future. Lots of improvements over the past few years (and some really cool stuff coming up with Scala 3) make Scala IMO easily one the best languages around.

s4vi0r··on Did the Greeks see themselves as white, black, or something else?
The funniest thing about this whole ethnostate crap you see being pushed by the alt right is that a lot of these people don't even realize Europeans don't see themselves as one big ethnic group of "white people" - and they literally never have. Hell, they even spend some time in grade school teaching kids about the discrimination early Irish and Italian immigrants faced in America where they weren't considered white or white enough by WASPs.
s4vi0r··on Canada facing ‘brain drain’ as tech talent leaves for Silicon Valley
To be fair, Doug Ford winning would be partially the liberals' fault. Kathleen Wynne is hated, and they for some reason had her lead again. They've got some great plans, but the way elections work makes it really easy for Doug Ford to pander hard to suburbites who only give a shit about lower taxes and real estate.

Frankly, as a Toronto area dev Doug Ford winning the election would definitely cause me to consider looking for work in the US. Toronto's in a pretty crucial moment right now wrt growth and infrastructure, and I don't really see the point staying if the party of stagnation wins - whatever tax cut they may introduce is dwarfed by higher salary + lower CoL in the US anyways.

Page 1 of 4Next →