skysight-inc/HackerNews huggingface dataset:
- Organized code (into modules)

- Explicit dependencies (instead of using the global scope for communication)

- Easier to reason about and test parts of the code

- Errors are properly isolated in a module

The post is putting module loaders (requirejs) and "using modules" (e.g. commonjs) into the same box. With browserify you end up with one or maybe two large concatenated file that you then place in script tags at the bottom of your HTML. There's no "instead".
When I used to work with my designer friend, he would tell me to do things like that: increase this padding by 5px, lighten the color by a little, slightly decrease the border-radius, etc. One by one like that, I find it hard to follow and it doesn't feel like anything really looks different -- until I compare the finished product with what I originally made by myself.

Anyway, slightly OT: the screenshot looks like a Google page. Does anyone know which one? I really want to know what difference the 3px makes!
note that if you use queues it works okay ;-)
I didn't have the finger energy to type it, but this call to action struct me as an organization that is sitting on golden franchises with a vacuum of ideas.
The current President may be clueless on this, but I'm sure that if the rest of America were asked whether they have a more special relationship with Britain or France (be they military members who share bases, business people who do far more inbound and outbound investment with Britain than with France, academics who collaborate far more with the higher ranked Oxford and Cambridge than any French Ecole, or just regular Americans who watch 'Sherlock' and Monty Python and listen to Britpop) that America has a more special relationship with Britain than France.

No offense to France as I am sure they prefer it this way anyway ...
This is why I love Hacker News, I can ask a question about getting a lego robot to beat my favorite cell phone game and there's someone watching who has done it.

Would love to hear how it goes! I'm sure a blog post about that would be front page HN material.
producthunt.co
Well nothing in my statement says 'as a general principle.' In fact, I specifically said that in a genuinely free market, profit margin is irrelevant (it could be 2% or 100%). I agree, but they aren't working in a free market.
On my iOS6 4s, the slideshow looks like all of the text jumbled in a pile for just an instant. Then mobile safari crashes...
I read assertion after assertion and kept waiting for that 'why' from the title.
Latest Data-Processing Benchmark: Redshift, Hive, Shark, Impala, Stinger
Um... I don't know what module system this guy has been using, but I use Require and none of these complaints gave me any pause.

Point 1: Chrome Dev Tools has no trouble whatsoever with AMD. It remembers breakpoints across page-loads just fine. And there's no mismatch between what I see in my source and what I see in the browser, because I load up the un-minified source files for development. Seriously, if you're trying to debug compressed files, the problem is not your module system.

Point 2: This is an argument in favor of module systems.

Point 3: This is the only one that's even slightly valid, but it's only a problem when starting up a new project. Once your Gruntfile is in order, the workflow is simplified - I no longer have to put that extra script tag in, I simply add more files to source, tie everything together just like I would in a desktop app, and they magically appear in the browser.
I've had to do a lot of this recently for CodeCombat's transpiler, Aether: https://github.com/codecombat/aether – it uses Esprima, Acorn, JSHint, and a bunch of other JS tools. There's a ton of great stuff out there, and it's easy to put them together since they all operate on the Mozilla SpiderMonkey Parser API abstract syntax tree format.

I like node-falafel better than estraverse, which is more concise to use: https://github.com/substack/node-falafel

If anyone likes this stuff and wants to write an open-source, in-browser parser from another language like Python, Haskell, or Ruby to the Mozilla AST format, we'd love to make it worth your while. See https://github.com/codecombat/codecombat/issues/72 and then email me to work out an arrangement.
I'd like to do it without altering the app, which makes it more like the robot is playing the game not cheating it. This limits me to processing the game's output in real time.
Off-topic, but that's not how Spanish and Latin American names work. His "primary" last name is Gutiérrez, not Hermoso.
jQuery: https://github.com/jquery/jquery/blob/master/src/ajax.js

ACE: https://github.com/ajaxorg/ace/tree/master/lib/ace
Looks interesting. Any links to the actual talk?
When you JS codebase get bigger, it will benefit loading pieces of code when needed. I.e. instead of loading one giant chunk of minified javascript covering all possible states, you load some "global"/"universal" js file and .js file used to render current state. When state changes - another small .js file get loaded and launched.

While all of this can be done using global variables and inserting <script> tags when you want to load module and wait for callback to fire, or setInterval check for module to be loaded, all this already done for you in libraries like RequireJS.

I would say it this way - yes, on small projects you can get away without using more abstract approach to split your project in pieces, but having module-based framework put into project early will allow you to scale code when you application get bigger.
for the record i really dislike the sidebar of that site. ;-)
Indeed, they both were developed separately as a reaction to the BitKeeper drama.
Isn't this the same as the $30 "activation fee" that almost all cell phone providers charge? Not for anything but just to add a fee for the hell of it? Because I can fee?
The main take-away from my original comment should be "never destroy data". You may write new data, but you may never delete or overwrite data. How you design the database after that is up to you. The particular example I used is of course not going to be good for enforcing, say, uniqueness of email addresses across users.

