skysight-inc/HackerNews huggingface dataset:
As a software automation engineer, I've made this argument in the past with regards to UI/systems test code bases.

Heavy modularization makes a ton of sense with utility code made to create and tear down fixtures, as well as with general utility functions like navigation through a user interface to get to the initial point of testing.

However, in the test, where you need to have complete understanding of the sequence of events in order to keep the test valid, it's much better to inline nearly everything that would affect simulated user or client flow even if that means duplication between tests.

That's exponentially more true when more than one person/team/org/whatever would be maintaining different tests or test areas. The last thing you want to do at that point is share test sequencing code, since it's so easy to subvert the flow in other tests using it by mistake.

It's a hard argument to make, because everyone gets SPOT, yo, Fowler rules, etc. They aren't wrong, but it really only applies when the interface is everything and how you fulfill the interface is irrelevant.

For some types of code--frame-accurate games being one, tests being another--the order of events is paramount. IMO, even mature patterns like Selenium's Page Object Model gets this one wrong by encouraging test flow code to live in POM methods.

There are absolutely times where optimizing for understandability and being paranoid about implementation changes is the way to go.
I own a smartphone and almost never receive phone calls, my friends know to text or email me. I also never reply to texts immediately, unless it is urgent. I had information overload for many years and in the last year it's been delightful to escape this stuff. I achieved it mostly by adjusting behaviour and communicating to friends my preferences, not by abandoning tech.

I still carry my phone with me everywhere. It is useful when sitting on a bus, in a bathroom, doctors office, etc where you need to kill time and don't have a book. Or for utility reasons such as GPS, weather, public transit times, and booking a Hailo/Uber.

I can use the latter without sacrificing my connectedness to the present world.

Do you feel that if you carry it around, you'll feel compelled to use it? Or people will start contacting you more? Is it worth the sacrifice of utility?
"I think the similarity between inlining for speed, and inlining to avoid thinking very hard, is more a qualititive than a quantitative distinction."

I think what's being discussed here is quite either of those - this seems to be "inlining for visibility" and possibly "inlining for simplicity".
I like the presentation. Very easy to follow along in the beginning, but you kinda lose me at 1:59. I think you can do a better job explaining this. Really think that the phone view next to the website view is a great touch.

With todoist if you complete a task it crosses it out, which really looks great visually if you are checking off a list. maybe if you check one of the rows, finished column, it crosses out everything in that row.
http://www.chipworks.com/en/technical-competitive-analysis/r... is the source URL, the EETimes article is a repost
CoreOS Machines Secured from Shellshock
"CAs won't alert you if someone breaks into your server and replaces your certificate. They won't alert if you if you accidentally push a config change and start serving the wrong certificate to customers... And they certainly will not alert you if you are using a revoked certificate in production."

You have valid points, my advice would be to make that part of the message as clear as possible. as a sys admin I could be a potential customer but then again, I already have to worry about certs I implement.
While searching for new social networks, I came across an app called Groopie. I'm still trying to figure out how to use it but you can record videos with your friends. You ping them to record. After they are done recording, their footage will get uploaded to your phone in seconds, then you can edit and blend the two to create one video. Seems like they are on to something!
this thread is why i love to read hn. super good stuff here
I agree, it would be technically difficult.

My point is that there is a mechanism by which you could profit: false market data. Whether you could remain undetected and whether this could actually be implemented technically, legally or logistically seems uncertain.
Exactly. If you are letting an attacker define not just the values of environment variables, but also the names, then you've already lost.

Forget bash. LD_PRELOAD by design lets you load arbitrary code into any child process. Many other environment variables affect libc and other common libraries in arbitrary ways. setuid programs must clear their environment at startup to be safe. Programs like sudo can restore that environment once the user is authorized for root access.
Note I never claimed unit testing should be disregarded (I practice it and recognize its benefits), or that static types catch all errors, or that add(x,y) was anything but a toy example.

