Better HN
topnewbestaskshowjobs
Log inSign up

GrumpyYoungMan

1,225 karma · joined Apr 21, 2016 (10y ago) · 354 submissions

Submissions

comment 7y ago · link · parent

> "So serious in fact that in May, the World Health Organization (WHO) announced that the next version of its handbook of diseases, the International Classification of Diseases (ICD11), will recognize [burnout] as an official “occupational phenomenon” that could drive people to seek medical care."

Eh, what? I thought ICD-10 already had a code for occupational burnout: Z73.0. (https://icd.codes/icd10cm/Z730)

comment 7y ago · link · parent

Read David Tribble's "Go To Statement Considered Harmful: A Retrospective" instead: http://david.tribble.com/text/goto.html . It contains the entire text of Dijkstra's paper and goes over its meaning in a modern context on a paragraph-by-paragraph basis. It's very well written and makes clear the "encourages spaghetti code" argument, while true at the time, applied in a era where basic control flow constructs that we now take for granted did not exist in commonly used languages.

comment 7y ago · link · parent

Elegant, tight, and efficient code mattered back in the days when a machine with a 20 MHz processor and 8 MB of RAM was considered a high-end workstation. You really had to understand what your hardware, your OS, and your compiler was doing in order to produce decent software.

Nowadays, such esoterica is relegated to the tiny niches of systems and embedded development.

comment 7y ago · link · parent

Giant beard? Fond of telling people that one of his grad students was the chief architect of the Pentium III? Yeah, I remember his comp. arch. classes fondly.

comment 7y ago · link · parent

The only game I can think of that was similar to the model you suggest was the long ago "Spaceward Ho!" series, which was uncomplicated but fun. There was no tech tree; putting money into each of several categories of research yielded incremental improvements in that area over time but occasionally one would get a "breakthrough" that would boost that area dramatically or provide a new capability.

I thought it was an interesting idea but it seems fundamentally incompatible with having a tech tree at all.

comment 8y ago · link · parent

It has been researched: Alessandro Forin's eMIPS research project was on integrating FPGA fabric as an execution unit.

Project page: https://www.microsoft.com/en-us/research/project/emips/

Research paper: https://www.microsoft.com/en-us/research/wp-content/uploads/...

Back then Moore's Law was still going full steam so there wasn't much interest but, who knows, maybe that will change in a few years.

comment 8y ago · link · parent

> Having a discussion with someone who quotes Dijkstra can be frustrating.

Agreed. Most of the time, it seems the pithy quotes are the only thing that the quoter knows about Dijkstra.

> You end up having to explain why blanket bans on goto don't make sense

For Dijkstra's GOTO quote specifically, there's a wonderful document by David Tribble named "Go To Statement Considered Harmful: A Retrospective" that does a line-by-line analysis of Dijkstra's paper and explains what Dijkstra's meant in the context of his time and examines where usage of GOTO still makes sense today.

http://david.tribble.com/text/goto.html

comment 9y ago · link · parent

You're talking about a GPS repeater. Such systems are commercially available to rebroadcast a GPS signal within a building where the signal wouldn't penetrate, but require a license to operate, IIRC.

As for countermeasures, well, whoever's holding the receiver is bound to get suspicious if they move and the reported position doesn't. :) Jokes aside, there is work being done integrating other sensors (inertial, compass, gyro, etc.) to do dead reckoning to detect errors in the position and motion reported by the GNSS receiver.

As an aside, "GPS" technically refers only to the positioning system operated by the United States. The generic term is "GNSS" (global navigation satellite system) and encompasses GPS, GLONASS, Galileo, Beidou, etc.)

comment 9y ago · link · parent

> If you RTFA, you'll note that jamming is different than spoofing.

Military GPS signals (P-code and future M-code) are encrypted, so spoofing is somewhat less of a concern for the military. See https://en.wikipedia.org/wiki/GPS_signals#Precision_code and https://en.wikipedia.org/wiki/GPS_signals#Military_.28M-code...

Outside of the military, both academia and industry are well aware of the potential for spoofing of civilian GNSS signals and have been developing proof of concept attacks and countermeasures for quite some time. See, for example, http://gpsworld.com/inexpensive-hack-spoofs-gps-in-smartphon... and https://www.ion.org/publications/abstract.cfm?articleID=1478...

comment 9y ago · link · parent

You mention the Zynq so I'd like to add that I'd add that Digilent seems to have recently released their Zynq-based 'Arty Z7' boards which provide a dual core ARM on the same chip as the FPGA and is also supported by the free Vivado design tools.

http://store.digilentinc.com/arty-z7-apsoc-zynq-7000-develop...

comment 9y ago · link · parent

ELI5, hmmm? Okay, I'll take a stab at it.

