Better HN
topnewbestaskshowjobs
Log inSign up

jackhack

2,538 karma · joined Jun 24, 2008 (18y ago) · 662 submissions

Paper shuffler by day with a background in embedded development + robotics, realtime, oldschool Windows from v2.1, Apple from the ][+ days onward. Currently in the "indifferent" stage of my oscillating love/hate cycle with Apple.
Submissions

comment 9y ago · link · parent

It's not a pejorative. It's a common phrase meaning "the quality of your output is only as good as your input data".

In this case, input data was skewed/biased/inaccurate for a number of reasons (sample choices, underreporting, etc.). Thus even the best predictions were wrong.

comment 9y ago · link · parent

Compsci 101. Garbage in, garbage out.

comment 9y ago · link · parent

I'm learning Elixir at this moment.

As Elixir is built upon Erlang, I found "Programming Erlang, second edition" by Joe Armstrong to be a gentler introduction.

After 20+ years of OO (and my mental models built upon C and assembly), functional programming and Erlang's model built upon immutable variables, pattern matching broke my brain for a few days. I just didn't get it.

However, I didn't stop. I am now bouncing between both books and it's beginning to sink in.

comment 9y ago · link · parent

I'm suspicious based on something you said about the interviewers being disinterested and unenthusiastic. I am cynical, having seen this process played out many times, and having wasted more than a few days interviewing for jobs I had zero chance of earning because the employer had already (yet unofficially and potentially illegally) chosen a candidate. Let me explain:

What you've described sounds to me like a setup for hiring an H1B employee. The employer is legally required to interview everyone who meets the requirements, and must hire qualified domestic employees if they are available for work, but the employer will look for any reason to disqualify domestic candidates.

A whole industry of consultants popped up a decade ago that coached companies on how to use this "loophole" to favor H1B over domestic employees (which is on it's face, illegal. If a US employee is available, the employer must hire him so the trick is to find a way to disqualify this domestic candidate.)

Or maybe they already had an internal candidate and were required by HR to interview some additional people (e.g. you) before they discover, to everyone's surprise, the internal candidate is the very best one for the job. "Going through the motions" to interview others when their mind was made up before the job description was even written.

EDIT: Just so it's clear, I'm not saying Amazon does these things; and I don't know anything about this particular case. I am saying this sort of faux-interview happens in the industry, and has the same "feel" of the interviewers simply going through the motions.

comment 9y ago · link · parent

I learned C from Kernihan & Richie (K&R) under supervision of experienced developers. I was really lost for a few days, the book is kind of terse. I had been developing in assembly for several years, so C felt like a really high level language. I still recall being baffled by pointers and handles, dealing with segmented memory (this was 386 days, Turbo C on the PC, MPW on the Mac for C & Pascal) It was about a month before things "clicked" and pointers made sense.

I think the follow-up C book I read after that was "Learning C". I don't recall the author's name(s) but I think it was from two brothers. Dan, something? (I'll check my bookshelf when I get home tonight and update here...).

I learned C++ initially as just 'C with Classes'. It was informal, by joining a C++ project already underway, and following the senior developer's guidelines. Instruction was informal, and under supervision of others, yet I hadn't made a complete mindshift to OO until probably six months to a year after using it.

I liked "Thinking in C++" (Bruce Eckel @ http://mindview.net/Books/TICPP/ThinkingInCPP2e.html ) quite a lot -- in fact I re-read it several times about six months apart and it seems I always pick up some new nugget of knowledge every time through. That or I forget what I don't use. Possible.

Keep in mind the newest of these is a decade old, at best. Surely not "modern" C. But after completing a basic tour of K&R C, a reader should be ready for the book at the top of this discussion. And that will transport them into this century.

hope this is helpful.

comment 10y ago · link · parent

I wish I could like this book, but after reviewing the first chapter I can only imagine the confusion of students. I support very much the idea of breaking the book into levels, but it attempts to cover far too much, far too quickly and I don't believe this book would be useful for those who are not already familiar with the language.

I've been writing C since the late 1980s, moved to mostly C++ by the mid 90s, C# in the 2000s, and now I've come back to C. Most recently built some realtime components and drivers, having to drop back to C77. I mention this as I've taught many colleagues along the way and I'm sensitive to the places where beginners tend to get hung up with problems and I've come to anticipate many of the questions along the way. Let me take a moment to illustrate the base of the problems i see:

"Too much, too fast." The best example is right on page 2: a program which demonstrates a complex printf format string, along with arrays and loops. I can't help but sarcastically ask "Are you sure that is how you want to introduce someone to the language?" A beginner's eyes will glaze over.

Seriously, the way to introduce the language is simple examples. Explain the main is the entry point where all programs begin running, and that main returns it's success or failure to the operating system (or other program that called it). 3 lines of code.

Then add a SIMPLE print, if you wish, or a variable declaration. Int. Float. char. again, it MUST be simple. Introduce loops. Then show how to move some functionality out of main into a subroutine/a new method/new function, how to call that function, and return results. Talk about header files, etc.

From there, dive into the rest of the base language... talk up arrays, memory management, heap/stack, pointers, libraries, exceptions, etc.

But this is only my experience, and I'm sure that it is different for others. Kind regards.

comment 10y ago · link · parent

No, that's a good point. My intention was to use it as an example of distinguishing regional dialects, accents, etc. but also native speakers from second-language speakers.

comment 10y ago · link · parent

I'll go with Michael Savage's definition. A country is defined by language, borders, culture.

Presumably, if one demonstrates mastery of language(1) and cultural knowledge(2), he can be assumed to be a countryman.

1) This practice dates back to biblical times. "Shibboleth": mid 17th cent.: from Hebrew šibbōleṯ ‘ear of corn,’ used as a test of nationality by its difficult pronunciation (Judg. 12:6).

2) Common example: During WW2, if a suspected spy were encountered, mastery of language and accent may not be enough to assess his status. Cultural questions were asked: Where does the NY Mets play? What's Mickey Mouse's girlfriend's name? Questions could also be about celebrities, movie stars, music, novels, etc.

comment 10y ago · link · parent

A resource for tech workers struggling with depression:

https://forums.osmihelp.org/ (the former DevPressed.com ) "We are a non-profit org (just applied for 501c3) that works to improve mental wellness in the tech industry."

comment 10y ago · link · parent

Last year's technology, at tomorrow's prices. A $200 price bump for an old design? no thanks. I suspect the secondary market for good, clean, used 2011-2015 MBPs (and replacement batteries) will be booming for some time unless Apple corrects course.

comment 10y ago · link · parent

There has been a "hertz" war in the bagpipe world for the past 200 years with the pitch raising steadily higher over the decades. Ancient pipes' "A" were historically tuned at 440hz, but modern pipes are tuned around 476-480hz!

https://en.wikipedia.org/wiki/Great_Highland_Bagpipe

comment 10y ago · link · parent

This is brilliant!

I've failed more than once to wrap my stupid brain around lisp but after reading your code, something clicked. I dare say I think I get it! https://github.com/marcpaq/arpilisp/blob/master/arpilisp.s

It's all extraordinarily clean and clear (and must set a new world record for most thorough comment --1120 lines!)

comment 10y ago · link · parent

Atlas Obscura - a collection of the world's most interesting/peculiar, and downright strange places. It's like a marriage of a world map + Ripley's Believe it Or Not.

www.atlasobscura.com/

comment 10y ago · link · parent

Neat idea, but I'm put off by the gratuitous profanity: >>you exercised 5 of the last 7 days. Dammmnnnnnn! Keep kicking ass.

Not everything has to be edgy. Can't you simply say "Great job!" or "congrats" ?

comment 10y ago · link · parent

Since we're trading "I failed" stories...

I spent a weekend tying Tesseract together with Tekkotsu (the amazing open framework for the Sony AIBO) in an attempt to teach my robot dog to read. The eventual goal being to hook up the output of OCR --> Text To Speech (TTS) and have him read to me.

Alas, the low resolution of the camera was an insurmountable problem. Poor Aibo needed 40-point fonts and I practically had to rub his nose in the book. Not exactly the user experience I was aiming for.

Never got around to the TTS part.

comment 10y ago · link · parent

Funny, I was thinking of Petzold's book when I wrote that. +1 for mentioning it!

I still say there are that many layers of abstraction, maybe more. Individual bits, ganged as words, with logic to treat as such, and ability to store and move along a bus. Then you add the ability to act on data: Control logic, arithmetic units, caches, and interpret data as instructions -- microcode running in the CPU, and processor instructions.Now move up to main memory, storage subsystems, networking, graphics (GPUs!!) etc. etc. etc. That gets you through the hardware. Now add software: BIOS, operating system, drivers, user space code, compilers, interpreters, it just goes on and on. And for every one of these giant groups of something, there are just so many logical groupings and abstractions.

It's like individual cells in a body, forming organelles, forming organs, forming creatures. So many layers of organization. Amazing beauty.

But always at the bottom of the pile, there is a switch.

comment 10y ago · link · parent

Isn't that the best? Hundreds-of-thousands of layers of abstraction, but if you dig deep enough, it all comes down to a switch being either on or off. That's it.

comment 10y ago · link · parent

Now struggling to resist the urge to upgrade my sad old analog oscilloscope. Thanks, guys!

Seriously, though, this is by far the most interesting series of articles I've read in at least 10 years. Digging in and understanding equipment from decades ago, where everything is potentially questionable is a heroic effort. It's like all the good parts of Radio Electronics & Byte magazine combined. A mystery who-done-it for nerds.

comment 10y ago · link · parent

Similar experiences here, spoonman.

A computer in the 70s/80s was a serious expense, similar to buying a nice used car, or a year of state college.

My folks bought me an Apple ][ around 1980. $2500 bought : 1mhz, 48k of ram, 1 floppy drive, a 9" Sanyo monochrome monitor, and what seemed like an endless universe of possibilities. The next six years were a blur of Assembly (Lazer Systems Interactive Compiler), and Applesoft Basic, trying to unlock the secrets of that machine and write my own games. It was magic! I am 100% certain that $2500 investment by my folks is the reason I have had a career in software.

I remember riding a 10-speed bike downtown to Computerland to buy an individual floppy disc @ $5/each. The university bookstore only sold Gorilla brand, and they were around $7 each.

Imagine the joy when I learned to use a scissors (later, a nibbler tool) to cut a notch out of floppy case so I could use both sides. Like finding free money!

Now a RaspPi Zero is $5 and information is limitless. This is a gilded age.

comment 10y ago · link · parent

I don't understand your complaint. There are mature regex libraries for C found with the obvious Google search. Source code included. Why would you not just pick and consume one, as you would in Python?

Overall though I think what you may be seeing is simply the stratification of software development; what began in the 70s and 80s has come to fruition. There are different planes of existence, like thermoclines in the oceans. A developer may (and is likely to) live in one forever, without crossing above or below. Each has its purpose. While I wrote my own database and rendering engines in the 80s as part of applications development, I wouldn't dream of it today unless there was a very, very good reason. Same goes for network stacks. Or math libraries. Memory managers. Etc.

Sure, coming from the Python ecosystem, you will feel as though there is a shortage of auto-pilot-like assistance, but you must realize you are in a very different world now - Embedded work is (frequently) focused on predictability, responsiveness, efficiency, and even moreso with realtime work. You are the engineer in charge, and all the safe boundaries and cushions of the interpreted language world are now missing. Want to REALLY feel naked? Drop down to assembly on any platform and try to emit a simple "hello world." For those who have never done so, it's a humbling experience but rewarding.

Remember that C was designed as a "universal assembly language", easily portable to different architectures and close (enough) to the metal so the programmer can have full control over the machine. Best analogy I've heard: C is like a chainsaw - used carelessly one can cause enormous damage and destruction, but in the hands of a skilled/experienced craftsman, very clever solutions are possible.

comment 10y ago · link · parent

Brother is playing the game, too. My 3-month-old Brother MFC (printer, copier/scanner) just refused to recognize the generic ink cartridge I bought off of eBay. I had to pry the RFID(?) chip off the empty Brother cartridge and hot-glue it to the generic cartridge. Now it works.

comment 10y ago · link · parent

Because, from healthcare, to consumer products, to software, to books, the US is paying full price to subsidize the cost to much of the world. The US is the profit center that makes possible the steeply-discounted-almost-free sales elsewhere.

comment 10y ago · link · parent

I fail to see how this is technology or startup related, and therefore appropriate to HN. Seems more political/financial so not a good choice for HN (especially frontpage).

(edit: for the downvoters... https://news.ycombinator.com/newsguidelines.html "If they'd cover it on TV news, it's probably off-topic." but do what you must.)

comment 10y ago · link · parent

Trust.

Performing the exact opposite of the stated and expected purpose of the application, for money, is a violation of trust. There is an implied belief that a product should do what it claims (and its name clearly states a purpose -- ad BLOCK), and the plain English reading of the title makes that pretty clear.

Imagine a virus scanner that only blocked those viruses that didn't pay up.

comment 10y ago · link · parent

Good post which jogged a memory for me, HN discussed this very thing 7.5 years ago:

five languages in 7 lines of code -- how now to do web development : https://news.ycombinator.com/item?id=492321

comment 10y ago · link · parent

I think it was brave to say, and a valuable addition to the discussion.

comment 10y ago · link · parent

I have to ask -- is this almost-purely political topic appropriate for HN? I don't see the connection to technology or startups.

comment 10y ago · link · parent

One simple question: Did NASA-GISS alter datasets to create a trend that is the opposite of that shown by the unmodified data?
1
1920212223