Please note I didn't throw out add(3,4)==7, but instead pointed out it's terribly inadequate as a test. Additional testing tools must be employed; unit testing alone of this kind is not enough.

With property testing you're still not proving correctness. Tests cannot prove correctness. But it's a step in the right direction. Sure, maybe you have a function "add" that is associative, commutative, and has a neutral element, and it's still not integer addition. I'd argue your confidence in such a function will be a lot higher than if you had simply unit tested a few border cases. You can still do that in addition to property testing, anyway.

> The only thing that static typing provides, in regards to test cases, is this [example]

This assertion is wrong. Static typing done well provides a lot of things "for free", such as restricting incorrect behavior. For example, if you write generic methods you can rule out entire classes of misbehavior. It's not that you "type check" that you are not using something that is not an int (as in your example), but that you simply forbid entire groups of operations at compile time!

Here's another toy example to illustrate the point: what values can a function with the following signature return?

f :: [a] -> a

(For the purposes of this question, you can read that as "a function that takes a list of type a and returns a value of type a).

Now, repeat the exercise with a dynamically typed language. What values can the following function return? (If you want, for the purposes of this question, assume it returns an atomic value and not a collection).

dynamic_f(a_list)

This has an obvious implication on the effort you must make when testing either function.
Unfortunately not. There was a Mathematica-in-Julia-in-LightTable cameo which you might have found amusing. Maybe we can record in the future, but having everything be informal and low pressure gave it a really fun feeling.
Looking cool!
Yes. Worst case scenario let them upload pictures of their cats, hamsters, etc
but forbid them from uploading pictures of themselves.

If you're met with frustration and anger explain to them, with real world examples,
the perils of sharing personal information with the rest of the world and
why some things need to be private. If this fails, tell them, that when they
reach the voting age, they can diregard everything you say, toss your rules
down the bin and do as they please.
Switch statements are extensible in that you can add extra switch statements to your program without needing to go back and add a method to every class you coded, spread over a dozen different files. Its the old ExpressionProblem tradeoff.
Let’s Talk About Diversity in Startups
LG is a pretty big option to omit.
Kyocera
It's a really great phone, and I like that it's pretty small, so it fits well in my pocket + hand.
Sorry, but Could You Think of a Worse Combination Than These Two Brands?
The OnePlus One.
Heh.. clearly a poll created by an iPhone user.
Galaxy S4
-and-
Other - Blackphone
ZTE Open C - Firefox OS
I rarely saw my dad, at times.

He worked 2nd and 3rd shift for stretches until I was in 4th grade, then got a management position and put in 60+ hour weeks until he retired. While going to school at night. While occasionally traveling for work.

When he had to go in on weekends, which was often, he'd bring me and I'd sit on a spare souped up 386 in his office while we both worked in relative silence. I remember those times as fondly as some kids probably remember tossing a ball around with their dads. (It helped that we shared interests in sci-fi, movies, and computers.)

A stable, care-free life was one of the greatest gifts my parents gave me but it came at a cost - even mom worked 40+ hours a week, me and sis were latch-key kids, we never went on summer trips, dad missed "milestones", etc. Yeah, first world problems, but people (unbelievably) complain about this stuff.

I know people who saw their parents all the time - but moved around, went to public school (which were not good where I'm from), and whose parents fought about minor bills all the time or worse - whose parents now cannot afford retirement.

tl;dr imo providing a stable life for your kids > spending lots of time with them
other - A Flame with FirefoxOS
OCaml is used to some extent. Most notable industry user of an ML (in the form of OCaml) is probably Jane Street Capital.

F# is an ML descendent.
iMessage isn't the only reason I stick with iPhone, but it's a big one. It would be nice to see them open it up, though I doubt it will ever happen.
and C++11 btw ...
> However the fact that the script isn't setuid isn't really
> the concern for these shellshock, since a setuid program
> could indirectly run /bin/sh.

A setuid program which runs any child process without having first cleared the environment or authenticated the caller for root access is already broken by means of LD_PRELOAD.
Thanks for the feedback. We'll find a way to make the foreign table creation at 1:59 more intuitive.

Re: the auto cross out, one thing you can do is add a filter that filters by "Completed?" = unchecked, which will make each row automatically fade out when you check (you can create a different view to show the Completed books)
There's this [1] - and how would you know to change it. Then there's other cases where their API had bugs that made your private information publicly available for 3rd parties [2].

The reality is that once you upload your private data to Facebook, you are at Facebook's mercy in terms of keeping that data private. They have made a lot of improvements, but essentially you have to trust them to protect you.

[1] http://www.wired.com/2009/12/facebook-privacy-update/
[2] http://www.theverge.com/2011/05/10/facebook-apps-leak-person...
Nexus 5 as well
Motorola and LG are huge omissions for this crowd, which is probably why "other" is the second-most-voted at time of writing. OnePlus and Xiaomi might also have larger-than-typical (in the West, at least) showings here, too.
HTC One M7 with cyanogenmod
I'm not done reading but it seems like a very nice introduction to people not familiar with the function style of programming.

This is also one of the few document that can be converted from html to epub without much pain. It looks quite good with

pandoc ClojureDistilled.html -o ClojureDistilled.epub --indented-code-classes=clojure
My mistake. I incorrectly parsed this sentence:

"Permits would cost up to $1,500, even if someone was taking photos or video with their phone, and fines for shooting without a permit could be as high as $1,000"

as

Permits would cost up to $1,500. Even if someone was taking photos or video with their phone, fines for shooting without a permit could be as high as $1,000
This really seems like something that should be solved by the IDE.

In VS13 the
R-Click -> Go to Definition
interface is OKay... but it definitely could be better
Yeah, it was exciting. The Julia ecosystem is growing quickly. A few months ago I could more-or-less keep up with all of the issues on most of the important packages, but doing so now feels impossible. A lot of new packages are still at the "it works for me" stage, but there is an amazing range of things in development and maturity will come with time.

Beyond the main LightTable presentation and the generative art you mentioned, there were also lightning talks on:

- calling JITed C++ from the Julia REPL with Clang [1].

- spectrograms, audio playback, and tone generation with interactive manipulation from IJulia [2].

- Kalman filters [3]

[1] https://github.com/Keno/Cxx.jl
[2] https://github.com/ssfrr/AudioIO.jl
[3] https://github.com/wkearn/Kalman.jl
Show HN: AirControl, control AirPlay Mirroring from your terminal
I think I'm going to say that, if it's appropriately and rigorously tested during development... testing the god-functionality of it should be OK.

Current experience indicates however that such end-product testing gives you no real advantage to finding out where the problem is occurring, since yeah, you can only test the whole thing at once.

But the sort-of shape in my head is that the god-function is only hard to test (after development) if it is insufficiently functional; aka, if there's too much state manipulation inside of it.

Edit: Ah, hmm, I think my statements are still useful, but yeah, they really don't help with the problem of TDD / subsequent development.
Good to know! I started with emacs, but decided to use Light Table for now. Nothing against emacs, but I don't want to make things harder by learning a new language and a new editor at the same time. Aside from Light Table (and presumably Leiningen) do you have any other tooling recommendations?
5 UX Mistakes That Are Slowly Killing Your Site
Waitwaitwaitwaitwait someone gave Yo money? Yeah run for cover.
Show HN: Avoid the “read at” message on Facebook
Apple’s Broken App Store Review Process
A little of both. I know that I'm easily distracted and I would readily fall into the trap of letting my smartphone fill all of my idle time. I battle that in other places, but the battle itself is a nuisance, so I've started to avoid temptation altogether.

But I also know some people who will contact me frequently even if I ask not to be. "I don't carry a phone" and "I didn't have my phone on me" has turned out to be a good way to get that to stop, and it's nice not to lie to people I care about (even though I'd rather not talk to them several times a day).
If the government were to release the tech into the public domain, then they would be charged for the use of the technology. This has happened in the past when contractors charged the government for a system that was based on government developed technology that the government failed to patent. If they patent it, they can recoup some revenue, but they can also ensure that any products based on it can be used for free or much more cheaply by the government.
I develop for Android and have nexus devices, but my carry device is a Lumia 521 I got for $69 USD. Small & light enough to run with, smart enough to have a decent web browser / email experience - but simple and "just works". T-Mobile wifi calling is great too.

I'm bummed the successor (Lumia 530) is fatter though. I'll keep my 521 until it no longer works.

At $69, this is a pretty amazing device with Here Maps & Here Drive offline mapping and navigation.
New Mac Mini Finally Coming in October Alongside New iPads?
I could download it without issue using Transmission for mac.
Massive kernel, loads of code.

Impossible to read and understand.
Well, that's the really scary version of the scenario. Where a lot of the sketchy shops start vaporizing. They were the ones that were horribly managed, or had a product that only looked good when money was plentiful, but their catastrophic death signals to other investors that the market is dicey. Slightly higher end folks pull away, and the next tier of shops cave or weather it. This continues until you get to a tier that's stable enough that investors running doesn't destroy them. I'd wager the rate of pullback probably determines how far up the chain it goes. Rapid changes are more frightening and cause pretty sound relationships to collapse simply because the money is afraid the cancer will spread to them too.

Do we go to the doctor when we've lost 20 lbs over a year or over a week?
Thought experiment: if the subject of the article was a man (perhaps "Food Dude" instead of "Food Babe"), how much of the article would have to be rewritten or dropped entirely?
So I'm about half way through it now. I'm really impressed with how much information it's conveying in a succinct form. I'm going through Clojure for the Brave and True, and think this supplements it nicely.

There are a few typos, but the most glaring one was the incomplete python code underneath the "Code Structure" heading:

l = [1, 2, 3, 4, 5]

for i in l
i = i*i

for i in l
if (i mod 2 == 0)

print l

I assume the author wanted to show how the list was mutated. And those conditionals need trailing colons :)
The question is...how much tip? You don't know whether the tip they're paying is low, reasonable, or generous.