For some types of processing, it's vastly more efficient to implement specially-designed digital circuits to do the work instead of using a regular CPU. If the need is high-volume enough, these can be fabricated on custom silicon chips. Common examples are DSPs, GPUs, and custom Bitcoin mining chips.

For low-volume applications where it's not cost efficient to fabricate custom chips, there's a specialized type of "generic" chip known as a field-programmable gate array or FPGA. These FPGAs contain a grid of digital logic gates (to oversimplify a bit) and programmable interconnections that allow them to be configured to create any type of digital circuit. While it can't run as fast as a fully custom silicon chip, it's still fast enough to get a tremendous speedup where a custom digital circuit design is beneficial.

Now that Amazon has made EC2 instances with FPGA accelerator cards available, ordinary users with the need for these custom digital circuits now have access to these specialized devices without having to make the enormous upfront cash investment of purchasing and operating servers with these FPGA accelerator cards themselves.

Addendum: It's also worth noting that, as Moore's law slowly grinds to a halt, that building custom digital circuits using FPGAs for specific processing needs is one of the few promising ways remaining for getting a big boost in compute-intensive app performance in the future. By making these available to a wide audience, Amazon is effectively accelerating the speed at which this type of technology will make it to ordinary desktop computing.

comment 9y ago · link · parent

The theory is that a developer can estimate the approximate difficulty of a given task relative to other tasks and thus give a coarse estimate of how long a set of tasks will take. One is supposed to use this estimate, compare it against the amount of work actually accomplished in a given period, and then project ahead against estimates work remaining to get an idea of when the project will be finished. This is intended to help managers set expectations with customers and cut or adjust features if the date is too far into the future.

Unfortunately, what most organizations actually do is use the progress estimates to try to bludgeon developers into working faster, with entirely predictable bad effects.

comment 9y ago · link · parent

> I've also heard that code coverage is a terrible metric and can cause bad unit test practices, trying to cover all lines of codes instead of trying to test for specific behaviors. ... (quality of the unit tests might be questionable sometimes as we aren't testing for all behaviors only ensuring all code is covered) ...

Ugh, code coverage is _not_ a metric. Tell your team and your managers: "A high code coverage number is not the end goal; working code is the end goal." Code coverage simply tells you where you did and (more importantly did _not_) check for problems; the point is to consciously examine the code paths not covered and decide what unit tests are needed there, if any. It's perfectly fine for to say "This particular code does not need to be covered." or "This code path isn't practical to validate except in integration testing, therefore we'll forego a unit test and notify the QA team.", as long as the decision is reviewed and approved the same as one would do code review.

comment 9y ago · link · parent

Having been both QA and dev in my career (and vastly preferring the former), I beg to differ.

- TDD / unit testing: "Does it do the thing right?" i.e. does the code behave as the developer intended? This type of testing tends to be more internal than external.

- QA testing: "Does it do the right thing?" i.e. does the code fully satisfy customer requirements (including integration testing) and other functional and parafunctional requirements?

Certainly there is overlap between the two, e.g. the developers are working from their own understanding of the customers requirements, but they are not IMO the same thing.

comment 9y ago · link · parent

Just a helpful tip: mentioning being downvoted is against the HN guidelines and usually attracts more downvotes.

pkahler's sibling post also brings up an important side point: beyond the basic core, what you study really needs to be focused on what aspect of the software industry you want to be in or are likely to find yourself in. While I, too, encourage you to take C/asm courses or whatever your preferred focus is, the bulk of the jobs in the industry are in creating web sites and business systems (much of which are so-called CRUD apps; see https://en.wikipedia.org/wiki/Create,_read,_update_and_delet...). Even if you plan to do something else, a course in databases and concurrent programming will stand you in good stead as a fallback if your career doesn't quite go as planned.

comment 9y ago · link · parent

As others have suggested, get a copy of "Cracking the Coding Interview" and review the questions therein. If you can answer those questions easily, you'll have an easy time at the average interview.

If you want to prepare to interview at one of the top companies, then afterwards procure a copy of my secret weapon: Aziz, Lee, & Prakash's "Elements of Programming Interviews". The questions there are an order of magnitude more difficult. If you are able to apply the CS concepts you are learning to questions of that difficulty, all doors will be open to you.

comment 9y ago · link · parent

>MS "needs" (?) to prioritize "don't torment your users".

No, no they don't.

If the user knows what they're doing, they run Windows Update manually at times when it's convenient for them (e.g. just before going out to lunch) so that they never encounter a forced reboot situation.

If the user doesn't know what they're doing, they exactly the people who need to be forced to the latest update so they don't wind up inadvertently joining a botnet.

And, of course, there are ways to forcibly disable WU for really advanced users but at that point whatever befalls them is quite clearly their own responsibility.

So, win-win for everybody but the malware makers.

comment 9y ago · link · parent

>...but he'll have to play it the hard way