It has tended to make me really consider the notion of uniqueness within a database. What does the unique constraint mean? I think that people think of uniqueness to mean "at this point in time", but if you enforce it in the database, it means "for all time." In relational algebra, the unique constraint is really about enforcing a candidate key, a field that could satisfactorily be used as a key, but we've so happened to have chosen a different field as the actual primary key. In that context, given that we would want someone to be able to change their email address, I don't think "unique" email addresses make sense.

So many things change over time and so many seemingly "unique" fields turn out to not be unique in the real world that, for the most part, I've given up on the unique constraint. Full names are neither unique, nor are they final (people get married and change their name). Not even Social Security Numbers are necessarily unique, for a variety of reasons (http://www.computerworld.com/s/article/300161/Not_So_Unique).
You could do a signal check remotely. You couldn't certify the line. How would you pull a new coax, or check that the end user didn't have a splitter between the modem and the tap?

If you call tech support they lose a lot of money, and people at the bleeding edge tend to be the ones who call the most and take the longest to trouble shoot.
One of his last points seems to be incorrect (or I'm misreading him).

One that I like that replaces my most frequent usage of magit is crecord: interactively select hunks for committing.

this is literally 'git add -p', and the -p flag can be passed to a load of different git tools to have this functionality?
There is a distinction to be made between having a module system, and how those modules are loaded. You can still concatenate everything together while using a module loading system, you just don't need to load the modules individually in that case.

One potential problem with concatenating everything without modules is that you then need to maintain your concatenation order based on dependencies using some other system. To his second point, you can certainly do this perfectly easily on smaller apps, but it becomes impossible as systems grow.
Innovation can happen at any age. The only key is to keep yourself active, focused and relevant. Even though Steve Jobs got success in his 20s but he mentioned that last 10 years of his life was most productive and creatively satisfying.
This must be the most intellectually dishonest comment I've read in a while. Either find someone from FSF who's written what you're claiming or this discussion is over. Finding unrelated people who feels something about the FSF's position and quoting that.. is just silly.
100 Books That Could Change your Life Forever
Can you elaborate on what kind nightmare/pain you came across using AMD? From my experience requirejs simply gives you a bit of structure, helps you organize your code so you can reference other parts of it easily.
This is literally the best comment/feedback/suggestion ever. Thanks a lot :)
Ask HN: Password sharing for remote teams
Hey HN, We are hiring at the moment (linkrisk.com/jobs ;) </plug>) and one of the things that is on my list to sort out is a decent way of sharing passwords between some of our team, we have two offices and at the moment I control all the passwords and that's not scalable.

I know many people use LastPass but I'm interested in what startups on HN use.
https://news.ycombinator.com/item?id=6492109
Ok maybe the guy was wrong, but putting him on a pedestal like this is not fair to him. He has no tools to fight back public shaming. A fair fight would have been a better fork. Also, that's kinda the point of open source. For many of us developers ego massaging is the reward for contributing free work. It can certainly be a bad thing. But let's not kid ourselves that we would absolutely behave differently if put in a similar position. Even the best of us falter.
> Do hg users just memorize which head is which?

Its not that bad if its only a couple of commits deep since you can look at the commit messages for context. And if you are using a gui like tortoiseHg then reading a commit message is basically the same amount of work as reading the bookmark name.

And if you really want to add a name you can add one, you just don't necessarily need to.
Once you're no longer closed beta Museum of Modern Beta's is another option: http://momb.socio-kybernetics.net/

Technology showcases also work, like e.g. builtwithbackbonejs.com
http://en.wikipedia.org/wiki/Blender_Foundation all the tools are available for amateurs to complete a movie like this.

http://www.blender.org/features/projects/
I've also heard of (but not used) Keepass
It won't prevent SQL injection but it makes it trivially easy to use a different password for each site so that when Kickstarter gets hacked you can just change that password.

People should use different passwords for different sites anyway but we both know they don't and most people wouldn't be able to handle that.
I've been using mercurial and git for about 8 years and I've never had corruption problems from either. What are you doing to get corruption errors. Also, mercurial hashes just like git and has for a long time. Are you sure that's not enough to detect corruption issues?
C++ does allow private inheritance IIRC, but at that point, why not just use a nember variable?
I read these mesh network posts with great interest. I really like the idea of a neighbourhood having their own private network for communication. Sadly this project is not yet ready.

Let's say I found 10 people in my neighbourhood with 10 routers what's out there that's easy to set up that would get us started with a little mesh network?
Where do your customers hang out online? If your customers are “everyone”, pick a narrower group to start with that you can target more directly, and then once you get traction there, expand to other groups.
Did you show your designer friend what happened when someone presses ctrl +? Or uses a different browser or loads their own fonts or etc etc etc?