A profit-seeking corporation is going to minimize expenses as much as it can.
My personal favorite editor is IntelliJ IDEA Community Edition + cursiveclojure.com plugin (not affiliated with the cursiveclojure.com people but highly recommend it). I don't come from an Emacs background but from what I've seen and heard from Emacs people is that it combines all the best parts of Emacs when it comes to Lisp code manipulation.
5 Inconvenient Truths Indicating the Market Isn’t Ready for Release Automation
A pipe dream here would be to use both accelerometers at the same time and filter out much of the random noise resulting in much smoother accelerometer readings that could be used to calculate displacement.

(goes off and downloads Apple CoreMotion samples to see if they do this already)
We totally disagree. The ad-hoc nature of unplanned and ill disciplined thrashing away at readline is a terrible interface.

Dave Presotto put it best "Linux: by amateurs, for amateurs"
You're right, it wasn't the software as such (more like the design of the system).

I just read more about PIO and it's funny, it reminds me of a short story I read a long long time ago, written by Arthur C Clarke, I remember the scene in it where a pilot is remote controlling his big space ship or plane of some kind, while standing on the ground. But because the remote is going through a satellite, there is a feed back delay, say 1 second or so. So when he tries to compensate for a wrong turn, a flavor of PIO is induced and the ship crashes.
Think that particular story was written in the 40's, good foresight of Mr. Clarke.
Huawei is other ? rabble rabble rabble
They obviously don't represent workers. The USPS is one of the last big organizations where normal people can expect to have a retirement plan, even if they're disabled.

