HNHacker News
TopNewBestAskShowJobs

one2three4

451 karma · joined February 5, 2021

Big in Japan
submissionscomments
one2three4··on Don't start with microservices – monoliths are your friend
You do that anyway as per Conway's law.
one2three4··on Golang Sucks
Honestly the only real argument I've heard for Golang is that it is "coming from Google so it must be good". Every time I've tried to write in this language it feels like I'm hitting my head with a hammer.

Google might have very smart and knowledgeable people in it but this language is like a bad overhyped C. See next code that all it is doing is parsing a CSV line:

func NewPoint(line string) *Point {

tokens := strings.Split(line, ",")

if len(tokens) != 4 {

  return nil

 }

 var err error

 p := new(Point)
 
// why cannot I declare and assign err in one go??

p.id_ride, err = strconv.Atoi(tokens[0])

if err != nil {

  return nil

 }

 p.lat, err = strconv.ParseFloat(tokens[1], 32)

 if err != nil {

  return nil

 }

 p.ts, err = strconv.ParseInt(tokens[2], 10, 64)

 if err != nil {

  return nil

 }

 return p
}

most of the code has nothing to do with its functionality - it's just error handling that is plain hideous to write and read. Not to mention all the clutter to just convert an integer and a float.

And let's just not go into deeper aspects such as the structs that double as classes and has everyone creating his own style of SOLID and DPs. Or the inconsistent syntax which sometimes looks like traditional OO and othertimes like plain C further confusing users.

I find it very hard to believe that this language would have caught on if it weren't for Google pushing for it so aggressively. And I find it so disheartening to realise that after all these years developer productivity and happiness is merely an afterthought for language designers and that marketing and hype are the main drivers.

And yes I know the saying "there are languages people complain about and languages that people do not use". I find it worthy of high school gotcha sayings to which I reply that language designers of the majority of programming languages have no clue about how to make a language nice to its users. It's as they know how to design a internal combustion engine and then they put a chair and 4 wheels on it and they dismiss complaints about how unreasonably difficult and miserable the driver experience is.

one2three4··on A curated list of books on Software Architecture
That's a great and pragmatic suggestion.

Pragmatic as in these are not generic solutions/patterns but actual working architectures.

Thanks.

one2three4··on A curated list of books on Software Architecture
One afternoon? Hm, it depends on the paper really and how close it is to your daily work.

