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

Did you mean "ironic"?

comment 9y ago · link · parent

Really glad to see intended support for remote engineers.

comment 9y ago · link · parent

As someone who uses these "old, archaic command-line interfaces" all day, every day, on Linux, Windows, and macOS, I find this characterization very entertaining.

This is an age-old argument (GUI vs command line), and I think each generation coming into computing via the GUI will initially agree with you, but after some time trying to do things that are slow and frustrating using the GUI, will break out into song and dance on discovering the ease and speed with which the command line can do them.

It's all about using the right tool for the job. GUI is awesome for many things, the command line is better for many others.

comment 9y ago · link · parent

Thing is, vegetables have varying amounts of carbs that can set back your low-carb diet.

For example, celery, broccoli and lettuce are very fibrous and humans don't really digest the carbs, so they have little impact. Probably only ruminants can extract significant nutrition.

On the other hand, in roughly increasing order of carb content, tomato (technically a fruit), onion, carrots, potatoes, corn, wheat products, and rice will reduce the effectiveness of a low carb diet, especially if dieters are told it's ok to eat vegetables all day long without specific guidance on what to avoid.

I agree that ultimately it comes down to the rate at which we put energy into our bodies vs the rate at which our bodies use the energy and don't store it as fat.

Unfortunately, there are confounding factors that make this a simplistic heuristic. Things like underactive thyroids, insulin response to blood glucose fluctuations, our basal metabolic rate, and similar things, many of which are often genetically determined.

I believe that a really important reason to do a low-carb diet with moderate protein and enough fat for satiation is that it is much easier to sustain as a permanent lifestyle change than a low-fat diet, which in my experience leaves one often feeling hungry and unsatisfied. And the permanent change is what is needed for long-term success.

comment 9y ago · link · parent

> Numerous studies show this not to be the case. It's bad for your mental health and it's bad for your work.

I've been working from home for 8 years. It is good for my mental health and it is very good for my work. Working in the office was the opposite.

So much depends on how studies are conducted, who runs them, and who pays for them. Perhaps, too, people like me were too busy working to participate in the studies.

comment 9y ago · link · parent

I suspect that it will be in a very long time.

For one thing, I've seen each generation of new managers forget or ignore the knowledge hard-won by their predecessors or the software body of knowledge. Oh, and ignore their current experts, too. I think it's a bug in the human wetware because it happens so often.

For another, it was explained to me when consulting at $giantcorp that sometimes - for example, regulatory compliance or competitive edge - it's more important to get a shitty monolith out there, bugs and all, by a drop-dead date than to save in the long run by doing a good job.

And as long as there are people out there willing to work for low wages fixing or rewriting the pile of crap, and it's profitable for $company, the practice will continue.

Or until someone can prove, with cost measurements on multiple large-scale projects implementing the same requirements, that the ROI - in bottom line $ terms - on a well-engineered system is much greater than the crappy equivalent.

I can't see that happening because of all the variables involved (team, skill, chance, cost, variance in interpretation of requirements, and so on), plus, who would pay for that?

EDIT - typo.

comment 9y ago · link · parent

You mentioned tracing. I'd like to expand on that a little.

What many people may be interested to know about Erlang is that you can log in to a production system, start a new shell running a tracer that listens on a localhost TCP socket[1], and use the dbg module in the production VM to trace calls and messages (and more) between any functions in any processes - in the running production system - and send them to the tracer node.

Done judiciously, the overhead is negligable, and the benefits are great. You can zoom in on bugs in real time.

I find the syntax of dbg match specs to be ugly, but it has saved my bacon so often it is so worth it, and it doesn't get mentioned that much, even though I feel it is almost as much a superpower as hot code loading.

[1] You use the separate shell to avoid accidentally crashing the production VM; if you do something boneheaded in the port-based shell, you can kill it and the production VM will just stop sending trace data to the dead TCP socket.

comment 9y ago · link · parent

I am sad for all the people who lost their jobs as a result of these failures, though.

comment 9y ago · link · parent

These are, IMO, exceptions. Most slaves probably got worked half to death, beaten, and generally abused. Certainly history tells us that many slaves simply died en route from where they were captured. I can't prove this, but it's much more likely than the fate of high-status slaves.

comment 9y ago · link · parent

I wonder if this is a Commonwealth thing? The "tall poppy" syndrome is well-known in NZ and AUS, too.

comment 9y ago · link · parent

The raven must have thought, "Nevermore!"