Designers have caused real harm to the WWW. They're clearly not the worst thing about WWW but they're pretty bad.
Looking forward to test this program in action.
I was able to avoid the appointment and fee by telling the sales rep that I am a computer scientist and able to handle the installation myself.
Inside the looking glass by Avi Bar-Zeev
ive comcast here and there is no alternate cable provider. so yeah.
Laughing at 'don't think like business people.' If you believe that the primary goal of business is supposed to be 'make profit at any cost,' then yes, I don't think like those people and you should take some time to re-evaluate the purpose of business. If you believe that the primary goal of business is supposd to be, 'make a product or provide a service that is valuable,' then I think our humane values are in-line with our work.

Cases in point: Ponzi schemes, monopolies and cartels, price-fixing schemes, 'pump and dump' securities fraud, insider trading... need I go on? All of these things are illegal in the US--the supposed mecca of free market capitalism. Do you think these should be legal? Or you are simply arguing that everything that is legal is ethical? If you believe that, then I think you put too much faith in our legislature.

Edited to remove an inflammatory statement.
If its only code I dont feel any productivity difference between my laptops 13 inch screen and the 24 inch at work.

If I am doing GUI design or flowchart based programming I am not as productive when I use the small screen.
This is super hard and there is no great answer. I've never met anyone who's had good luck with places like Betalist. (Though "Show HN" can work.)

Realistically you are going to be tracking down your first 100 users yourself manually. Figure out who among your friends is a good fit and bug them. Then ask all your other friends who they know who'd be a good fit. If they don't click, follow up and ask why. If they click but then don't come back, follow up and ask why. If they become an active user, you are about to become best friends, always talking about what they like and why.

You're going to feel like a mooch for a while -- like you're always asking your contacts for things and not giving back. This is normal.

Also, this thread is on the front page, so post a link. Quick -- an opportunity!
For those new to Julia, you can also try it out here: http://forio.com/julia/repl/

