one2three4
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.
Golang Sucks
Pragmatic as in these are not generic solutions/patterns but actual working architectures.
Thanks.
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.
Pfizer and Moderna vaccines likely to produce long-lasting immunity, study finds
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.
The World Is on Fire and So Is Your Website
China's Accelerating Bid for Chip Supremacy
When the Soviet Union Paid Pepsi in Warships
Those pesky pull request reviews
Programming Without Code: The Rise of No-Code Software Development
Robo Sapiens: Future of Work Primer [Bank of America Report 2021] [pdf]
How to Be a Stoic (2016)
TLA+ is a language for modeling concurrent and distributed programs and systems
That is impressive. Like a framework for implementing noSQL DBs.
AI arms race already underway
We’re All Paying for Someone Else’s 4-Hour Work Week, Not Ours
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.
Migrating from Python to Kotlin for Our Back End Services
Ask HN: How do you invent with such contracts?
Reading a proposed employment contract and honestly I'm pulling my hair.It actually says that anything I make during my time with them -even in non work hours- belongs to them. Same goes for whatever I make 4 months after my termination.Also that I cannot work for any competitor worldwide -unless me and the competitor is in California!!How does anybody invent with terms like these?
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.
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.