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 7y ago · link · parent

Great point!

comment 7y ago · link · parent

Thank you for explaining that. You are exactly right.

I really should have spelled it Quality, to show that I meant the philosophy of Quality rather than its more mundane interpretation.

At the same time, in an interview with Pirsig that I read somewhere, IIRC he did rather archly claim something to the effect that the book had better be high quality, considering its subject matter.

I tried to find that interview, but could only come up with this piece [1].

[1]: https://www.theguardian.com/books/2006/nov/19/fiction

comment 7y ago · link · parent

> Pirsig used note cards or slips of paper

Ah, yes, my mistake. In my memory I confused index cards with PostIt notes.

> and not really about motorcycles at all

It's Zen, but it's not about Zen; it describes motorcycle maintenance, but it's not about motorcycle maintenance.

These are just a vehicle (no pun intended) for Pirsig to show us the inside of his post-apocalyptic mind, as far as he could remember once being who he called Phaedrus before they zapped him.

I found the book a multidimensional view of Pirsig's current and previous mental state and philosophy, just like the description of a computer software architecture is a multidimensional view of the architecture, neither and none of which can be described by a mere linear narrative.

It (ZATAOMM) is part philosophy, part memoir, part attack on what he calls the Church of Reason, part description of insanity, and more things I can't think of right now. No wonder it took him 4 years to pull together all those threads of consciousness, some of which were very damaged indeed.

Although, like another commenter noted, just spending 4 years on writing a book doesn't mean it automatically deserves accolades - and I agree with that observation - someone who reads it with even a fraction of the patience and insight with which it was written, might be tempted to award accolades after all.

comment 7y ago · link · parent

Sadly, I did not enjoy _Lila_ nearly as much as ZATAOMM. It seemed to be less organized or something.

comment 7y ago · link · parent

Sorry you feel that way. I feel it’s a work of genius, the regular structure of which reflects Pirsig’s obsession with quality.

comment 7y ago · link · parent

I totally love and revere the book (ZATAOMM), and have read it multiple times.

Then again, I am super-detail-oriented, so that makes sense to me, because IMHO that’s the kind of audience for whom Pirsig wrote the book.

It _is_ a book about the nature of quality, after all, and Pirsig spent four years writing it, with the aid of PostIt notes all over the walls to organize it.

Not all people are detail-oriented enough to be capable of the laser-like focus needed to get all of the way through the book without losing interest. No offense intended, each to their own.

comment 7y ago · link · parent

> Since the metadata service doesn’t require any particular parameters, fetching the URL http://169.254.169.254/latest/meta-data/iam/security-credent... will return the AccessKeyID, SecretAccessKey, and Token you need to authenticate into the account.

They talk about the AWS “Metadata Service” Attack Surface and how juicy a target it is. I was just providing support for that opinion.

comment 7y ago · link · parent

Support for your assertion: https://rhinosecuritylabs.com/cloud-security/aws-security-vu...

comment 7y ago · link · parent

Now just run Erlang on VMS and you have an uptime match made in heaven :)

comment 7y ago · link · parent

Great article, and I love the blend of art and technology. You are so often doing projects that involve visual, physical, and conceptual creativity; sort of concretizing the abstract into aliveness.

comment 7y ago · link · parent

> It scales about as well as any other language

You can get just about anything to "scale" given architectural compensations (like scads of containers), so this, ipso facto, doesn't mean much.

> so why not use a language that's nicer to work with?

Well, why not indeed? But here are some thoughts about that.

Nothing is a panacea, Erlang included. Some of the ecosystem is ugly and hard to work with, but improving. Erlang is in a vicious cycle:

* Erlang ecosystem sucks

* Fewer people want to use it

* Fewer people are available to improve the ecosystem

* Fewer people are available to fill jobs for Erlang

* Less demand for Erlang

* Loop

Erlang gives you certain things that no other language I know of does, and these things make it a more robust, easier to program, highly concurrent solution without needing architectural compensations for those things.

That doesn't mean that you can magically throw 1 million TPS at Erlang running on N boxes and your internal queues/mailboxes won't overflow. You, along with the rest of the world, need backpressure handling mechanisms.

