skysight-inc/HackerNews huggingface dataset:
I believe "high quality PHP" is an oxymoron. It's just impossible to be aware of all the pitfalls PHP contains. Here is just one example among many:

> if( '33333333333333333333' == '33333333333333333334' ) echo "equal";
Output: "equal"

The "reason" for this very odd behaviour is that the two strings are automatically converted into integers, which leads to an int overflow, which PHP ignores (ignoring errors is very PHP specific) by guessing that the two "numbers" must be equal. I'm sure they even call this a feature...
...And that is assuming that the artist is so popular that he can sell enough albums to just live off of that for two or so years without any touring or such, which I think is unlikely.
You're right, but the post wasn't really about PHP itself. Of course, with this in mind, PHP apps can never reach high quality.
By back-loading the development process, making it more difficult to get shit done later when your ability to avoid institutional inertia and code complexity has significantly decreased. That's not a good thing.
> Its entirely possible to write a poorly organized bowl of spaghetti using Ruby if you leave Rails out of the picture. I would venture to say the same is true for any programming language.

You can easily write one with Rails over just a few months of maintenance. I hate, hate having to do a damned autopsy to trace all the @instance (read, global) variables copied and inserted into the objects that you never create yourself, -because Rails devs are apparently above having to endure the savagery of passing arguments to their methods- and having to grep every single function that gets automatically included from everywhere in the project into the namespace.
It can, though the functionality is relatively recent.
Fair enough, but then the difference between the two languages is not linear across the development of the larger program. The largest difference in code size is displayed, but it focuses on boilerplate code being the inflating factor of Java.
Take a gander at the javascript/clojurescript synonyms cheatsheet, it's a lightweight way of seeing the mental transformations you need to do to get from a curly brace language to a s-expression based language: http://kanaka.github.io/clojurescript/web/synonym.html
I tried to get coverage on the 22nd. The process is very long and tedious.

I spent a solid 5 hours going through the entire process about 6 or 7 times, from start to finish, only to get told each time afterwards that it's not complete for some odd reason, and to start over again on step #1!

I tried multiple things, deleting the application, using Chrome instead of IE, etc.

On the 23rd you could not even log in - they took that option away.

