skysight-inc/HackerNews huggingface dataset:
> If I'm creating an HTTP API and someone else is writing the front-end, I'll create unit tests that spin up my API and make requests to it to ensure I get the correct responses.

That's not unit test though, rather integration or system test.
I think the fact that they even started this campaign without thinking that it could turn negative for them implies a great lack of empathy on the part of the NYPD management team.

I know cops get the empathy drilled out of them (lest they be reduced as effective enforcers of law) but I think at this point, if you're involved in this organization, you should be asking yourself just exactly what you can do to improve the people you serve. This is definitely not it.
He did mention fixtures, which speed things up dramatically, so I don't think he shares the same experiences with the Rails shops you are talking about (Who I assume do hit the database since the industry is in favor of factories). Of course fixtures vs factories is a different topic, but you are wrong in your analogy.
Given that it is a complete rewrite, breaking rust-http is an unnecessary evil; people are using rust-http successfully and I see no reason to cause them unnecessary trouble. Until Teepee's HTTP client and server are ready, rust-http will be maintained so that it can still run on Rust master, though it will not be developed any further; Rust does need the "old version" for now.
On the Admin side it has been easy to get up and running for testing, the upgrades are pretty painless and come on a time based release cycle. The docs are decent and there is a rest api and the company has been very responsive to tickets we file. And it is _significantly_ cheaper than github:fi.

On the user side it hits all of the big items and the interface is useable. It doesn't have some features like GitHub's image diff or gh_pages support, but for many things there are Stash plugins that either exists or you can write. And they provide an easy way to not leak internal url's while using gravatar (http://benjamin-meyer.blogspot.com/2014/03/how-to-stop-leaki...)

The biggest downside I have at this point would be that out of the box the permissions model is not as rich/robust as gitolite. Although most Git frontend servers are no where near as rich as gitolite.
Why face to face?

1. So they can read your reaction while they are talking and see if anything they said resonates, needs explanation, or requires adjustment. The result would be an agreement from you. It works well for negotiations, design discussions and sales.

2. Because the information may be privileged and/or sensitive and/or offensive if put in written form.

3. Because a management book tells them to get "face time"

4. Because email is just slow / not checked often.

5. Because they need a timely answer or have to juggle between multiple people.
I'm using the predecessor ODROID-U2 as a small home server. It runs Linux (Ubuntu via Linaro IIRC) and I've never had a problem with software I need not being available because it's ARM instead of x86. Basically, it rocks. Do get the MMC adapter and USB cable for setup, and have fun.
In English, synonyms are rarely equivalent. I can not come up with an example of two common-English words (i.e., not from a jargon set) that really are exactly the same, in all implications, off the top of my head. Some may exist, but in general if such a pair exists normal language processes will push the two apart in meaning anyhow.
I do not. Maybe that would be different if I traveled to the US often. But despite some of our similarities I see Canada as distinctly Canada and I do not live in America (America’s Hat and Canada’s Pants jokes aside).
Ah! An un-brainwashing from no other than Rails brainwasher in chief!

Rails has always had this fundamentalist/cult/group-think perspective on almost everything. No wonder they go overboard.
Stopped reading at "this is a series of posts by linkedin influencers" TBH, most of the time linkedin posts are only good if you want a laugh.
This looks like the alien overlords constructing ever-more-convoluted tests to see if the puny humans have evolved enough to learn the Higher Truths. Next: Flappy48 while juggling Bitcoins and finding a taxi during surge pricing?
We actually did this - we built our entire app using just jquery - and then we spent a month tracking down issues with applying state changes to the DOM before we gave up and rewrote the thing in Angular. We had a few bugs at first but they were quickly fixes and then we had had a much more solid application, since we only had to worry about keeping our data structures straight and the two way binding would take care of showing/hiding the elements, updating values, etc. Whole classes of bugs we were spending ages tracking down before which happened after a particular sequence events just couldn't happen anymore.

If you are doing something simple and quick by all means just use jQuery or plain JS - the advantage of the more powerful frameworks comes into play when building bigger things with complex scenarios happening. The challenge to make a quick front-end site is meaningless - the more meaningful challenge would be to write a complex real time application with both and compare, which of course we have already done.
I have an ODROID-XU which is a 8 core (in theory) 32 bit ARM chip. A few things I've learned along the way:

* You need to get a serial cable. The XU required a strange serial cable (ie. NOT the usual 3.3V CP2102).

* You'll need a lot of other stuff to make ARM usable: at a minimum: a high quality SD-card, SSD or eMMC; and a monitor which can handle all of DisplayPort, DVI, HDMI (since you never know which one will work, if any).

* ODROID kernel support is terrible. You'll get a kernel which works, but nothing is upstreamed or developed in the open so forget about ongoing support or updates.