What Erlang gives you that Java doesn't is totally decoupled processes that cannot directly affect each other. No mutexes or semaphores, no shared global memory.

It also gives you ultra-lightweight processes that garbage-collect independently of each other, that are cheap enough to start and stop that you can create one per incoming connection and make it completely unaffected by any trouble that any other process gets into. This is not true of threads in Java.

It gives you a supervisory framework that, if used judiciously (yeah, yeah, no true Scotsman, but that doesn't make this any less valid) gives you an ultra-robust system that degrades gracefully under error or overload conditions.

It gives you linked processes that detect a broken process and brings down the others (if you so choose) to avoid leaving orphaned processes cluttering up the system, plus automatic restart, baked in. These do come free of charge when using OTP supervisory frameworks in the recommended fashion.

I think that in some cases, Erlang has been overhyped and people come into it expecting it to magically solve all the hard problems. People that overhype Erlang do it a disservice. For example, the stupid "nine nines" thing was an almost once-off, limited situation in a very constrained environment and I am sure many Erlangists wish it had never been mentioned.

And I wish nobody had ever said the words "let it crash", because they have been misunderstood and taken out of context and again done Erlang a disservice. Just like the phrase "premature optimization is the root of all evil" has caused untold damage when it was (and is often) taken out of context.

The whole "let it crash" thing was shorthand for "if a process cannot reasonably handle and error condition itself, let it die and be reincarnated by the supervisory process". It does not mean "just let everything crash". For example, if you have a system that has long-lived connections, maybe (say) http/2 connections, or XMPP, or Apple push, you most definitely do not want to let it crash without doing everything possible to recover from errors such that the connection stays up under as many error conditions as possible.

But for the most part, a process should not be written defensively and try to recover from errors where it has no business doing so - it should leave it to the supervisor.

I have written Erlang systems, heavily used in production that ran reliably, without crashing, for many months. Usually they were only stopped to do an OS upgrade. They weren't error-free - we found out about some persistent errors by checking the logs occasionally, then fix them and often hot-patch the fix into the production systems.

Again, Erlang is not the world's best programming language or ecosystem. It is, within its design envelope, one of the finest soft real-time distributed multiprocessing environments around when used, like anything, with skill and careful architectural design.

In my humble opinion.

comment 7y ago · link · parent

Probably because they really are holding it wrong?

comment 7y ago · link · parent

I can't refute your personal experience, but 10 years of Erlang work left me longing for more. It sounds as if perhaps Erlang was not used optimally, or, alternatively, best practices may not have been followed.

10 years ago the ecosystem was horrendous, and is much better now. Granted, the build experience could be better but I didn't find it that bad.

I find that people's experiences are relative to what they are accustomed to. Early years for me included compiling and linking C in Windows (segmented) and that was truly horrible!

comment 7y ago · link · parent

Nitpick: “piqued”, not “peaked” (though it’s a homonym)

comment 7y ago · link · parent

If I did half the things I already know to do, I would be in great shape. Tell me how to make myself do the right things so that I actually do them consistently, and you will be immensely wealthy after you publish that self-help book.

comment 7y ago · link · parent

That’s oversimplifying it. Knuth was writing about micro-optimizations, like writing a section of code in assembly language to shave off some milliseconds from a critical section of code.

What many people today mean by optimization is a far cry from that.

Here’s a real-life example. Some code was super-slow and nobody could figure out why. It took only a minute to see the code was passing a string (in C++) by value, causing unnecessary copy construction and destruction (in a tight loop, to boot).

Writing that code by passing a const reference in the first place is Good Coding 101, but many people might consider that “premature optimization”.

comment 7y ago · link · parent

But if you ignore the performance aspects of architecture and build, by the time you try to meet performance specs it is likely too late.

comment 7y ago · link · parent

Maybe the missing key component is the role of architecture in providing a platform for performance ;)

comment 7y ago · link · parent

This is too narrow a focus. Performance starts at the architecture level and can’t be bolted on after the fact.

comment 7y ago · link · parent

I’m with you, but good luck getting some scrum shop to include enough detail to achieve this.

