[1] just got some bad news [2] all in all, I love working in JS when I have to, but I’ve worked in it long enough to know of at least very many of the foot guns.
2,211 karma · joined April 27, 2009
[1] just got some bad news [2] all in all, I love working in JS when I have to, but I’ve worked in it long enough to know of at least very many of the foot guns.
...of python or of anything else.
Well, with the possible exception of bash, which is my go-to for those first few rounds of hacking, and which sometimes gets me into trouble when I stick with it too long, unless and of course it is obvious that something else is better suited.
(Like two years ago when I wrote a queue management orchestrator for our core security product using C because it HAD to be fast, and since I am stronger in C than Rust. I would have preferred Rust, for traits and safety, but I didn’t know it well enough and needed to get to 1.0 fast, so C it was.)
Anyway, my point is that while perhaps wordier than it needed to be, TFA is spot-on: don’t use your favourite tool unless it also happens to be a right tool for the job (and there are almost always more than one right tool).
Seems like something we should all know.
William Smith deserves so much of our respect. Cf, e.g., https://en.m.wikipedia.org/wiki/The_Map_that_Changed_the_Wor..., which summarizes the most excellent book.
The dotting and crossing of Is a Ts, sort of like how users of social media platforms grant those platforms certain rights to their posts and comments in order to allow the platforms to copy/distribute/publish that content.
What benefits do they provide that are not provided by their secure “brethren”?
There, fixed that (with a bashism) for you.
Been that way for over 40 years. I can only figure that erectile tissue distorts the internal shape, especially at the “nozzle”.
No other fluids involved.
"One has no recourse should one refuse to accept cash in settlement of the debt", or something like that.
:->
However, there is no obligation to take when paying ahead of time, e.g., when ordering at a takeout counter, or otherwise as part of the offer and acceptance process, which is how all over the counter retail sales are characterized for legal purposes.
The only restrictions are on denominations, e.g., a business is not obligated to accept more than X coins of type T, etc.
If so, no: the article is about a technique for destroying long-lived PFAS molecules, which are extraordinarily stable and therefore long lived, and about which there are health concerns (they do very odd things to biological systems in very low concentrations).
Linked in the article is the research paper detailing the technique: https://www.nature.com/articles/s44172-024-00267-4
So we had to find another prefix for those machines; fortunately, tmux can have two.
This (space->@->NUL) is mentioned in the tmux docs, tbh.
The continuing question of perception, both of reality and of values, is a key element of all of that.
It’s true to the original, repeating parts of it without ever being the same. The River of The Matrix, or the Matrix of Thaddeus, if you will.
Is my sense of wonder diminished by understanding Rayleigh Scattering?
Not only “no”, but I would say that it is doubled or more by being able to appreciate the blue of the sky and the reflected blue of the water while understanding the mechanisms...
just like how my appreciation of both optics and E&M deepened tremendously when I realized that the former was just a simple expression of the latter...
the same “latter” that led Einstein to the Lorentz transformation to solve the problems of additive velocities causing ridiculous magnetic fields, and thus gave us SR.
I mean, wow, just wow.
My world IS enchanted, but by math and its wondrous ilk.
The Outpost
Master and Commander
The Martian
All four Matrix movies
The Godfather Trilogy, best in a single sitting (Connie’s arc is awesome, the cinematography of the third epic; the only problem is how much more of the outside world each of the sequels needs).
Greyhound
A Bridge Too Far (which has changed dramatically as I have learned over the last almost fifty years; I now see it as so subtlety tongue in cheek and cynical).
Draft Day. Possibly the best constructed movie.
The project and risk management literature have plentiful examples of this sort of thinking, including performing post mortems now, before starting anything: "Assume we are 2 years out and everything failed: What went wrong? How did we fail? Why?"
One of the things I like best about my current position is that the colleague I work most closely with (he's head of development, I'm a senior technical contributor sort of thing (it varies by project/week/day/need)) do this all the time, pretty much whenever one of us proposes a change or a new feature.
We listen to the other, make sure we understand, then we critique, find flaws, consider gotchas, but reasonably, not pathologically.
It's at the point where we will each sometimes start critiquing our own ideas, with the other defending.
It helps our work immensely.
Sure, sure, I do miss tpope’s surround and repeat plugins, but I have shell muscle memory and am happy(ish).
IMHO, of course, YMMV. :-)
North Winds Blowing, The Stranglers
The that this hexavalent chromium is ultimately of natural origin and not man made does not make this any less of a concern.
The work is based on the observations that a) life as we understand it needs oceans to start, that b) sufficient land mass is required for life to evolve to complex, large multicellular organisms, and that c) prolonged periods of tectonic activity appear to catalyze the evolution of large complex multicellular organisms.
There are more ways to do that wrong than right.
Of course, that is irrelevant to my point: even if you do store them all properly, you are still going to get attacked.
Don’t give people such terrible advice unless you also tell them how to protect themselves.
The other alternative is to support TOTP and let people use whatever authenticator they want.
What I do remember is that until I understood what I was trying to do and why (mostly error handling around edge cases, all specific to the app), I couldn’t really grok the various object management calls, but that once I’d done a few rounds of PoCing and RTFMing, everything fell into place.
This is a great list of pitfalls, absolutely, but they are more an argument for integrating shellcheck into your IDE than avoiding bash, IMHO!
I know, I know, possible religious war, but I find that bash+shellcheck is far more often the right toolset than switching languages to avoid the pitfalls.
The immense power and expressiveness and immediacy of bash makes so many programs and so much prototype->PoC->MVP progression so easy and effortless that it is worthwhile having tooling to catch the worst of the warts.
Several years ago, I had to write a complex unattended robust data transfer system in PowerShell. (I know, I know, without more info these “requirements” beg many questions, but they are all out of scope for this reply.)
I enjoyed the experience so much I switched all my shells, on MacOS (my DD) and on Linux (my most common work environments) to PWSH.
What I liked most about it was the power of passing objects in pipelines, and being able to extract/manipulate some of the properties of an object in the first filter and still have access to others, along with those of objects created by that first filter, in filters later in the pipeline.
Immensely powerful.
The consistency of commands, of error handling, and of object properties was also very nice.
Eventually, as the nature of work changed I switched all shells back to bash, as the older muscle memory asserted itself. PWSH as a shell made sense when I was working and thinking so much in that space, but when I left it, it was more effortful to think in PWSH than to resume bash.
There are times I miss it. There is nothing else in the shell space that comes close, or at least not close enough to justify the effort of switching.
Warning, all text, no diagrams....