2 pages in FoundationDB paper (https://www.foundationdb.org/files/fdb-paper.pdf) I knew I was looking at one month's reading material if I really was to grasp everything. It'd be much easier if I worked with DBs and Distributed daily but I don't.

But, yes, I see your point.

one2three4··on New LinkedIn Data Leak Leaves 700M Users Exposed
I'm curious. Was Linkedin always so bad at securing its (our) data or things have gone downhill ever since the acquisition?

It is becoming a regular thing, almost part of the news cycle. "In other news, yesterday was the biannual data leak from Linkedin".

It is outrageous.

one2three4··on A Docker footgun led to a vandal deleting NewsBlur's MongoDB database
Is there any easy way to guard against this without putting everything in a VPC?
one2three4··on Django for Startup Founders: A better software architecture for SaaS startups
> miss languages with better type checking. What about python type hints?
one2three4··on FoundationDB: A distributed, unbundled, transactional key value store [pdf]
>> In its newest release, CouchDB [2] (arguably the firstNoSQL system) is being re-built as a layer on top of FoundationDB.

That is impressive. Like a framework for implementing noSQL DBs.

one2three4··on Keep Your Identity Small (2009)
To keep your identity small is probably akin to becoming a small Buddha.

Identity is even a dominant political trend in itself. "Identity politics".

I agree with the premise of the post. I just cannot see how it can be done. I think it's better to learn to accept differences gracefully rather than minimizing the identity surface. It's also my way to test people and communities. Try to disagree on something they consider basic. They way they'll treat you shows who they really are.

one2three4··on Hundreds of fishing vessels vanishing along Argentina’s waters
Your commend reminded me of this presentation https://www.youtube.com/watch?v=PQccNdwm8Tw
one2three4··on Ask HN: How do you invent with such contracts?
Ehm, I need to work to pay bills etc.
one2three4··on Ask HN: How do you invent with such contracts?
Thanks for the reply. This helps me a lot. I'll try to negotiate these terms.
one2three4··on Microsoft Irish subsidiary paid zero corporate tax on £220bn profit last year
I can assure you that on the personal income tax front and much more so at the indirect tax of cost of living the Irish govt is doing just fine thank you.
one2three4··on Stack Overflow sold to Prosus for $1.8B
I think it's similar to all the super-liberal OS licenses that permit any usage of OS SW without warranting any kind of compensation for the original devs. Licenses that the devs themselves are putting in their OS SW. Why they do so I honestly don't know.

Which leads to a number of weird situations like maintainers begging for compensation from simple users while behemoths make tons of money out of their SW or pretty basic SW being undermaintained (I vaguely remember a case pertaining to a security related library a few years ago where everyone was waiting on an overwhelmed and unpaid maintainer to provide a security fix).

Dunno. Some things just don't make sense to me. FWIW as far as my projects go I license under GPL. If it's free for you let it be free for all. I'd hate to be in the shoes of Redis contributors. To me, if your work is being used you must be compensated. Anything else is just plain wrong.

one2three4··on Pynguin – Generate Python unit tests automatically
>> Pynguin can cause serious harm to your computer, for example, wipe your entire hard disk! We recommend running Pynguin in an isolated environment, for example, a Docker container, to minimise the risk of damaging your system.

That sounds ominous.

Why do they execute the generated tests though? I mean I'd expect this to go only as far as generating the tests. Also that means that at least someone needs to review the tests.

one2three4··on I’m Not Scared to Reenter Society. I’m Just Not Sure I Want To
Because, sometimes, it's easier to accept that you're built in a certain way rather than spend a lifetime in denial.

"Sometimes" is the key word here. And the one that I wouldn't know how to quantify.

one2three4··on Employees are quitting instead of giving up working from home
About 1: Are you saying that the competition for a role offered in Munich is the same as for the same role offered remotely within +-5 hours CET or planet wide?

I really don't think so. And I'm afraid that this is a classic race to the bottom for the most of us.

one2three4··on Employees are quitting instead of giving up working from home
Commute is the most important reason for WFH for me.
one2three4··on Employees are quitting instead of giving up working from home
OK. I WFH as well. I know all the benefits. And as I'm WFH for pandemic only I've been trying to find remote work post-pandemic and there I realized some bitter points:

1. I compete for positions with people all over the world. Who can complete with a fraction of the salary I need.

2. As a remote worker -most often working as a contractor- I'm even easier to be replaced in a heartbeat. No severance or anything alike.

3. Did I mention that I compete with all the planet? That makes competition for good roles really crazy.

4. Work blends into life and it is very hard to keep it from. This gets worse depending on the company/role but in general these things tend to go the employers way not yours.

5. You need to find new ways to socialize (and the motivation to do so is minimal) or you risk mental health issues.

All I'm trying to say is be careful what you wish for because you might get it.

one2three4··on Ask HN: Was There a Hard AI It Would Maintain a HN Account. Wouldn't It?
Yes. Until it would need/want to start affecting public opinion.
one2three4··on Drunk Post: Things I've Learned as a Sr Engineer
That post actually might have started a genre in Reddit. Here's the next ones:

https://www.reddit.com/r/ExperiencedDevs/comments/nnw7yd/sob...

https://www.reddit.com/r/ExperiencedDevs/comments/noa841/sup...

I guess there will be more on their way.

one2three4··on It's time for us in the tech world to speak out about cryptocurrency
>> without needing the consent of any private corporation or monopoly

I'd say we all subsidize bitcoin and the likes indirectly and unwillingly through the price hikes in HW directly or indirectly attributed to something of dubious (to put it mildly) tangible value.

one2three4··on Ask HN: How to cope with the death of a dear person?
Sorry for your loss.

Lost my brother-in-law few months back after a long battle with cancer. My sister is still mourning. It takes time and it never really goes away fully. You just get used to it I guess.

One of the things I thought and shared with her, and which had some effect was this: we all die and we all spend our time here in various ways. Being sad for a loss means that we were lucky enough to have someone of high value in our lives. That is not a given. So, sad as we might be it's also a reason to be happy that we were that lucky. The alternative would be to never have met them and thus lead a much poorer life.

Dunno if that helps.

one2three4··on O'Leary: Forced landing in Belarus was 'state-sponsored hijacking'
https://twitter.com/VoicesBelarus/status/1396806559792082945

I won't be surprised if all flies in/out to Belarus are suspended.

one2three4··on O'Leary: Forced landing in Belarus was 'state-sponsored hijacking'
I think he's taking about the current president.
one2three4··on Belarus 'diverts Ryanair flight to arrest journalist', opposition says
Agree 100%. You nailed it.
one2three4··on Belarus 'diverts Ryanair flight to arrest journalist', opposition says
Exactly. Hundreds of dead civilians. Nothing but hot air from NATO ,EU and the West in general.
one2three4··on Belarus 'diverts Ryanair flight to arrest journalist', opposition says
They're waiting for climate change to kick in in earnest and free the northern passage. Then I guess they can act like rentiers and charge shipping for using it. Other than that as long as Putin stays in power nothing will ever change. Maybe the next czar will be more progressive. Who knows.
one2three4··on Belarus 'diverts Ryanair flight to arrest journalist', opposition says
Very accurate description IMO. I hope no EU company flies over Belarus after that. In retrospect this is an unacceptable risk.

PS: Which also brings to mind the downed Malaysian flight when flying over Russian-friendly Ukraine. I hope that airlines also have these areas in their no-fly lists.

one2three4··on The problem with Free Software is capitalism
It can be similar to fines in Scandinavia (AFAIK). They're linked to your total income e.g. 0.001% of it for running a red light.
Page 1 of 3Next →