Better HN
topnewbestaskshowjobs
Log inSign up

defined

927 karma · joined Mar 14, 2017 (9y ago) · 307 submissions

[ my public key: https://keybase.io/edfine; my proof: https://keybase.io/edfine/sigs/rgBNx308Zssn4xQWDxgQyjw0aROLuRDyXvaAmBLUP0I ]
Submissions

comment 9y ago · link · parent

> But as an inexperienced C developer, I found it quite helpful.

Fair enough. I didn't mean to come across as arrogant; I just wasn't thinking about the audience. I'm happy you got value from it.

comment 9y ago · link · parent

That's not unsafe, which is what the article is about.

comment 9y ago · link · parent

This is not news to experienced C developers.

All it takes to avoid a missing NUL terminator is something like

  #define safer_strncpy(dest, src, n) \
    do { \
        if (n > 0) \
            strncpy(dest, src, n)[n - 1] = '\0'; \
    } while (0)

comment 9y ago · link · parent

Why a downvote for this? I don't understand. Others have pointed this out, too.

comment 9y ago · link · parent

Please expand "TLS" to "Thread-local Storage" in the misleading title.

comment 9y ago · link · parent

Maybe so, but the devaluation of rights goes far beyond executions. There are ways to oppress people that are almost as bad as wrongful execution, such as wrongful and malicious prosecution, wrongful imprisonment, profit-based prison systems, and predatory plea-bargaining, and that's just the justice system.

In a broader sense, the willful dismantling of laws and programs meant to prevent human suffering, and reduce vulnerability to robber barons is also part of the trend: the denial of climate science, the attacks on net neutrality, the attempts to dismantle healthcare assistance, the defunding of scientific programs - the list goes on and on, and it is to the detriment of all but the mega-wealthy.

comment 9y ago · link · parent

If you visit the links I posted, you will see that other countries suffer, too.

I don't deny that some US businesses have predatory practices, and that is wrong, but it doesn't come close to the wholesale IP theft we are seeing, and doesn't make it any less wrong.

If you claim it's a "huge part of the US economy", you should back this up with some evidence.

comment 9y ago · link · parent

This is a horrifying story and, I fear, part of a trend in the USA towards devaluing human rights.

comment 9y ago · link · parent

My second-most favorite pair of anagrams after the movie-showing giant bat is coprophagist topographics.

Detailed maps of areas in which dung-eaters live? Worth buying just to avoid the neighborhood... :)

Edit: These anagram pairs would also make interesting Short Authentication Strings for ZRTP. Worthy of a Monty Python skit, if you ask me.

comment 9y ago · link · parent

To amplify your point, cloning in the sense used in this discussion is intellectual property theft.

It doesn't matter whether it deliberately attempts to pass itself off as the genuine article (i.e. a counterfeit item) or attempts to capitalize on the name brand by making the article visually almost identical (e.g. Sharpie vs Shoupie pens - a knockoff).

A sobering fact is that about $653 billion worldwide is lost from counterfeit goods[1]. The FBI takes this position[2]:

> legitimate businesses lose billions of dollars in revenue and suffer damaged reputations, consumer prices go up, the U.S. and global economies are robbed of jobs and tax revenue, product safety is reduced, and sometimes lives are even put at risk.

As much as I am not a fan in particular of the FBI, I agree with this statement. In fact, the USA is hit the hardest by far, losing $225 billion annually to counterfeiting[3].

Bottom line: a person or company should be able to profit from their ideas, research and development, productization, licensing and marketing, without having these things stolen by others and used to make money off their sweat.

[1]: http://www.havocscope.com/category/counterfeit-goods/

[2]: https://www.fbi.gov/investigate/white-collar-crime/piracy-ip...

[3]: http://www.havocscope.com/losses-to-counterfeit-goods-by-cou...

comment 9y ago · link · parent

Although my data is very limited, I am beginning to suspect that quite a bit of new documentation produced by the current administration looks like high school work.

