2,538 karma · joined Jun 24, 2008 (18y ago) · 662 submissions
comment 9y ago · link · parent
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
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
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 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'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
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
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
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
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
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
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
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
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
comment 10y ago · link · parent
(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
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
five languages in 7 lines of code -- how now to do web development : https://news.ycombinator.com/item?id=492321