In February, 250 UPS workers walked out for 90 minutes to protest an unjust firing. UPS told them to keep coming to work, but every week they would randomly fire 20 of them until everyone was gone to give the company time to replace them. After months of campaigning against it, the workers got off with 2 weeks' suspension for what they maintain was a legal protest.

But the incident is indicative of what we might expect in a completely privatized parcel delivery industry. If the workers hadn't been unionized Teamsters, UPS would have probably gotten their way. This is the kind of working environment a lot of people in Congress are pushing for.

http://www.businessinsider.com/ups-reverses-firing-of-250-wo...
JSPy, I'm aware of what Y Combinator is pushing for. I don't have that yet. I've been vetting a contract programmer out of San Jose but he seems to be overloaded. I'm considering both contracting out and finding someone in the next few weeks... Of course that someone has to be as flexible as I am becoming. Why else do sites like this exist if it isn't to team up, share ideas and collaborate. My question for you is do you know anyone that would be willing to either do contract work or jump on board for Y combinator. I'll fly directly to the person for a face to face meet up to see if the fit is right. I've got time and motivation, just looking for the right person.
Post-it Notes Get Digitized in a Clever New App from 3M
Currently carrying both a Nexus 4 and a MotoX (the small one from 2013). The No Touch features of Moto X are unique to this date I believe.
Humorous weight loss picture
Jolla (Sailfish).
It makes me think of the "fabled" (if you will) copy machine, where you basically xerox a physical object. Obviously it's more complex than this, but it's exciting to think about where the 3D model and 3D printing industries are headed, and specifically with development of their intersection
It will be interesting to see what they're suggesting for the updating containers. NixOS?
No rumors, but it would make sense to come out about a year after they released the Titan black, which itself was about a year after they released the original Titan.
Ask HN: How do BitTorent Bundles work
I chose to learn both at the same time, and would recommend it if you're willing to buckle down for a month or two of frustration. I really feel like I further developed my ability to go head first into learning in a way I had in the past. Still learning a lot though about both. I should mention that I'm a freelancer; if I was an employee it might be hard to get a way with spending so much time learning rather than producing in the short-term.
nVidia released the first level cutdown (GM204) as the "80" part, while it really should be the 960 at most - the full/big Maxwell core hasn't been released yet.