comment 7y ago · link · parent

Thank you for writing this. So many people don’t get it. You cannot tack performance on after the fact like some aftermarket pony car part if the performant architecture is not there to support it.

comment 7y ago · link · parent

eke

comment 7y ago · link · parent

I keep sending copies of this paper to numerous colleagues. AFAIK almost none of them finished (or even started) reading it. I’m at a loss to explain why, since it is such a deeply insightful paper.

comment 7y ago · link · parent

This is spot on. I say this as an aging person living in irreversible and progressively increasing discomfort. To quote an old film title, whose life is it, anyway?

comment 7y ago · link · parent

Some codebases are legacy from the word go. Legacy is more about the maintainability than the age of the codebase.

comment 7y ago · link · parent

Might it be worth using a password manager instead, like 1Password, or KeePass and its variants?

comment 7y ago · link · parent

I am type 2 diabetic and half an apple will send my glucose levels into orbit. The same goes for many other fruits. Fructose is still sugar, and I haven't particularly noticed fiber slowing down its uptake in my metabolism. I just steer clear of most fruits except for strawberries and blueberries, and limit even those.

comment 7y ago · link · parent

"Analysis paralysis" is a real thing, so I partly agree with you. Sometimes you have to take parts of a large concept and "dick around" with it to discover the unknown unknowns and how not to do it, then feed that back into analysis.

After a number of iterations of this, you converge on a baseline architecture that you try to support future change without being excessively focused on YAGNI. Over-focus on YAGNI often leads to architectures that are so inflexible that when you DO need it, you can't add it without a demolition crew[1].

People should also remember the context in which YAGNI came up: Kent Beck, Ward Cunningham, Smalltalk, and the C3 project. This particular combination of people, project, and process made YAGNI feasible. And the C3 project, which spawned XP, was not as successful as folklore would have it[2].

It's not always so. Imagine if YAGNI was the focus of Roy Fielding and the HTTP specification, which has lasted remarkably well because of allowance for future change in the architecture.

Scrum and other processes that claim adherence to the Agile Manifesto work best in certain contexts, where code turnaround can be fast, mistakes do not take the company down and fixes can be redeployed quickly and easily, the requirements are not well-understood and change rapidly, and the architecture is not overly complex.

Many other projects don't fit this model, and people seem to think that so-called "Agile" (which even the creators of the Manifesto complain is not a noun), and mostly Scrum, is the sole exemplar of productivity.

The fact is that there are many hybrid development processes, described by Steve McConnell[3] long before the word "agile" became a synonym for "success", that may be more suitable to projects that have different dynamics.

An example of such a project could be one that does have well-defined requirements (e.g. implementing something based on an international standard) and will suffer from a pure "User Story" approach.

Let's be much more flexible about how we decide to develop, and accept that you need to tailor the approach to the nature of the project, based on risk factors, longevity, and other factors, and not on dogma.

And let's not underplay the extreme importance of a well-thought out architecture in all but the most trivial of projects.

[1]: https://en.wikipedia.org/wiki/You_aren%27t_gonna_need_it

[2]: https://en.wikipedia.org/wiki/Chrysler_Comprehensive_Compens...

[3]: https://www.amazon.com/Rapid-Development-Taming-Software-Sch...

comment 7y ago · link · parent

I’m currently 1 week into recovery from a painful shredded (the surgeon’s words) patellar tendon and repair.

On reading certain passages, my afflicted leg (and only that leg) got tingles and goosebumps and the rest of me just... cringed... in horrified empathy. I feel ill just thinking about OP’s pain, and knowing, as OP does, that this is nothing compared to the pain of certain other maladies makes me wonder how anyone can bear it.

comment 7y ago · link · parent

Not really such a leap. It’s pretty well-known[1] that unmanaged long-term stress leads to physical ailments (some of which can be deadly serious), including

- Anxiety

- Depression

- Digestive problems

- Headaches

- Heart disease

- Sleep problems

- Weight gain

- Memory and concentration impairment

[1] https://www.mayoclinic.org/healthy-lifestyle/stress-manageme...

12345
11