(Full disclosure, I'm affiliated)
thanks! I did not work it out myself. It presented a load of jumble for a flash and did nothing. Clicking it just opened another window with the same initial jumble (Chrome linux something)
US military awaits pizza that lasts years
One big perception is that if the UI is not quite right (or worse), the code is also not quite right (or worse). Since the UI is seen and code is unseen, it becomes the visible representation of overall quality. So even if the code is tight and elegant underneath a sloppy UI, it will be perceived at the quality of the UI.
Anonymous cowards launching personal attacks years down the line on account of trivial decisions like not merging a particular patch doesn't hurt OSS?

Should we stand by and encourage people to blast Alan Cox for every patch that wasn't included in Linux that someone wanted in there? Does that help OSS?
I take that as a compliment, thanks. We have no plans of changing the price, so every new feature we add will be included into the existing plan, giving you more bang for the buck.

There's been quite a few requests regarding invoicing, and while I won't promise anything in the short term, we'll work hard to make Ding better in the future. People requested a start/stop-timer which we just implemented, so we do listen and take your feedback seriously.
Who says we haven't tricked the simulation, and who says we can be tricked?

If we do exist in a simulation, not understanding the motivations and nature of the perpetrators of said simulation leave us with no means to tell if our results are unadulterated.

Lets say you find incontrovertible proof that we are being simulated. You are so exited you pull through a red light on the way home and are killed by a bus. In the mean time the hard drive with your data on it crashes and the data is lost. Another researcher attempts to follow your work, performs the same experiment and gets a negative result, we are not being simulated (little does he know he's running on Universe.exe patch level 4.0.2113).

A universal virtual machine could operate just like virtual machines we use now. If the occupants of said simulation screw stuff up we can always be rolled back to a checkpoint with no knowledge of such an occurrence. Slight changes could be made to the problematic actors in the simulation and chaos theory would likely make the simulation diverge.
Linux Opera 12.16, the page is a jumble for an instant, too, then just the title, author and what looks like a link you can't click.

edit: didn't realize you had to use the arrow keys. In which case it appears to work fine, except the second slide where the image is squished.
but the real question is how can we get upgraded to 105Mbps without our monthly bill going up too?

Does it cost anything more for Comcast to serve a customer 105Mbps vs 50Mbps?
Ask HN: Seed investment for a pre launch startup
Not asking for our startup Poucher (http://poucherapp.com) but in general, is it possible for a startup to fundraise without launching ? (without acquiring paying customers)

If you were an angel/seed investor what would it take to convince you to invest even if the startup was at it's pre launch state?
> You will almost always be transpiling your javascript. In any serious project, you will want to have lots of small files to ease development, and then concatenate into larger files to ensure optimal http loading. If you don't already do this regardless of modules, you probably should.

I think he was alluding to browserify and the many AST transformation preprocessors it inspired[1], many are just there to deal with other AST transformations....

You don't need a module loader or packager or whatever to concat or order your scripts, tools like Webassets or Sprockets can do that without any new JS code. Hell, a simple Makefile that calls `cat` does a far better job than most stuff out there.

> If you are intentionally or serendipitously relying on script execution order, that is your bug. The module loader has helpfully exposed a bug in your code for you.

I call nonsense on this one. Scripts almost always have to execute in order. Can you run a jQuery plugin without having jQuery loaded and executed first?

> If you have lots of modules, it is simpler to deal with a module system than mashing together a load of scripts.

It may be simpler to deal with files, but definitely not simpler to deal with JS module loaders. I suspect that the current proliferation of JS module loaders / packagers are due to the long time lack of tools on the PHP side to provide something like Sprockets and the fact that JS has no import/export mechanism built into the language. Tools like RequireJS/Browserify/Bower/Component are all abominations in their own way.

[1]: https://github.com/substack/node-browserify/wiki/list-of-tra...
This is already moving within IETF: https://datatracker.ietf.org/doc/draft-pouwelse-perpass-shad...
Key problem is that people are re-inventing the wheel in 100+ projects. Good scalable code takes year to develop.
The mesh project I'm working on has taken 42 man-years to date :https://github.com/Tribler/tribler/wiki
Who would have thought? That in your late thirties, you have gained experience, knowledge, contacts, maybe even a degree of financial support, all of which lend towards the formation of breakthrough ideas. Now, where is my prize?
This article makes a strong case for that.

Things like "grab me before you check this in" and "we need a design fix-it day" are indicators that this problem has a high communications cost between the designers and engineers who have to implement those designs. Companies who observe symptoms like this should consider hiring a designer/engineer instead of having those two separate people. Yes, the combined person will be more expensive but they will just do the same work in a fraction of the time.
>So why do you label FSF as zealots for disliking actions that helps those that want to threaten users with lawsuits

Without even getting into the broken-ness of your analogies, being anti-DRM and anti-patent-abuse and so on is one thing. Calling someone evil because they don't publish the source of their app is quite another. According to their dogma, if I write a program and don't release the source code, I have perpetrated some horrible thing on the world. Regardless of any other interaction I might have with a user of my app.

Pardon my French, but that's fucking idiotic.

And even if I do release the source, I'm in the wrong if I don't release it under their pet license of choice. (Though not exactly "evil".)

What if my goal is to just see my code in use, not get embroiled in political battles? BSD is a de-facto more permissive license. What if I don't care if some corporation comes along and takes my code and releases a product based on it? Cool! I've helped the world somehow! And people who want to use my code don't have to get involved in GPL politics and drama!

My problem with the FSF is that they assume they are Right, their stance is Right, and anyone who disagrees or dissents is Wrong. Hence dogma. I know religions with more ideological tolerance.
Apparently, decay on the disk itself is sometimes caused by cosmic rays:

http://docs.oracle.com/cd/E19253-01/819-5461/gbbym/index.htm...
Nice, cool idea.
This website frames public domain PDFs (poorly) so they can show you ads. Academic shovelware.
Wow, this is a superb article that resonates with me as much as anything I've ever read on the subject. It practices what it preaches, too. Reading it made me feel the very things it's talking about.

I sense, though, that the author's tactics for working with teams that don't share his values are half-measures. It reminds me of the large and sad literature on "organizational change" in software development, wherein people trade stories about how to cajole managers into letting them do fragments of good engineering. None of that works very well. The satisfying solution is to be part of an organization that values good engineering in the first place.

Similarly, a designer like the author would be better served by working with–I'm tempted to say better engineers, but that's my bias–engineers who feel the same way that he does about product. These exist; I'd consider myself blessed to collaborate like that.
The title is not wrong.

"Regierung plant Einsatz von Spionageabwehr gegen USA"

= Government plans deployment of Counter-espionage [entities] against USA.

"Spionageabwehr" is a noun and in this case refers to counter-espionage entities in place already ( Bundesamt für Verfassungsschutz & Militärische Abschirmdienst )

Ultimately it comes down to the same thing. I just find it weird that you'd shoot down a near flawless translation and offer a decidedly inferior one in its place.
As a German who lived near the bases Grafenwöhr (the base where Elvis Presley served) and Hohenfels I can confirm this. Wikipedia says Grafenwöhr alone supplies 3600 jobs for locals civilians. I've heard there has been resistance against the bases in the past, but now they are part of the local economy and every reduction in personnel has caused a small outcry.
What about Bukowski, that was working in a post office, til 49 years old, when he dropped out to start his first novel ?!
I stared at the page for 10 seconds before realising that i have to use arrows. I'd suggest adding simple instructions like "Press arrow keys to navigate".
I think you have your OSI layers mixed up.