HNHacker News
TopNewBestAskShowJobs

babarock

1,840 karma · joined October 7, 2011

My name is Joe. I work at Red Hat.

The opinions I express here represent my own and not those of my employer.

submissionscomments
babarock··on 0x0: Share Files from Terminal
What's the issue with NAT, if you don't mind me asking?
babarock··on Bob Lee, former CTO of Square, has died after being stabbed in San Francisco
> not being able to leave bags in their car

The bar is leaving your stuff in your car, not feeling safe everywhere all the time.

babarock··on ChatGPT is down
Great, now what do I do to write code? >.<
babarock··on Please help improve Magit
It is definitely cool to support any kind of software that is useful.

What is "not cool" is bumping in a thread about magit to let everybody know:

- you're an anti-political correctness warrior.

- you didn't bother to learn magit because you picked "sides" in a made up "git wars"

- you don't rtfm, but you rely on AI to give you ready-made copy-pastable commands.

This is a thread about magit. If you have nothing to say about magit, it's okay to refrain from participating.

babarock··on The Python Paradox (2004)
I don't know how popular the language was, but I distinctly remember it was seen as unfit for "enterprise" work. This was a time where the Serious devs would do SOAP, CORBA and other boilerplate-heavy RPC. Python was always branded "bad performance because of PIL", because multi-threading was gonna be the future anyway.

I don't know how popular Python was, but I remember it was a "toy" language, and when Reddit rewrote their whole website in it a few years later (2005? 2007?) it was seen as a bold risky move.

babarock··on Show HN: New AI edits images based on text instructions
But it requires transmission over the internet, right? This is actually very interesting. Am I legally allowed to draw naked kids for my own enjoyment in the comfort of my own home?
babarock··on Show HN: New AI edits images based on text instructions
Genuinely curious what type of content would be considered illegal here.

- the tool is drawing original content. - the tool is executing on my laptop. - the output image is not shared with anyone.

In a way, whatever this tool can do, MS Paint could (theoretically) do.

Or am I misunderstanding the whole thing?

babarock··on Japan’s Jimi ‘Mundane’ Halloween Costumes of 2022
Closets? Don't you store these at the dry cleaner's until it's time to pick them up for your cousin's wedding?
babarock··on HAProxy 2.7
You'd be surprised what's still written in C.
babarock··on I am a quite good bad programmer
I don't know if you're a good or bad programmer, but I'll tell you this about job interviews:

I've given dozens of interviews over the past 3 years. I'm fairly certain everyone got out of the interview with me feeling like they did very poorly, when in fact a lot of people were doing well. All of the people I ended up hiring told me "I was sure I completely failed your interview".

You don't know what interviewers are looking for, so don't make assumptions. I'm almost never looking for a "correct" answer. I'm always looking for your behavior and attitude when answering those questions. My definition of a good programmer is someone who understands that it's a team sports, who values clear communication and who knows how to read the doc on their own. You may or may not have implemented your own lisp in your spare time, but this is secondary.

If you ask me to review the quality of your code, I'll spend more time reading your commit messages and variable names, than you realize. It's as important as the choice of algorithm and data structure.

Other interviewers value other things. There's no one thing.

TLDR: You don't know how well you did in interviews, it's very likely you're better than you think.

babarock··on Inflation is at a 40 year high. What can history teach us?
Megacorps will get away with keeping their prices this high, as long as the gov keeps funding these "relief" payments.

It's using taxpayer money to artificially maintain prices high.

babarock··on Ask HN: Which books you have read till now that were worth investing time in?
I've spent much more time in sicp on text (and video lecture) than I did exercises. I also read it on my own time, not in class, and it took me many months to go through it.

I guess everyone has a different way of approaching this.

babarock··on What Beirut was like before the war (2019)
I understand now what you are saying. I don't agree or disagree. Honestly I don't know enough about the topic.

See, for middle eastern, words like "muslim" or "chrisitans" or "jews" doesn't represent your spiritual beliefs. It represents ethnic belonging. To put it in a western perspective, your religion is not a mutable characteristic. I'm born "christian", but my level of belief in Jesus Christ has nothing to do with it.

You're saying the factions that fought in Lebanon didn't emphasize a islamist rhetoric until the 90s. From what I know from the earlier days of the war, there was a lot of talk of pan-arabism and arabic identity, not talk of an Islam nation, so what you're saying sounds plausible.

But from our middle eastern perspective, lebanese muslims allied themselves to other muslims from syria and palestine to topple the christian-led government. I was communicating the point that the factions involved were based on ethnicity.

People picture "wars" like soldiers in battlefields and there was some of that. But a LOT of the Lebanese war was undisciplined militiamen mass killing villages based on ethnic lines. On both sides. Plenty of massacres in christian villages because they were christians. Plenty of massacres in muslim villages because they were muslim. From our point of view, we saw was christian and muslims killing each other.

> radical Islamist Palestinians who had left Palestine and wanted an Islamic state in Lebanon