Chances are the first fabbed version simply didn't work and they're waiting for the GM210.
It's kind of surprising that while iPhone got the most points, only two of 44 comments are mentioning it. It almost contradicts the common conception that people have that iPhone owners have a need to express themselves and talk about their phones. But maybe HN is just different.
By the area codes provided by EvanMiller (415 = San Francisco, 650 = Palo Alto) I don't think he meant "free first, then they started charging". I think he meant "got acquired" / "pivoted" "went out of business".
Also...

Are you in doubt if your server is vulnerable? just create this simple bash CGI file, and then get it called by us!

Just in case your apache did not have any bash CGI as usual :)
Both of your examples explode pretty badly once you start adding the additional Linux/POSIX code to fully match the functionality that the Windows stuff has.

Show me the full linux/POSIX code to open a file with different security access modes, with different sharing models, with different dispositions (when should the new file be created, if it should be created, and what should happen to an existing file with same path), with hinting to the OS how to handle the file (should it be encrypted, should it be deleted once all handles are closed to it, etc.).

Show me the full linux/POSIX code to open a process while setting the security ACLs and whatnot for it, setting its priority level, setting the environment strings, setting up the stdin/stdout/stderr file descriptors, setting the window position (if any), etc.

Linux/POSIX aren't nicer than Windows/NT--they're simpler APIs for a simpler world. That doesn't make them better or worse, they're just different tools.
I love being able to compile and use just about any software I could possibly need.
There's an interesting game programmer problem here, that is somewhat alien to a coder like me who grew up on the web. Where for a web coder, statelessness is the default, and we have to work to recover and recreate state between 'frames', game coders live in the run loop - and so the assumption is that you have a repository of persistent global state to act on each frame.

Having noticed that he has a problem when multiple functions are all interacting with that same shared global state, it's kind of amusing that Carmack's reaction is to reduce the number of functions, rather than remove the global state.