* Everyone who's serious about ARM is waiting for 64 bit to become available. 32 bit hardware just isn't that interesting.

Lots more on my blog: http://rwmj.wordpress.com/?s=ARM
Go back in time with Street View
HBO on Amazon Prime
carefully undocumented?

I always use my iPad for just such situations........ I've learnt over the years that while others may want meetings undocumented its best to ensure you have comprehensive notes.
I think that is part of it. When I tried to TDD existing PHP code, it was pretty awful and I hated testing.

At the same time, I think when you design away as much complexity as possible at the product requirements level, as 37Signals proudly does with their products, it is hard to appreciate the complexity inherent to the requirements in other codebases.

I've seen this with other developers coming into large codebases with lots of complexity and scale requirements wanting to use a simple/naive ORM solution with no caching or worry about query speed/quantity. That solution falls over and they quickly learn that the requirements are more complex than a simple app with a few dozen users.

Basecamp is obviously at a high level of traffic and scaling complexity, but they still work to reduce requirement complexity which isn't always an option if you aren't the product owner.
I use bootstrap quite a lot and I have no idea what you're talking about regarding the class names. That probably wasn't a bootstrap-related problem.
Overriding the styles is a bit of a PITA, but using the LESS or Sass version solves this.
What You Need to Know About Twitter's Makeover
Quick question - are people listening to a lot of music through their laptops ?

do note I wrote "through" not "on" - which means that you may still have your music on your laptop, but you could be listening through your mobile (streaming through plex, dlna,etc)

I find the audio quality of listening through mobile phones to be far better than my laptop (and I have a latitude - the highest end of its generation). In general the music player is of far better quality as well (Poweramp, etc.).

The only drawback I can think of is battery consumption, which is easily solvable via a USB cable. It also works great because an incoming call will pause the music and resume when done - as opposed to manually pausing and resuming on the laptop.

And if you are on earphones with a mic, then you understand the true meaning of "gapless" - or do you prefer taking off your foam-covered in-ear 'phones every time you get a call ?
No one says that. Either you say it strangely: "50mpg" or you say it correctly: "5L/100km". If you use imperial units, you must invert every fraction in your life as punishment.
Much of the work done at my local state college is done in groups. This means that you have 1-2 people who are writing the complex algorithms, compilers, etc. And 1-2 who can't. You do zero solo-programming. 10 years ago, there was more self programming, but then the fail rate started going up. So, everything is in 'groups'.

As long as those who can't program memorize the terms needed for the tests (no actual programming on tests) they will graduate.

Also, they give you choices for some classes. For instance, you can do a Senior Project or internship. The internship is 100h, for most students this can be done in 3 weeks during may-mester. Someone I know is currently doing their internship at a hospital fixing laptops. The Senior project usually takes 2 semesters. The Senior projects vary from a website to client/server app to robotics.

Those who do senior projects are also encouraged to do internships during the summer as it is a good way to network (although no school credit is given).
Wouldn't that mean that the code would have a huge performance penalty when running on 32bit hardware?

I think C99's way of handling that is fine, if you want to use whatever native width happens to be on your hardware you just use int/unsigned, otherwise you have stdint.h.

Like C, rust could mandate a minimal range for each type in the standard, but setting the type width in stone seems dangerous to me, both for backwards and forwards compatibility.
Google's Street View now lets you step back in time
One of the LibreSSL blog posts linked to this rant about JavaScript, it goes quite nicely with the AngularJS rant:
https://www.usenix.org/system/files/1403_02-08_mickens.pdf
For me, the most helpful feature of AngularJS is the separation of DOM and data.

If you just want to use that feature, but you do not want all the framework stuff, you actually can. Here is my way of doing it: https://github.com/julius/AngularLite

Disclaimer: I actually like the framework stuff. I just made this to use it in an existing project (which is too big for a total conversion into the framework structure).
In that case markup your company information with the name, description and appropriate location and/or telephone tags and leave it at that. Google will try and place you at some location at some point and having some control over that is preferable.
To me, there's really only two choices. You can use someone else's framework, or you can create your own. For applications above a certain level of complexity you are forced to choose one of those paths. There simply is no way to avoid it. Both are valid choices of course, each with their own pros and cons. But don't fool yourself into thinking frameworks are somehow evil. What I think you mean when you say that is "other people's frameworks are evil" and your frameworks (that you build with libraries) are awesome. That may be true, but keep in mind, when you build your own framework, you now have become the maintainer and de-facto teacher for both your application and your home-rolled framework you created to build it. As long as you're cool with globbing on those responsibilities and you feel confident you can help other developers get up to speed on your custom framework's architecture, then it's a fine choice.
The security of the most popular programming languages
"Handling shutdown was a pain, making sure the windows closed down neatly and all the program’s resources were cleaned up properly without the program crashing."

