Readit News logoReadit News
badjeans commented on Using GroupBy on an array of objects in JavaScript   wisdomgeek.com/developmen... · Posted by u/saranshk
badjeans · 4 years ago
Hardly shorter than just writing the for loop, i.e. the example in python

    groupByAge = collections.defaultdict(list)

    for person in people:
        groupByAge[person["age"]].append(person)

badjeans commented on GNOME's Wayland Shows Potential for Better Battery Life   phoronix.com/scan.php?pag... · Posted by u/jeppesen-io
badjeans · 4 years ago
Would be more interesting to see i3 vs sway.

Deleted Comment

badjeans commented on Go 1.18 will embed source version information into binaries   utcc.utoronto.ca/~cks/spa... · Posted by u/nnx
Dobbs · 4 years ago
This is really useful. Almost every project I’ve worked on has had to have a build script in part to inject this info so it being a first class feature makes life just that much easier.
badjeans · 4 years ago
I found Nim's gorge command really useful. It runs a command at compile time and stores the output in a variable, so you can simply do things like:

    const compile_version = gorge "git describe --tags --always --dirty"
    const compile_time = gorge "date --rfc-3339=seconds"

badjeans commented on Fairphone 4 has a five-year warranty and aims for six years of updates   arstechnica.com/gadgets/2... · Posted by u/iechoz6H
badjeans · 4 years ago
> Surprisingly, there isn't a headphone jack, which seems like something Fairphone's demographic would really have wanted. Wired headphones last indefinitely, while Bluetooth buds turn into garbage after a few years when the batteries die.

Every wired headphones I've had started to break down after a year or so, including ones with a detachable cable.

BT headphones are much more reliable. If you buy something like the Sony's you can probably get replacement batteries.

badjeans commented on Ask HN: I feel trapped in my job and city    · Posted by u/thebrowncat
f6v · 5 years ago
> You have a PhD in Computer Science, one of the highest academic accomplishments in one of the hottest fields for the last 30-40 years. I want you to know how far ahead you are of people like me who just taught themselves to code and glue web apps together for 6 figures.

Don’t want to be a buzzkill but OP can as well be a mediocre engineer, even with a CS PhD. It’s important to recognize your own strengths and weaknesses.

badjeans · 5 years ago
Unfortunately, a CS PhD doesn't even guarantee mediocrity.
badjeans commented on Lenovo Selling Linux Laptops Directly in the US   lenovo.com/us/en/d/linux-... · Posted by u/ekianjo
young_unixer · 5 years ago
This is the only thing stopping me from buying an X1 Carbon. I had decided to buy a Dell Latitude instead, but apparently Dell did something similar [1], so now I don't know what to buy. Maybe a Huawei? AFAIK they haven't been caught in these shenanigans yet, but I still don't feel comfortable with them for some reason.

God, the laptop market is awful.

[1] https://www.eff.org/deeplinks/2015/11/superfish-20-now-dell-...

badjeans · 5 years ago
I have a Huawei matebook x pro and I would highly recommend it. Great build quality and 3:2 screen.
badjeans commented on What to expect after the eviction moratorium   strongtowns.org/journal/2... · Posted by u/duck
hn_throwaway_99 · 5 years ago
The section titled "Eviction moratoriums may hurt mom-and-pop landlords and favor corporate ones" is absolutely true, and it will result in even more wealth concentration.

I have a family member who had the misfortune to rent out a house he previously lived in (he was moving and due to some issues in the neighborhood wanted to rent his old house out for a year before selling) in Feb of 2020. I think his renter paid one month of rent, and then nothing after that. And I looked the guy up, I have sympathy for people who are really on hard times or who lost jobs but this dude is a grifter who is just taking advantage of the situation.

So he's lived there coming on 18 months paying absolutely nothing. My relative was fortunate enough to get a good dose of rental assistance (as this article said, the process was extremely chaotic), but I guarantee he will never be a landlord again. The risk/rewards of a tenant/landlord relationship used to feel well known, but now it feels like the government can basically commandeer your property at will.

So this means you are just going to be left with large corporate landlords who are diversified enough that they can take the risk. And what makes me so angry about this is that, as someone who is generally on the "left" side of the political spectrum, I see all these calls for "cancel rent", as if housing grows on trees and landlords are all some kind of Ebenezer stereotype, instead of being a lot of small-time folk just trying to get by.

badjeans · 5 years ago
> I see all these calls for "cancel rent", as if housing grows on trees and landlords are all some kind of Ebenezer stereotype, instead of being a lot of small-time folk just trying to get by.

So letting property should just be risk-free profit? Being a landlord is a business and businesses fail all the time.

u/badjeans

KarmaCake day82October 26, 2020View Original