Sorry, couldn't resist the corniness.

comment 9y ago · link · parent

This is insightful. One test we can apply is to ask ourselves, "If I needed to stop working and quit my job permanently because <put compelling reason here, e.g. illness, old age>, could I do so without enduring a financial disaster leading to <something horrible, e.g. homelessness, relying on the kindness of strangers, suicide>?"

I suspect that, for many, if not most of us, the loss of the ability to earn income would be an unspeakably grave event. This puts to the lie that we have any real choice about employment, assuming we are one of the vast majority of people who is not financially independent.

comment 9y ago · link · parent

Everyone has choices, it's true.

The choices that are available, however, have an extreme variance from person to person. At the extremely shitty end, Viktor Frankl, while a captive of a Nazi death camp, worked out that when all other choices are taken from a person, the only remaining one is to die with dignity.

But it's a choice, right?

At the other end of the spectrum, choices may include where to vacation this winter or if the maid should be fired.

The bottom line is that the quality and quantity of choices vary so much, depending on luck and pluck, that it's a bit glib to say "everyone has choices", including, I guess, the choice between working a crappy, abusive, mean job or two to make ends meet, or starve.

comment 9y ago · link · parent

Ah, well, that's ok then!

comment 9y ago · link · parent

All employees should be kept as happy as possible anyway, shouldn't they? Why would anyone want unhappy employees?

comment 9y ago · link · parent

> hoist on its own petard

Trivial fun OT fact: a petard is an archaic word to describe a bomb or similar explosive device, so it would make more sense to write "hoist by its own petard", i.e. blown into the air by its own bomb.

comment 9y ago · link · parent

I think this is a very interesting point.

How important is it to be something of a generalist, who could answer questions like this at least in broad terms, as opposed to being purely a specialist who has little knowledge outside of their domain of expertise?

Would it be significantly helpful to understand more about the things that happen under the hood, as it were, of technologies that we use?

Would a developer who could at least kind of answer this question show an aptitude for broader thought and a deeper interest in technology, and be a potentially more valuable hire as a consequence?

EDIT: To attempt to answer your question, any collection of structured data, whether objects in a memory-based data structure, delimited text fields, or a DBMS file, could be considered a database.

In many data structures, such as hash tables or primitive key/value stores, there is only one key. If you want to find data based on a field that is not the key, you either have to search sequentially through all the records, finding matches on that field, or create an index on that field.

If the number of records is small and the storage medium is fast, a sequential search may be adequate. If not, an index is needed.

Creating an index generally involves scanning all the records in the database and extracting the field required for searching, together with the location of the record within the database. The location would preferably be a direct record number to avoid unnecessary indirection, but it could also be the primary key of the database.

The list of key values and locations is put into a suitable lookup data structure. This could be something as simple as a sorted list in memory, a hash table, or a disk-based structure like a B-tree, B+-tree, or one of many others.

In the most simplistic case, looking up a record using the index means searchng the index for the matching record locator, then using that to retrieve the actual record in a separate step.

Obviously this is a bit more complex for non-unique keys, but that's the general idea.

Finally, the choice of index structure has tradeoffs, because once the index is added, it must be maintained when records are added, deleted, or modified in a way that affects the index. If the db has 100 million records, having to add a new one to a simple sorted index and re-sort it could be a performance disaster.

comment 9y ago · link · parent

> The methods presented in this paper have many applications in law enforcement such as tracking, counterfeiting, and child pornography. The downside is that they provide a mechanism for a simple device, a printer or a digital camera, to spy on its user. A typical user cannot turn off these signatures, particularly the intrinsic signature, without very detailed knowledge of how the device operates. This could have dire consequences for many important uses of these devices in our society. For example a whistleblower who would like to share documents with a regulatory agency could be in danger in that their printer could be identified as the one that produced the documents. [1]

Prophetic words from a 2008 paper (PDF) [1].

This paper may be duplicate information, but reading this paper impressed upon me how many more ways there may be to spy on people than I could imagine (and I know about some existing things like side-channel attacks... how do I spy on thee? Let me count the ways.)

So don't register your printer with the manufacturer, folks; the serial number may be on every page it prints. Ditto for digital cameras.

Then again, is fighting for digital privacy a losing battle when at every turn, there are deliberately hidden bits of PII? Pun intended.

[1]: https://engineering.purdue.edu/~prints/public/papers/sp_arti...

comment 9y ago · link · parent