Which must be why this program always refused to simply exit, preferring to minimize itself to the system tray instead!
I support the reduction of government to focus on this sort of thing, and that's why I call myself a libertarian and not an anarchist.

It concerns me that the Federal government is all our eggs in one basket, and people don't realize that doing dumb shit like blowing billions of dollars on programs that shouldn't even exist jeopardizes the whole basket... if our overbloated, overextended government collapses (and there is NO NATURAL LAW against this), it won't just take out the bloated overextended bits, the whole shebang goes down.

Sometimes people try to fling the "Oh, so, what about Police huh, you crazy libertarian?" at me, but at times I feel like I'm one of the only people actually taking the idea that government has certain core responsibilities seriously. Yes, we need police! Stop endangering them by stuffing every crazy-ass idea you come up with and decide call a "right" suddenly into the Federal government, without any apparent limit until it topples over!

We need to approach government more like engineering and less like a laundry list to the DC Fairy of everything we want in the world. One of the cores of any robust system is simplicity.
This really bothers me. I don't care if someone is "cheery" as long as they just do their job. People justify tipping service personnel (bar tenders, waitstaff) over them getting a fair salary because if they didn't tip "how would I get good service? There's no incentive without a tip." I believe some people believe "good service" means fakely cheery while to me it is "you brought me my food." If you aren't faking a smile and elevating your voice you are being "rude."
The most important thing in any type of sales is building some sort of rapport or connection with the customer/prospect/potential client, and it's way easier to do that on the phone.
One day business guys will be a dying breed and companies will be run by programmers only. And after that... singularity.
Which phones had 2 weeks battery life back then? Do you mean only on standby, or normal use?
+1 - that's an outrageously good book.
Imparting wisdom is a joy to practice and participate in, when it's done right. It requires both parties listen to each other and find commonality in the things that have brought them joy and sadness (to name two) in life. If you aren't finding those conversations with others - regardless of age - I'd suggest meeting more people.
Dumping a hex string into a `#include`d header let me down
Normally I'm all for provocative art projects, but I can't help being entirely put off by this one.
Agreed. The OP's point seems to be that he's asking for a high-level overview of what Phone Call Guy wants to talk about, but Phone Call Guy is pushing for a phone call. There's at best a mutual disrespect, and at worst Phone Call guy is being solely disrespectful since OP said (multiple times) that he wanted to get an idea of things before the phone call.
Thnx. You were not the flogger. I was referring to the handfull of people that were so pissed about my post they needed to downvote it to nothingness.
I wish a more thoughtful criticism of angular without all the vitriol was getting up-voted to the top of HN rather than this drive-by blog post. It's clear that anti-framework people are up-voting to validate their own world views.
Equality might be used for other things, e.g. a map with boolean keys, stuff like that. So I don't think it would be workable.

You could try removing Eq, Ord and TotalOrd from Rust's bool and see what breaks.
Computer Science Jobs
Come on, that's not fair. Absolutely nothing prevents someone from building a keyboard phone. OEM's are free to build any hardware keyboard they want, so long as it isn't a direct cut-and-paste copy of RIM's.

No one forced Typo to copy the exact RIM keyboard.

There's plenty of precedent here :

http://i-cdn.phonearena.com/images/reviews/117747-image/Moto...

http://images.dailytech.com/nimage/hp-palm-pre3.jpeg

http://www.digitaltrends.com/wp-content/uploads/2011/10/att-...
I remember that case. Semicolon and Sons sued Sammy "Sentence" Splice, saying his single-sentence sagas seemed somewhat salaciously un-salubrious.
This web page is one of those that is just unreadable on mobile.
> I find it odd the OP brags about remaining ignorant of a common topic in his field.

Yeah, the entire post had this strange whiff of anti-intellectualism.
> I haven't come across much about good design of tests (suggestions very much welcome).

I have yet to see a large-scale, popular piece of software written using TDD
Man, I have those in my own company. The sales guy that walks up to your desk and starts chatting about 20 minutes about a potential future customer.

Then a few days goes by and the customer buys our product and it very clearly states in the contract that 15 things will be done by yesterday even though it will take a good 100 hours to fix and the customer doesn't have to pay a dime, because it's "evolving the product".
The only aerobots so far deployed on another planet, no less!
>where booleans cannot be compared

Sounds like a way to make XOR be a big pain.

Or do you only want to ban comparing to literals? It can make things clearer to write something like "if bool==false" rather than "if not bool", especially when double negatives get involved.