Ah, but the game developer still nails the player anyway. The "hard way" (playing for free only) in many of these predatory freemium games is often designed to require an enormous time commitment to keep up (e.g. events that require user intervention one or more times daily, time limited premium in-game items that have a high price in free currency, requiring lots of grinding, etc.) that the free user is trapped online constantly to provide a social enticement for more players to join the game.

comment 9y ago · link · parent

>The biggest problem is that there is virtually no piracy possible on the iOS platforms, and even on Android people don't install shady cracks because they've been bitten by premium-calling trojans.

Ironically, game publishers have turned to the freemium model because it's one of the few models that's both profitable and resistant to today's ubiquitous piracy.

>Also, with a PC or console game I feel I have something valuable - not just the look and feel, where no tablet game can ever beat a real console, but also a physical medium where I know that I can reinstall the game even a decade in the future...

Not really. If/when the services for your PC or (particularly) console game go away, your ability to access patches, including the now de rigeur day one patches to fix last minute bugs, as well as DLC goes away with it. Online service for the Sony PSP and original Xbox have ended already, for example.

It's one of the reasons I'm very particular about buying games from GOG whenever they're available there vs. other services, since those games are DRM-free.

comment 9y ago · link · parent

>Windows has two control panel apps. One in the Windows 8 app style, and the old one from Vista and up that has been mutilated repeatedly.

However, unlike others, MS is in the process of gradually cleaning things up and updating their UI to to comply their new UI standard. Change is a slow and delicate process when high levels of backwards compatibility is a must.

comment 10y ago · link · parent

I'm a big advocate of Agile but at the same time I'm leery of joining teams that say they do Agile. Why? Because they usually mean, "We do standups and burndown charts and that's it." It's cargo-cult Agile, at best, and micromanagement by story point, at worst.

Football teams don't do standups saying "I will run X yards". Each and every player on the team

-knows precisely what the objective is

-knows precisely what his/her role is and is capable of fulfilling it

-knows what s/he needs to communicate to other teammates for them to fulfill their roles and does so promptly

-is capable of assessing what needs to be done next given the current situation on the field without having to be told and takes on that task on their own initiative

-doesn't have anyone breathing down their neck saying "A point must be scored by X:XX on the clock or else!" regardless of whether the tactical situation makes it possible

Together, such a team functions like a well-oiled machine. _That_ is what Agile is trying to teach. But more often than not, few, if any of the personnel or business conditions are met to make it possible and so it's a painful, miserable charade for all involved.

I have seen Agile work exactly once in my career; it's absolutely beautiful when it does.

comment 10y ago · link · parent

>By "live", I mean "do the optional parts of life", like vacation, date, spend money on hobbies, rent a place other than the cardboard box under the bridge, etc.

If you're hit by a financial emergency, those things are exactly what you won't have the money to do anyway. At least now you can make decisions about what to cut while not under stress and the impeding deadline of bills coming due.

Pay out now or pay out much more later; it's your choice.

comment 10y ago · link · parent

>6 months living expenses is on the high side

Not at all. Whatever causes the emergency is likely to come with unexpected costs of its own, so 6 months salary is more of a minimum in my opinion.

comment 10y ago · link · parent

The National Society for Professional Engineers, which, among other things, is the body that runs the exams for licensing professional engineers in the United States, has a similar code of ethics:

https://www.nspe.org/resources/ethics/code-ethics

comment 10y ago · link · parent

No, you aren't. I've also seen (and done) C++ used as C with classes in embedded systems development, where you really need to be sure that the compiler isn't doing something you don't expect.

comment 10y ago · link · parent

Visit Candlepower Forums (http://www.candlepowerforums.com/vb/content.php). More than you ever wanted to know about LED flashlights.

My personal recommendation would be FourSevens' Quark Click (http://www.foursevens.com/products/QK2A-X-AE-24). Takes 2 AAs, outputs 336 lumens, and has very solid construction.

comment 10y ago · link · parent

>When was a notebook ever the choice for running multiple VM's or heavy editing of video?

There has been a category of laptops that are classified as mobile workstations for quite some time now, including IBM/Lenovo's retired W5xx series and current Pxx series and Dell's Precision laptops. The MacBook Pro is (or was) considered to be Apple's equivalent.

comment 10y ago · link · parent

HDLs and FPGAs, such luxury. In my undergraduate days, we had to design a 32-bit processor by laying out individual transistors by hand (n-wells, p-wells, polysilicon gates, and metallization layers) in a 25 micron CMOS process with two metallization layers in very little chip area and then prove that it worked in simulation. It was like Tetris from hell; I'm still proud of the compact barrel shifter design I came up with. We also had the option, which I will forever regret not taking, to have the chip physically fabbed as well, as long as we agreed to do the work to validate it afterward.
1
567
12