As admittedly minuscule evidence, I present the I-130 USCIS (was the INS) PDF form[1], which ballooned from 2 well-designed pages to a hideous 9 page effort, which has amateurish field validation and vast expanses of unfilled boxes into which one cannot even type "N/A" (because it's generally a bad idea to leave blank text fields on important forms)

[1]: https://www.uscis.gov/sites/default/files/files/form/i-130.p...

comment 9y ago · link · parent

Honestly, Saunders MacLane's book, "Categories for the Working Mathematician", was very useful for this non-mathematician. It was surprisingly accessible if I started at the introduction and did not move forward until I grokked the content.

I won't pretend I absorbed all (or even most) of it, but I at least understand the "Standard Haskell Joke" now (which is a funny misquote from his book)[1][2]. I also understand much more clearly why Haskell is so associated with Category Theory.

[1]: "A monad is just a monoid in the category of endofunctors, what's the problem?"

[2]: What MacLane actually wrote is:

All told, a monad in X is just a monoid in the category of endofunctors of X, with product × replaced by composition of endofunctors and unit set by the identity endofunctor.

comment 9y ago · link · parent

I wrote some pretty low-level stuff in VAX PASCAL, which had extensions to let you do just about anything. It was a nice language.

comment 9y ago · link · parent

I understand. Makes perfect sense.

I think many very pertinent stories and points of view never surface because of the very real threat of retaliation or ostracism - burning bridges, as you say.

I think that people who expose the mistakes, weaknesses, and perhaps even evildoing associated with people and companies are seen in the collective mind as whistleblowers, who appear usually to be regarded - and treated - badly. This is a sad but real tendency of human nature.

The irony is that many whistleblowers do a great public service, and at the very least keep entities honest by exposing their wrongs. If everyone turned aside and pretended not to notice that the emperor had no clothes, we would be in a dark place indeed.

This isn't a criticism, by the way: I suffer from the same misgivings, which war against my instinct and desire to tell the stories of the injustices I've seen firsthand.

I wish I knew the answer.

comment 9y ago · link · parent

Thanks, didn't know about that one.

comment 9y ago · link · parent

I will vouch for this. A large company in many cases behaves like

    $startup_dysfunctionality + $dysfunctionality_from_fast_post_startup_growth + $years_of_wild_hiring + $years_of_reorgs + $useless_and_obstructive_policies_and_standards

comment 9y ago · link · parent

Moderators:

This thread has essentially disappeared, along with a great deal of very useful comments, because there are apparently duplicates of it. Never mind that this has more comments than the others.

Instead of being near the top of HN, where I believe it deserves to be, it is gone. This is unwarranted, and merits serious consideration of merging the so-called dupe threads.

Failure to do this will surely look rather suspicious, don't you think? Some people are already mentioning that it didn't rise in the ranks even after getting around 50 points in several minutes.

comment 9y ago · link · parent

Not nearly that significant! I wish!

comment 9y ago · link · parent

> It is hard to describe to someone who never experienced a job that is overwhelmingly and exclusively awful how much of an impact it makes on you. And I am not talking about a job that you don't like or don't enjoy. I mean a job that has zero redeeming qualities and a culture that is incredibly toxic. You feel like a failure at work. You are miserable. And you see an out (quitting) but if you quit (without a job) there are a whole bunch of questions.

This is one of the most brilliantly perceptive comments I have read here. I encourage you to write an article based on this.

comment 9y ago · link · parent

Totally concur.

comment 9y ago · link · parent

I'm such a person, and it's not restricted to SV. My worst experiences were in the South East. I think that many startups, regardless of region, are poorly managed, especially as they go through the transition from startup to something bigger.

comment 9y ago · link · parent

Ha! Funny you say that. When I was laid off the job I was stuck at because of the visa situation, my colleagues thought I had gone insane because I was so obviously happy and smiling right after getting the news.

The fact is, it was such a huge relief to be shot of that dysfunction-personified environment that I thought, and I quote, "This is one of the best days of my life!"

The twist in the tail was that I had just received my permanent residence in the USA, and by laying me off, the company had been forced to forgive the many thousands of dollars in legal immigration fees I would have had to repay them, had I left voluntarily to seek other work.

comment 9y ago · link · parent

I'd like to address the many comments that try to be helpful and offer advice, while expressing bemusement that the obvious step of just leaving and getting another job was apparently rejected in favor of suicide.

Edward de Bono of Lateral Thinking fame wrote a book named "Po: Beyond Yes and No" [1].

While not the most catchy title, in the book he describes the process of forming patterns in the mind as analogous to pouring warm ink over jello. After a while, channels begin to form and the ink naturally starts to flow down the channels, deepening them. It's pretty obvious that (a) knowing you are stuck in a groove takes some insight and (b) breaking out of the thought patterns can be pretty challenging.

De Bono also invented the L game. The interesting thing about this game is that it demonstrates very visually a flaw in human thinking: once you have started down a path in a decision tree and pruned off other possibilities, all your answers from that point onwards will be wrong if that path doesn't contain the right answer.

Pretty obvious, but where the flaw comes in is that, unlike computers, humans don't tend to backtrack past a point of a belief that "this is axiomatic", and never reexamine it.

I think that - and this is just IMHO - people who go on to commit suicide when there are other, obviously better solutions, are stuck deep down the wrong branch of a decision tree and incapable of reevaluating prior decisions.

Offering rational advice to people in this position is futile; what's needed is to help them pour warm ink to form new channels.

[1]: https://www.amazon.com/Po-Beyond-Yes-Edward-Bono/dp/01401378...

comment 9y ago · link · parent

It's not just Uber. There is no shortage of toxic workplaces, sadly.

comment 9y ago · link · parent

It's well-meaning advice, but understand that, in situations like these, certain personality types don't think as rationally as you would expect. One size does not fit all when it comes to handling adversity.

comment 9y ago · link · parent

I think Uber is currently a lightning rod for everything that's wrong with technical employers, especially in the USA. I think there is a great deal of simmering rage against the widespread mistreatment of engineers, and Uber has, in a sense, become the monster that has the villagers getting out their torches and pitchforks.

comment 9y ago · link · parent

The are always simple answers to complex issues, and they are usually wrong. This answer desperately needs more insight.

comment 9y ago · link · parent

As others have written, it is similar to people reluctant to leave abusive relationships. Just as people who have not suffered clinical depression can advise to "just snap out of it", those who have not experienced this phenomenon, or are psychologically less vulnerable to it, will say "just get another job".

Sometimes the answers just aren't easy.

comment 9y ago · link · parent

This. Other comments amplify this point.

comment 9y ago · link · parent

Read my comment elsewhere in this article; it might give you a different perspective.
1
7891011