Only ban comparing to literal true? Sure, go for it. But then the language is more complex for no real benefit.
What binary blobs are required for it to operate? I want a phone that doesn't require nonfree firmware in order for the 802.11 wireless chip to operate.
Mmm, felony charges. Knowingly misrepresenting goods and parcels is illegal.
In the United States this is considered a "normal" amount of politeness. In some other cultures it is considered weird and fake. Some Americans go abroad and complain everyone was "rude" to them not realizing the cultural differences.
Why moving toward more client-side JS complicates testing further?
Yeah, it looks like they are setting the census blocks small on what is farm, ranch, park, and reservation land. The Red River divides ND and MN and there is space there because of previous moves from flooding.
Actually, west of the mississippi (and assuming all of Louisiana and Minnesota) the population is only about 130 million - so those three states are about 40% of that population. Given the rapid growth of texas, colorado and arizona, and Nevada (well Las Vegas) in the last 15 years, it wouldn't surprise me if those three states would have been over half the population west of the Mississippi not that long ago.

As for within 5 Miles of I-5.. probably not, but within it's area of influence, for sure - the western parts of those three states are pretty empty, even by my midwest trained standards.
> In Ruby, unit tests stand in place of static compiler checks. I haven't heard a strong argument against them nor a replacement for them.

How about static compiler checks? :)
You're probably right. Also, I obviously should've said, "Except the first one is much more readable to me."

I definitely don't have a problem with the Go developers keeping out random syntax additions unless they think its a really good idea.

Along the same lines, I really miss not having `map`, `reduce`, and `filter` in Go. However, it doesn't seem like those would be efficient in Go, or that they fit in with as well with systems programming, which Go was designed for. So I can't hate them for not including these.
Show HN: Fitcasts – Taking Youtube workout videos to the next level
In bad sales orgs, the sales people may also be held to a contact quota that does not take into account their close ratio. He may be just trying to pad his contact numbers.
"Blank is dead" is the new "blank is the blank for blank".
I find that there are some disturbing similarities between the Java community and the Go community when it comes to features and culture. There seems to be an unwritten assumption that the language is perfect in its current form and any additional features are a source of evil (up until the day when they are added, in which case they are suddenly evidence of the language's superiority).
> they suspended my account for reasons unknown.

Unknown? I think it's pretty fair to say they found you abusing their referral policy [1]. I'm interested in you managed to get 5000 referrals (assuming each referral got you $20)?

[1]: http://support.uber.com/hc/en-us/articles/201830716-How-do-I...
Show HN : Create your own HackerNews
Mocks to me represent a different approach to testing - think London School of Testing vs Classic TDD. With Classic TDD, it can be difficult to test side effects in your code since its more focused on input and output.
It's easy to not use a C-based language and forget that there are many fundamental patterns that are still applicable, even if they look different. The purpose and intent behind a pattern is generally more important than the actual name used or the code structure. The factory pattern defines what it does (essentially code that creates objects without the caller needing to know the details), not the syntax behind it.

I see this happen all the time, even in functional languages.
Thank you Rob. Although there are perhaps some things to nit-pick about your post, I think you have expressed something important about recent changes (last 5 years) to attitudes in the JS community.
Richard Branson, founder of the Virgin group. A self-made man. I suggest you read his book, "Losing My Virginity" before you dismiss him as a "LinkedIn Influencer"
On small boards, the leverage created by a full-size USB cablehead often jostles the board around and makes it unstable, which is obnoxious. Smaller cables don't have the same problem.
All the guys crying about the prevalence of TDD are the ones who are lucky enough to live in a tech hub from a developed country. In my area I'm the only one who knows about TDD/BDD.

You want to know how testing is done here?

- 80% of projects have no testing whatsoever

- 20% are manually tested by students paid with 3$/hour

Unlike others, I would love to be surrounded by "TDD zealots or fanatics".
Thanks. I'm definitely not an expert at Go.
The "Platinum Rule" is already implied by the Golden Rule, unless you're saying that you would normally want people to ignore your preferences.
You'll need a lot of other stuff to make ARM usable...Everyone who's serious about ARM is waiting for 64 bit to become available

Huh? What does the processor core have to do with any of these details? There are plenty of usable ARM SoCs out there in real products doing real work. Running a media center shouldn't be the criteria for a 'usable' system.

I'd be more scared about the amount of developer documentation available for the Exynos, or what Samsung's roadmap is for the chip. If you want to play with one, cool. But would you design a 10-year product with it?

Go with a Freescale iMX board if you want a usable 32-bit ARM Cortex-A8/A9 with decent documentation, available Linux drivers, and people that can help online. You will never get mainline kernel for devices like these, so don't bother asking. But Freescale at least has a git repository available and it's well maintained.

My personal favorites are the SABRE Lite boards from Boundary Devices and the Wandboard:

http://boundarydevices.com/products/sabre-lite-imx6-sbc/

http://www.wandboard.org/
HBO programs come to Amazon Prime Video, May 21st
Meanwhile in JavaScript...
None of these are examples of functional programming except that you wrote some functions.
What in this post is irrelevant to entrepreneurs getting started today? It seems like pretty simple, standard business advice.
This simple table summarizes America's relative decline in living standards.