The first time I read that quote, I didn't react to the words "radical Islamist", but read "palestinians had left palestine and wanted a state in lebanon". I guess this shows my bias after all :D

Now I'm curious what caused the change in the palestinian rhetoric. I'll try to read some more about it. Thanks for opening my eyes to this.

babarock··on What Beirut was like before the war (2019)
That's what I get for revealing my identity and sharing my stories. I'm told by strangers hiding behind their anonymous username that my views are "biased". Well, yeah, all views are "biased". Does it mean that those stories are not true?

Lebanon was divided around ethnic lines all throughout the war. On one hand, christian militias. On the other hand, palestinian militias. I know what they said about each other. I know how they killed and assassinated each other. I know how impossible it was to cross the line. I grew up there, I don't full remember the last years of the war, but I definitely remember the after-war and what people did afterwards.

Maybe it "just happens" that the Lebanese muslims sided with the 90+% muslim-palestians. But judged from living there for my whole life I might know that this isn't what they say. Not how they saw each other. The Lebanese muslims sided with the palestinians because of a percieved shared identity. Call it pan-arabism, call it whatever fancy term you want.

I am NOT saying that middle eastern christians are perpetually persecuted or that coexistence with muslims isn't possible. I'm not saying that the situation is the same today in 2022. I'm saying that at one specific moment in history, in one specific country in the middle east, the muslims have attempted (and succeeded at) toppling a non-muslim government that was seen as pro-west-anti-arab.

And to be clear, I agree with you that Lebanon was not a solid nation, was gonna implode anyway, and was dealing with internal conflict long before Palestine was a thing.

> There was no "Islamic Jihad" in Palestinian groups before the 90s.

I guess those guys aren't real then? https://en.wikipedia.org/wiki/Islamic_Jihad_Movement_in_Pale...

They operated in lebanon. They operated from lebanon. They still operate from lebanon.

babarock··on What Beirut was like before the war (2019)
Fair, not Hamas, the Islamic Jihad that came before it. It's not nearly the point of my reply, but good gotcha.

As for sources of how the PLO treated non-muslims during the civil war of lebanon, it's tough to find what you want. The whole civil war was about the christian factions vs the palestinian factions, with different entites in between with rapid shifting alliances.

babarock··on What Beirut was like before the war (2019)
As a Lebanese, I find what you're saying both slightly offensive and slightly true. Lebanon, as a culture distinct from other middle easterners has existed for a very long time. Lebanon as an independent state has been invented in 1920, however there were multiple previous attempts historically to get independance.

We had high levels of autonomy under the Ottoman rule: https://en.wikipedia.org/wiki/Mount_Lebanon_Mutasarrifate

Some historical figures have reached levels of influence that would qualify as "independent lebanon" (if people were so good at administrative bookkeeping back in the 1600s): https://en.wikipedia.org/wiki/Fakhr_al-Din_II

The modern state of Lebanon fails in part because it's a "contrieved post colonial state", you're right. But claiming it has no historical foundations is misguided. It's wrong. Colonials hijacked a very legit idea, and turned it into a failed state. It's different.

babarock··on What Beirut was like before the war (2019)
While the PLO tried to distinguish itself from Hamas by claiming to be more secular, make no mistake that they were clearly a muslim force.

I was too young to remember the civil war, but at least in the collective retelling of the story, it's commonly accepted that PLO tried to topple the Beirut government to install their own. There are many claims that Arafat wanted Lebanon to be an alternative for their "stolen" Palestine. If it's the first time you hear that, then I think it's likely you never talked to Lebanese people about the war and the PLO.

Arafat, the leader of the PLO, wasn't christian. That's ... weird you claim this. His name is Mohammed Abdel Rahman Abdel Raouf al-Qudwa al-Husseini. That's as Muslim as it gets. He was even a member (or a close ally I don't know) of the Muslim Brotherhood.

It's tough to convey to non arabic speakers, but several politicians, PLO front and center, use the terms "Arabs" and "muslims" almost interchangeably.

The Lebanon "civil war" is a misnomer. For the majority of the time, it was a war between lebanese christian militias and palestinian invaders that were tolerated by the lebanese muslim groups.

Lebanon's history and the civil war are complex and I'm not doing a good job of explaining then in a HN comment. If I understand you correctly, you're saying that islam has become more strict in the palestinian ranks after the 90s. This may be true. But I assure you that from the late 50s to the late 80s, they were trying to kick the non-muslims out of Lebanon by force.

babarock··on What Beirut was like before the war (2019)
Your description of Lebanon is correct, but incomplete.

- Lebanon (as an independent state) has been created in 1920, right after WW1 by the French "colonialists" specifically to draw an enclave of non-muslim minority in the country. It's classic Divide&Conquer strategy.

- The PLO (Palestinian Islamists) did try to set up an Islamic state in the country, but they were aided, or at least encouraged through inaction, by the muslims in the country who felt that the system was unfair.

- Currently the conflict isn't "muslims vs non-muslim". It's much more a conflict between Shia muslims (affiliated to Iran) and Sunni muslims (affiliated to KSA/Gulf). The non-muslims are now a minority and are split more or less evenly across the two camps.