What bothered me the most was, besides your social security number and a slew of personal information, they even demand that if you are a naturalized or derived citizen, you locate your naturalization or citizenship certificate and enter numbers (Alien # and Cert #) from it that -- get this - their Javascript refuses to validate (it kind of looked like their rule match is off by a digit). And you get stuck on that step.

I also noticed that if you enter your income as below $10,000, the system tells you that you qualify for no benefits. But the moment you enter $11,500, you get a $260 tax credit. Go figure that one out.
Please go back to Reddit with this nonsense.
> Except that US crude oil production is now rising.

Its been rising for a while, but still way below the peak in 1970. The behavior observed is not at all inconsistent with the prediction.
Did you not have a SAW gunner in your fire team? Suppressing fire is a pretty much text book use, as I understand.

/brother was a Marine in Iraq, I think a fire team leader and eventually squadron leader
It's sloppy copy/paste work from http://en.wikibooks.org/wiki/Clojure_Programming/Examples/La...

This post is quite poor imho, and I am a clojure developer (I do use it at work as main language).

Maybe it's also because I don't find Midje appealing at all, or find a bit odd the minimalism argument when talking about lighttable vs emacs.
If you know what you're doing with cider-mode (previously nrepl) on emacs there's no reason at all to switch to lighttable, quite the opposite. LT is probably good for newcomers, but for power users it's just not there yet (if ever).

Same goes for Marginalia, interesting and amusing, but I wouldn't use this for real documentation.
The same way you do it in Perl: you store rounded millicents. If there's never any fraction in your float, your math will never have floating point issues, and your Javascript VM will use integers internally.
> "Until you’ve got to pull the trigger, until you’ve had to bury your people, you don’t have a clue."

Falling to the "you don't know what it's like" argument is never a good sign. You're acting out of pain and so emotionally invested in justifying your actions that you're incapable of communicating an evidence based rationale to an outsider. You can't reach a reasoned resolution like that.
> It turns out, this describes expert Java programmers very well, too -- so it's no surprise that Scala is a very popular language with Java programmers. I'm finding that Clojure is the more attractive language if your sensitivities lean toward the "simplicity" and "dynamism" camp. I was reading some Scala code being used in production at Twitter and found this marvel: https://twitter.com/amontalenti/status/410977749629546496 -- you would simply never see anything like this in Clojure or Python codebases.

Well done, you found some bad code written in Scala. I can assure you I've seen far worse in Python.
You seem down on both C and C++, but there will always be demand for languages that allow you to control memory.

Rust looks promising, but it's way too early to tell if it can really replace C/C++.
I think recent versions of Docker fixed the GC problem: https://github.com/dotcloud/docker/issues/928#issuecomment-2... and https://github.com/dotcloud/docker/pull/1589

If you didn't want the build deps, you could create a Dockerfile for building the binaries, then another one for copying them to the release container.
To be honest, I worry about how all this data could be used as well. I just hope we can focus the conversation around the more more productive topic of stopping malicious activities, rather than around the frivolous topic of stopping technological advancement.
Not only have both absolute and percentage numbers of people living in poverty dropped in the last two decades[0], but global inequality (unlike some intra-country inequality) is falling as well[1].

[0]http://www.economist.com/node/21548963
[1]http://www.washingtonpost.com/blogs/wonkblog/wp/2013/12/13/a...
It looks like an error. The author probably based his code on an example from Wikibooks [1]:

(def fib-seq
(lazy-cat [0 1] (map + (rest fib-seq) fib-seq)))

But, since he added an argument to the function, I don't think his code actually works, even if you ran :s/fib-seq/fibonacci

[1]: https://en.wikibooks.org/wiki/Clojure_Programming/Examples/L...
To me it doesn't look that different than some project/Build.scala files I have had to write.
Agree.

Reminds me of some of my friends who will obsess over the specs on a digital camera (or the power of a particular model of PC or Mac) and completely ignore setting up and composing a good photo. Wanna be purists I guess.

Many years ago I put together some shell scripts using awk, sed and an early shell. The were used to do an estimating system in the business that I was involved in at the time. They were crude and the code was really bad and I had at the time really little clue on how to do things the correct way. Had I had to learn c to do the same thing (which I did somewhat a bit later) I would have never ended up with anything at all. Professionals laughed but the people who bought the business ended up using the system that I wrote for about 4 or 5 years until they found something to replace it. It got the job done. Under the hood what was going on (in this particular case I have to stress as this was pre-net and only used internally) wasn't really a factor.
Just got off the phone with RS and what happened was that, during a migration, there was "concern" that "the CSV file that contains the encrypted passwords for about 8% of mailboxes" was "not as secure as our standards dictate it should be." I was told they have no evidence of a hack or of access to the file but that they did a manual scramble of those 8% of email account passwords "just to be sure".
Write unit tests first.

Or rather: Consider for yourself that everything in the universe, from some perspective or other (not a God's Eye View/Perspective — but assuming you had all the facts of the case, but simply were of a different position to review it), under some context or other, behaves most perceptibly w/r/t a quantized model of interpretation.

Then, do a bubble sort on all of their secondary properties, or even all of the things, whatever in your best estimation viably counts as a thing. Is "hatred" a thing? Is "liberty" a thing? Is the liberty in this woman a thing? Is the liberty in this man a thing? Does this man's liberty follow from this woman's liberty? Do parakeets sense justice? Is my cat the grand chancellor of the litterbox? Do I rob this man of his livelihood if I take his bagel?

Some of these considerations are structurally interesting, but often times go to the back of the list.
Actually that is Java, not Clojure.
That's because you're not considering the fact that the complexity of handling movement in each direction will increase -dramatically- as she continues to write out the game.

If the logic would forever stay a one liner, "increment the y coord!" when the up arrow key is pressed, I would agree with you - keep the case statement and go on your merry way. But that isn't the case, and my wife anticipated that being the case, hence the motivation for her question.

Spreading out complex logic into separate functions is usually considered good form. Like every design decision, you have to be wary not to overdo it - but I think my wife was spot on in identifying the need to do so in this case.

Putting the case statement aside for a second - you're also overlooking the fact that by using functions in this way the implementation becomes pure. The functions do not mutate anything and are completely oblivious to the fact that they are being used to swap! out the current position of the player for another.

Some benefits to writing pure functions include easier testing (you don't have to supply an atom to know if your function works, just call the function) and REPL use is vastly simplified. Additionally, I don't even need a browser or a keyboard handler to see if my movement functions work.
Oh, I see, that makes sense.

For me, I was making broad predictions. No matter how exciting the web client dev is, it is and will remain still a niche, and Dart faces a huge challenge in the next 5 years as asm.js will relatively suddenly introduce it to competition from every other mainstream language in existence. Dart probably won't "die" for a while, but I'm not sure it won't end up "just another" one of the enormous pile of languages that it will be possible to do client-side programming in.
I also love scala and hate perl. I wonder how close the correlation actually is - do the same type of people really like both, or is this just something people who don't like scala say?
I am not sure I would agree that the deck example he gave represents the Scala idiom.
I myself would probably start with something like

========================

object Cards {

type Deck = Seq[Card]

case class Card(r:Rank, s:Suite)

type Rank = Int

sealed trait Suite

case object Spade extends Suite

case object Heart extends Suite

case object Diamond extends Suite

case object Club extends Suite

}

==================================

Granted, all this code is unnecessary in Clojure but there are two benefits of writing them:

1) compilation type check

2) for developers who have no context of playing cards, this provides a clearer picture, while in the Clojure code they will have to browse more code to get the full picture of the data domain.
You're reframing all criticism towards PHP to "can it be done with x" from "is it best done with x".

> Point to a thing you cant do with PHP and you have valid criticism.

s/PHP/Brainfuck

Does your argument still hold? Are you now a snob?
That would be a good excuse for the apples to oranges comparison if people always ran production server code via the REPL.
The introduction has a reasonable premise, but I thought Business Case No. 1 doesn't do much to further the point. In fact, it reinforces the academic/industry divide that is belabored in the intro.

Ask people who are working on "commercial" development how often they have to implement a Fibonacci sequence or something similar. The example comes across more like a neat party trick then something that would make itself useful on a daily basis.
So, the business model for music in the 2000s is the same as the business model for music before 1900. You need to perform live.

Anyway, Iron Maiden is a very clever band. Never seen a band with more merchandising. Also, they play games with their fans. This is a nice example: http://en.wikipedia.org/wiki/The_Reincarnation_of_Benjamin_B...
What's so terribly wrong about those scenes?

3 middle class professionals (2 in that scene) all sharing a single grungy studio apartment. One of them is unable to wash his butt because none of them remembered to fill buckets of water during the 2-3 hours/day when the water worked.

You have absolutely no idea what you are talking about when you suggest the poor American works 3 jobs. He probably works 0 (http://www.bls.gov/cps/cpswp2011.pdf), unlike the Indian who is typically working mon-sat (mon-fri at a good IT company). Crime is a huge problem - just ask any woman of reasonable attractiveness.

As for having a "real family", the poor American can choose to marry a woman of good character before having children. He typically chooses not to.

Look, you can complain about "I can't afford a new iPhone poverty" and "omfg someone with a job makes 8x more than my welfare poverty" within the first world all you want. But don't project these intuitions onto India and other nations suffering from real poverty. It leads you to conclusions that are utterly ridiculous to anyone who knows what they are talking about.
If you're really coming from a Haskell background I very much doubt that you "can't make head or tail of Clojure examples. It might as well be encrypted.".

Except if you mean that you dabbled in Haskell, but are a Java/Scala/Ruby/Python/Pascal/C# guy.

In any case, it takes no more than 1-2 days (from scratch) to get to understand functional code. Remember that you weren't born able to understand imperative code either. Just learn the (very basic) syntax rules, and the rest is easy.
Out of curiosity, is that piece of code necessary? Is there no better way to condense that? I'm a beginner with Scala, so I have no clue on that front.
Have you considered F# (or Ocaml), or Haskell? I can see good reasons to move away from Scala, but I don't think you need to throw away all that wonderful functional typing goodness.
"That said, most do now secure their WiFi"

Then there is the linksys wifi camera which you can access over the net but doesn't have https. So in order to get to it securely I have to ssh in to a machine on the network with a tunnel and connect by proxy. A real pain.
Couldn't be a printer with same footprint be build with laser printing? If you keep the resolution low and got the time and money for the research, It should be possible I think.
Medoo 0.9 is released - The Lightest PHP database framework
Medoo is recently released its 0.9 version with some important improvement.

- Add support for SQLite

- Support multi-insertion

- Support negative condition

- Many bugs fix

- Better quoting

Medoo is a super lightweight (10.9kb) one-file PHP database framework. It`s easy to use and learn. I hope both of you will love it. Cheer!

Check out the official website:

http://medoo.in

Github:

https://github.com/catfan/Medoo

Merry Christmas and Happy new year:)
> I also noticed that if you enter your income as below $10,000, the system tells you that you qualify for no benefits!

I know that the common plight there is that some are poor enough that they qualify for Medicare vs. Obamacare, though I admittedly don't know what the distinction is. If you need insurance, and Healthcare.gov is telling you you're too poor, it might simply be failing to tell you to go check with Medicare and see if you're eligible there.
PHP does not make it necessarily difficult to write good code. It's actually quite easy to write good code. The annoying part is that there is a metric CRAP ton of awful legacy code out there that constitutes the majority of PHP work. But you can say the same thing about any language - reality != trope.

I won't argue that there are large pockets of PHP developers who do fit the bill of encouraging a culture of sloppiness, but to paint the entire userbase this way is just ignorant.
For me personally, if they weren't running in the JVM, we wouldn't be having this discussion.

The JVM is key for many as operational stability trumps developer finger-candy. It's an easy sell to add a language change it, when it's not really going to change how an entire part of the organization is going to manage it.
Despite the "kumbaya, we're functional brothers...we all win", I know for fact (very reliable sources) that the Typesafe guys absolutely hate the traction that Clojure is getting, especially that they need to get a ROI on their funding.
8 Futuristic Tech Predictions From Spike Jonze’s New Film ‘Her’
Man, the project is a LOT cooler than I thought it was going to be. Nice change of pace to see some c#, too
Why group rust and go? Rust allows control over memory and go does not, which seems like a huge difference.
What hypocrisy? 6 million jews were killed during the holocaust. Meanwhile 56 billion land animals are being raised in similar conditions and slaughtered every single year. That is approximately 6 million every single hour. This is far worse than the holocaust, and it's all for the trivial reason that meat tastes good.
Bad? It's orders of magnitude better than Maven. It's actually as lightweight as JSON.
While I apprecaite your passion...I think there is one thing worth mentioning about generalpf's post: they stated how someone informed them of something they had not known, they are openly stating they realize they were wrong in their original assumption, and they are now spreading that same information to others in the hopes (I assume) of correcting others who might feel the same as they previously did.

When looking at any problem, social or otherwise, the newly informed that become champions are just as important to the very passionate and an entire movement. We don't need to say "Good job" every time someone turns around, but we don't need to beat them up either.

(edit) My apologies, looks like I commented off thread...this was in response to forgotten pass' comment.
It's actually possible to connect to your production server through a REPL and hot-swap code.
Your post and generalpf's post make me wonder, if a person's only internet connection is their phone, and it gets stolen, then how would you manage post-theft security features like locking, disabling, spying (on the presumed thieves) and wiping?

And a further barely related thought, as phones get cheaper, what a rich spying device would be a phone dropped outside a company or government building, compared to a dropped flash drive.
(fixed the link... do'h, my bad...)
there's not much I can do on the margin-left without introducing css. (i leave javascript and css out--makes the site faster).
Please go to the writing section and look at one of the stories and one poem to see if the left alignment still bothers you after. I think e-book readers left align as much.

Thanks for the compliment!

(ultimately, I go for separation of concerns: the server serves content, the browser renders. people can set font size, etc to suit themselves).
You can build a scala project with a zero line build.sbt file.
Isn't the fact that they are using a simple HMAC-SHA256 hash also a root of the problem?

If instead of using the POST data only to create the hash they added another information, like a the hour of the day. Wouldn't it be way harder for a hacker to actually understand what went into signing the request?
This is true. But there are a lot of devs interested in combining the ease and speed of dynamic language syntax with the robust compilation of a static language...

This will be a popular topic for awhile, I believe, because the JVM isn't going anywhere in the next decade (gut feeling).
No. It was rather -

Enter $10,000 - you get no credit.

Enter $10,500 - you get big credit.

Enter $11,000 - you get no credit.

Enter $11,500 - you get big credit.

Etc.
Exactly. The cardinal rule of competent software development is that you don't test quality into the software. The root causes were requirements churn, split development, and no project coordinator. Those would be nearly insurmountable on an average size project but were hopeless on this project. It's a marvel they were able to stabilize it to the point it's at.
There is a balance between privacy and crime reduction already codified into law and common law.

See: the use of snoopers and other IR devices to look for grow houses (generally accepted as unreasonable) and the use of airborne BAC sensors to look for drunk drivers (generally accepted as reasonable)

Legal decisions are about balance between individual rights and group rights. Free speech vs "fire in a crowded theater" is a classic example of this balancing act.
How to build an indestructible gingerbread house
Nothing. If this article reminds of anything it's that anyone can patch Android apps (and resign them with a new key) to do anything they want.
"Point to a thing you can't do" is bitterly disingenuous. Nobody's saying you can't do things in PHP, they're saying it's extremely disadvantageous to do so. Technical debt can't be wished away by screaming about "haters" and it's juvenile to try.
And a pig has the IQ of a 3 year old human.
I don't know a Clojure. Why should knowing understanding one language imply that you automagically know another? If you know Spanish, Portuguese May look familiar but it won't be exactly the same. Does that mean you should understand Korean or Japanese?

From the little bits of dabbling with various lisps in have done a functional language is different enough from my bill paying regular languages (JS, php, Java) that without a focused study on a project that hits several layers of a typical stack, I fully expect the language to be foreign to me. Until I know the 350 core language operations by heart I'll not be able to play with them. If I cannot play I'll never be able explore the language and use and misuse it until I can make it do what I want it to do.

So the fact that it looks encrypted to you is a good thing. It's a code waiting for you to break it. It's a problem waiting. A small group of extremely intelligent people are responsible for the family of lisps. That tells me that if/when I do dedicate the time and effort to understanding the lisp tools it will be worth the effort.
> Bill Gates paid 30 cents of every dollar in exchange for access to an educated and healthy workforce, use of the interstates for shipping, use of the police and military for protection, and use of a contract law system.

You make it sound as though it's a willful transaction between two parties. Yes, taxes go to those things, but it's compulsory. If I don't like Microsoft I can choose not to buy their products. If I don't like the NSA or CIA torture tactics, I can't opt out of their services. BIG difference.
> "The enterprise" (for the most part) isn't held back by Windows.

Or, rather, much of "the enterprise" is committed to being held back by Windows, so a language being tied to windows doesn't hinder enterprise adoption.