When I read about channels and various forms of IPC/inter-thread communication in most other languages, and remember the past pain of threads and mutexes in C/C++, I am so happy to be able to send a message in Erlang to another Erlang process (Pid) as easily as this:

    Pid ! {self(), 42}
And in the process identified by Pid, to receive the message:

    receive
        {From, Data} when is_pid(From) ->
            handle_data(From, Data)
    end
And beyond that, the process identified by Pid can be running on a physically separate host system - it's transparent.

Too bad we can't use Erlang for systems programming, but you can't have everything!

comment 9y ago · link · parent

Oh, this is just Trump sticking it to Macron for humiliating Trump by crushing his knuckles in that infamous handshake. /s

comment 9y ago · link · parent

This is my cue for a Tolstoy quote:

> “I know that most men, including those at ease with problems of the greatest complexity, can seldom accept even the simplest and most obvious truth if it be such as would oblige them to admit the falsity of conclusions which they have delighted in explaining to colleagues, which they have proudly taught to others, and which they have woven, thread by thread, into the fabric of their lives.”

comment 9y ago · link · parent

> it's completely irrational to fear the things out of your control.

Fear is the foreknowledge of (or of the risk of) something unpleasant happening to you. Foreknowledge of our inevitable death, over which we have no control (sure, we can try to prolong life a bit, or end it early, but the ultimate result is the same), induces fear, ranging from anxiety to terror, in large numbers of people - perhaps even the majority.

To me, it's irrational to fear events that are highly improbable, but in view of our survival instinct as humans, it's quite rational to fear something horrible that is absolutely going to happen to you, and there's nothing you can do about it - for example, being scheduled for judicial execution the next day.

comment 9y ago · link · parent

> There is reason to suspect that high U.S. costs are part of a deeper problem.

Maybe this is mere cynicism, but if the workers and materials don't cost that much more than in France, my immediate reaction is "excessive profiteering", or, to put it another way, "because we can, and nobody is stopping us".

The same applies to our unreasonably high education costs, and healthcare (although that's much more complex an issue, but at its root, it is too many fingers in the pie).

comment 9y ago · link · parent

Lmao. To one who was born and raised in Africa, this is both funny and, too often, lamentably accurate.

comment 9y ago · link · parent

> It does fall faster, if you drop both stones in the atmosphere; the heavier stone has more mass per unit of surface area, to better overcome a constant level of air resistance.

Not necessarily; for one thing, if the masses of the two stones are not significantly different, the difference in the effects of air resistance would be unmeasurable given the instruments of the day.

For another, the shapes of the stones are important. One with a much greater sectional density, oriented correctly, could fall faster than the other, even if it were lighter.

But that's just nitpicking. If I remember correctly, Galileo used inclined planes because there were only imprecise water clocks available to measure the passage of time. His choice of apparatus was brilliant :)

comment 9y ago · link · parent

Redeveloping large, complex systems in anything, let alone "modern open source tech", is much more difficult and prone to failure than one may think.

There are many factors that contribute to these difficulties, but tech is not near the top of the list.

There are many cautionary tales, including the $8-billion FAA AAS system rewrite failure [1].

Contributing factors include

- Regulatory processes

- Subcontracting

- Project management

- Politics and turf wars

- The extreme difficulty of reengineering a complex system when few, if any of the original designers and developers are driving it [2].

[1]: http://sebokwiki.org/wiki/FAA_Advanced_Automation_System_(AA...

[2]: https://www.dropbox.com/s/n0nud2xp2a9bxjo/Programming%20as%2...

comment 9y ago · link · parent

My memory is so terrible that I dare not tell even white lies, so I am forced to tell the truth, preferably in a way that preserves the requester's dignity, not just a blunt "no."

The truth is usually along the lines of "Sorry, I would like to be able to help, but I have too much on my plate right now and more keeps being added to it every day."

comment 9y ago · link · parent

> manager: That's an engineer's response. Just fix it!

Translation: I didn't actually require any answer other than "I am sorry, sir/ma'am, it will never happen again." Facts are irrelevant. I may not always be right, but I am never wrong, code monkey.

comment 9y ago · link · parent

You don't need to use a web-based password manager.

I use the standalone KeePass app across all my devices, and can paste passwords into apps with no browser access required. I believe KeePass is widely regarded by those who know more than me as cryptographically solid. The only pain point is keeping the databases synchronized across all devices, but it's not that difficult.

1
567
11