- As of today, there's a lack of national identity, where every region's local lord amasses more power and influence than any "central" government.

It's not as simple as "they were non-muslims, got invaded by muslims and now it's gone bad"

Source: I'm Lebanese. PS: Pedantically, we became independent in 1943.

babarock··on A History of Lua (2001)
If we want to be pedantic, prototypal inheritance is a kind of OOP[1]. What you're talking about is referred to as "classical OOP" (OOP using classes).

[1]: https://en.wikipedia.org/wiki/Prototype-based_programming

babarock··on A History of Lua (2001)
Lua used to fill a niche very similar to Javascript: small lightweight OOP language that focuses on being embedded in a larger C program. Javascript won this war, mostly based on the explosion of the Web and the insane optimization work that was put on JS engines during the late 2000s.

JS ate Lua's cake, not on pure technical merits (the two languages are very similar) but because of their respective environments.

babarock··on Technical reasons to choose FreeBSD over GNU/Linux (2020)
Then what are foundations like CNCF (https://www.cncf.io/) doing? I'm asking honestly, if there's any difference between CNCF and any other standards governing body.
babarock··on Magnus Carlsen to give up World Championship title
As long as it's all in memory, that's fair game. Everybody at the high level is using engines for training/preparation.

This is balanced by the fact that the sheer number of possible lines is huge. Too big for any human to "remember" them all.

It's also not enough to memorize "good" moves from an engine perspective. "Good" engine moves and "good" human moves are different things.

An engine might see a move as "good", because it calculated 50 moves down the line and found an advantage. This means that you'd have to play the next 49 moves in a very precise manner to reach this advantage. One way to think about it, is that there are multiple positions that are analyzed as "draw" by en engine, but 9 grandmasters out of 10 will see one side winning. That's because one side would need to play perfectly, while the other side has much higher tolerance for mistakes (engine assume perfect play on both sides).

TLDR: engine is fair game, during preparation. It's a big deal, it transformed high level chess, but it didn't break the game, and is unlikely to do so.

babarock··on Ask HN: Non-violent video games with great stories?
And, while it is a great game, I wouldn't call it a great story.

The whole story can be summed up with "evil dragon captures the princess. Mustachio'ed hero braves danger to save her. Plot twist: our princess is in another castle".

babarock··on Free coding exercises for budding gophers (2017)
Count me as a 2nd person who doesn't see the difference between spam and promotional emails. Any unsolicited email that is detailing product offers and prices is spam.

I am not sure what google-shaped worldview has to do with anything. Maybe I don't understand your comment at all.

babarock··on Leetcode has taught me that I'm a bad engineer
My role isn't to assess if you're competent or not. My role is to assess if I want you on my team or not. There's a difference.

And yes, if I ask you a technical question and you freeze, I don't want you on my team. It doesn't mean you're a bad engineer. It means you're not a good fit.

babarock··on Leetcode has taught me that I'm a bad engineer
What do you mean?

If a candidate freezes for 45 minutes in a 45 minute interview, they won't get the job.

... Right?

babarock··on Leetcode has taught me that I'm a bad engineer
I'm a 15 year(ish) engineer-turned-manager who has spent a good chunk of time doing recruiting.

* I confirm that day to day business problems rarely are the sort of problems you find on Leetcode.

* I might ask similar questions in interview. I don't expect the candidate to solve them. As a matter of facts, I don't care if the candidate actually solves them or not. I am observing how the candidate behaves in front of a difficult problem. Will they freeze? Will they jump head in the code? Can they articulate their thoughts and think analytically about it? Can they think on the spot if I challenge their approach? Are they comfortable saying "I don't know"? This sort of things.

In my book, being a "good engineer" is much more about communication, collaboration, familiarity with git/sourcecontrol, clarity of commit messages, pertinent emails, being reliable, being resourceful, etc.

Good grasp of algo is a big plus, of course, but it's not something that all the best engineers excel at.

babarock··on Elizabeth Holmes found guilty
You're making the assumption that Holmes wronged "commoners" with malicious intent. As far as anyone can tell, this is just an allegation. So either:

1. you have incredible insight into the inner workings of the company. 2. you're joining an online pitchforking mob.

As much as I rejoice seeing a Silicon Valley poster child be exposed as a phony and a fraud, I would be very careful before jumping to conclusions and asserting with high confidence that the court verdict is flawed.

babarock··on Amazon: Not OK – Why we had to change Elastic licensing
What's the point of "open sourcing" if you get annoyed at people redistributing your work? Honest question here.

I'm really not interested to know who's in the "right" or in the "wrong". I want to know, what's the motivation for opensource if not "reuse my code please"

babarock··on Amazon: Not OK – Why we had to change Elastic licensing
Is it possible that people licensing things as MIT don't mind that a multi-billion company makes money off their work?

I don't mean to make generalities about "open source", but a serious chunk of the community genuinely don't care.

← PreviousPage 2 of 11Next →