skysight-inc/HackerNews huggingface dataset:
Yes, ORMs let newbies code queries safely.

However you can deal with SQL safely bypassing the ORM if you compose the queries correctly. An example with Ruby and the pg driver for PostgreSQL:

db.prepare("select_title", "select title from posts where author = $1::text")
...
db.exec_prepared("select_title", [ author ]) do |result|
...
end

I concede that it's more prone to unsafe coding than Post.where(author: author).pluck(:title)
Everybody in the team must resist the temptation to ever write a db.exec("select title from posts where author = #{author}")

What I do is using the ORM all the times, except for complex queries that would be a nightmare to code with ActiveRecord/Arel and to understand when written in Ruby. In those case I use ActiveRecord's find_by_sql. It can be protected by SQL injections easily. I quote the documentation:

Post.find_by_sql ["SELECT title FROM posts WHERE author = ? AND created > ?", author_id, start_date]

Again, it has the same problem of having to enforce the discipline of passing the arguments in the right way but there are countless ways of making a project unsafe and the team must be trained to prevent unsafe coding practices. SQL is only one of them.
Yes, I did and that's much more interesting than the code itself. But the title is still misleading and emphasizes the code, which isn't terribly spectacular.
This is satire right?
I am not surprised, the GitLab guys are doing a great job.
I think several core HTML5 and CSS features actually come from Cocoa (via WebKit/Safari), notably Canvas, transforms and CSS animation.

The whole stacking context business basically seems to describe WebKit's rendering model (and maybe other browsers too, but did they have hardware acceleration before Safari?). I think the W3C spec was derived from the implementation, to a greater extent than the impl being driven by the spec.
Yes! I've thought the exact same thing, thought I was the only one.
Ask HN: Are we close to a saturation point for coding bootcamps?
I see daily ads/emails for programs now guaranteeing to make you a software engineer (as opposed to just a Rails web developer) - programs with names I no longer recognize. What is the future of this industry, and will there be consolidation?
You get the "Success -- Thanks for subscribing" message even if you do not put an email id in the input field! Please correct!
Somewhat related: https://github.com/a2flo/oclraster
It should not be judged so easily.

However I have to say when I was in MBA course in US, I don't know why the teacher needs to teach the students how to calculate a linear equations of two unknowns. In China that is a question in elementary school and less than grade 5. I wonder how they graduated from high school and learning business.
Fukushima's ground zero: No place for man or robot
The company I am contracted to has an Android app written in Scala.
While creating 10 other problems usually

Sometimes I agree that using a home-grown solution is better, but you don't want to reinvent what took a lot of time and a lot of people to work through (like Frameworks, DBs, etc)
Angular, RequireJS and HTTP/2 Push
Top 5 Reasons for Investing in Customer Experience
GitHub silently rolls out “reaction” feature
So following the open letter, GitHub silently rolled out the reaction feature people requested. Now we can deprecate the +1 comments.

Example: https://github.com/rails/rails/issues/24142

Pay attention to top right corner of comment.
Very cool thing.

One thing that I didn't see and would be easy to implement is a map of connections between objects such as characters with the chapters etc. It'd be great for the writer to see such connections in a visual way.
How do you create the virtual jukebox? I take that a lambda user has to have the necessary software to play the music and this is 'just' a voting system.
> An inspiration for amateurs everywhere. It is a useful idea at the start. But at some point, you will acquire an itch to to hone your skills. By then, you probably don't need to worry about doing badly.

Actually, I think it's even better advice someone who is already skilled at something. It's easy to forget that being able to do something well doesn't make that thing worthwhile. Right now I feel this way about my profession -- I need to choose between doing something I think makes the world a worse place "well" to pay the bills versus trying to redirect my skill-set towards something more "worthwhile", but potentially failing.

Obviously there are many factors to consider but I think the main point of the quote is to emphasize the nature of "worth" transcends ability, not just "don't be afraid to try new things!"

re: P.S. And yes, "Good Omens" is an awesome book.
Apparently this investor desires to own Turkish stocks more than other people want to own Turkish stocks. If a hypothetical party wants to own Turkish stocks more than this investor, there are a variety of people who presently hold Turkish stocks who would be happy to oblige.

Most reporting on the markets is really, really boring when you get right down to it. "He's high-frequency trading! And placing big, risky bets! And who even knows if it's a he?!" sells a lot more papers than "Investment fund purchases stock legally on the open market; chooses not to broadcast intention to do so by using smoke signals but instead uses a computer."
If a real football team did this I think it would work. Why don't they? Which step is the unrealistic one in the game?
It'd be nice if they added a little warning whenever submitting a comment that was only a '+1' or '-1' otherwise the discoverability is gonna take a while, maybe? Also a option to convert those comments into reactions for repository owners.
Do you think 13 year olds should be treated like 5 year olds who are not suitable to do anything except having people laugh at their reactions?
Reading this post reminds of when I tried to learn Scala and ran away when I saw the heap of complexity it was.

It seems like they tried to put all features they could in there without thinking about the orthogonality of the result.

Languages that need all that restraint to be used right maybe are ok for some very clever people, problem is all the rest of us that can't juggle all that in out heads.
I don't see how it can be feasible to use it for implementations of other languages that don't directly map to webassembly like C. You would have to ship a runtime for the other language along with your application code. The runtime will be either huge with long startup time or small but too slow to be feasible.
Another vote for http://pinboard.in I imported all my Delicious bookmarks into it a couple of years ago and haven't looked back. I also availed of a lifetime subscription for about $11 at the time —although I think the pricing model has changed now.
In aeronautics, component lifecycle tracking is dead serious business - hence even some trivial parts are individually identified, much more than in any other industry.
In this talk https://www.youtube.com/watch?v=_-I_X-k3D8A Martin Odersky talks about Scala centre. Coming 2016, it's two purposes are to:

1. organise open source projects around Scala

2. organise and develop online teaching
People have been using emoji comments to express not only reactions but also for voting. Even if you were to add voting features (which reaction emojis can be used for) you'd probably still get unbearable amounts of zero-value comments comprising of a single emoji, "+1" or gifs.

This is probably an attempt to break that "user habit" by providing a tempting alternative to the type of person who spams comments in issues.

Additionally, by using emojis for voting maintainers get slightly richer data about how users feel about something. A user story with 1000 thumbsups might fall lower in the backlog than a user story with 1000 hearts.
But! Maintaining brain drain from the third world and the UK, negates this effect on the US economy.
Silently? There was a blog post announcing it and the discussion about it is second place on the HN front page right now: https://news.ycombinator.com/item?id=11262736
Thank you so much for taking the time to comment on this. I have very little vested in (any) python (distribution) - but would love to see "real" python3-support in pypy.

As the sibling comment mentions: Maybe now is the time to try for another funding run for py3 support? A lot of frameworks and libraries have been ported, and a lot of new code is being written for py3. Perhaps there'd also be real interest from people that now look at pypy as "just" "performance enhancement for legacy py2" to see py3 on the pypy platform?

In my personal opinion the speed gains of pypy aren't really all that interesting (other than perhaps, in the sense that it enables more code in python rather than c etc). But rpython+pypy as a framework for language development in general, and as a host for python in particular (along with the work on cffi) are really great aspects of pypy.

And while anyone can get rolling with rpython and implement their own toy prolog/brainfuck/whatever -- other benefits from running python on pypy will remain out of reach for those that for various reasons are targeting py3.

Then, maybe we could do another funding run to get mercurial ported to py3, later ;-)

At any rate, I love the work that is being done on pypy, and I certainly think it doesn't make sense to devout resources to py3 "just because new"; I believe free software development works best when driven by stakeholders. But I think the fact that "pypy doesn't really work for py3 also drives some people away from pypy that might otherwise contribute in various ways to help push py3 support further.
This is basically what happens with company 401ks.

In the reality most of us inhabit, a 401k is a type of company-sponsored retirement account. The accounts are allowed to invest in a variety of securities, most commonly in one of a limited selection of mutual funds. There is no circumstance under which 401k contributions materially move the market.

If I sound mildly put out in this comment, it is because HN comments about the stock market often make very confident claims which bear only the most tenuous connection to reality. It's as if someone on a Wall Street message board had asked "Why is Chrome faster than Internet Explorer?" and received the answer "Because it is written in Unicode."

And outside the scope of this particular comment, often times responses like "Chrome is not, in fact, written in Unicode. Unicode is an imprecise name for part of a family of methods of encoding text in various human languages, not a programming language. A substantial part of Chrome, including most of the rendering engine, UI layer, and network stack is written in C++; Chrome also makes heavy use of other languages internally. Returning to the question of why Chrome is fast: this is less about language choice and more because substantial effort has been taken to ensure that Chrome is fast. 'Fast' is a complicated topic in browsers. In terms of user-visible performance, one thing which makes browsers seem fast is the Javascript runtime. Chrome uses V-8, a run-time built specifically for Chrome at the cost of hundreds of millions of dollars, which is optimized for speed." are met with "Sure that's what you would say IF YOU WERE A GOOGLE SHILL."
Once you create a hub, it fetches top songs from iTunes and starts playing from YouTube. All the songs added by users from their devices are then added as song meta data. I'm planning on making the YouTube player visible and adding soundcloud as well.
Sporting Lisbon have a good school for young players, but it's also very competitive. Probably next season he will be playing in some small/medium portuguese club to gain more experience.
If it's looked purely from educational point of view it's quite hard to find graphics code that is this clear and concise.

The author modifies this short code to implement various shading techniques with code that is as pithy and understandable as any.

You have to recall that 40 years ago even texture mapping was a scientific publication quality material.

This code makes several non-obvious things obvious - and simple! I don't think that's a light achievement.
PM me: youruserid at myuserid dot com
That is virtually unmaintainable. What happens when Joe Hacker moves on to greener pastures? The new guy gets stuck with a framework that he can't Google. This is where the author lost me:

> You've to ask for expert help, wait until someone helps you or pay an expert framework consultant.

The ability to ask an expert for help is a boon, not a curse.
Can you be prevented from buying more stock if you say you do intend to acquire? As in, can the company tell you flat-out to stop buying, because of course they can always raise the price or sell to someone else, etc.
I actually had the opposite experience. Yes, Scala takes some time to digest but I didn't find it particularly hard. I come from a C# background and Scala just makes things so much easier to code once you get the hang of it. On the other hand, I tried learning Go before picking up Scala. Something about it's handling of concurrency just didn't sit well with me. Perhaps it was because it was so different for C#. I never really got a good hold of it.

For me Scala has a little bit more upfront cost to learning (but if you come form Java and C#, it should almost be second nature) but the things you can do with it once you get a hold of it is amazing. Go (for me) on the other hand is very easy to write simple Hello World programs, but if you want to do complex applications, it has much more down payment.
People in silicon valley who believe in AI/ML/Battery Technology/Solar/Wind Turbines/Space Travel/Fusion Energy throw around "exponentially accelerating progress" as a platitude so obviously true that it doesn't warrant questioning. (PC quote with my edit)

"And despite Silicon Valley's ostensible belief in rationality and empirical evidence, we continue to assert this despite the data strongly suggesting that it just ain't so." - Patrick Collison

The race to 7nm is expensive.

I think the next big leap will be in Chip Design software which lives under a rock inside a ditch in an anachronism that is EDA - electronic design automation. There's got to be a better way that allows a chip designer to produce a high fidelity mixed signal analog chip at speed and scale without having to pay $25K+ for the software licenses and tooling.
Also, it helps in taking the community point of view. Right now, if a newbie submits a PR, one of the project maintainer might just diss him and claim his PR to be irrelevant. But if there are already some 10 likes, the latter might give a second thought and might look at it from a different perspective.
Sorry to have to tell you this, but Bluetooth mice worked fine with Windows XP.
I'm trying to remember where I saw the idea developed. Possibly by Andreas Schou at Google+.

Basically: if you've got some discriminating test with Type 1 and Type 2 error (false positive, false negative, don't ask me which is which), then as the actual rate of incidence falls, no matter how sensitive your test, at some point it's mostly making false positive rather than true positive selections.

Cue a system which rewards based on, say, arrests, rather than on correct convictions, and doesn't penalise on false arrests or wrongful convictions.

You're going to see a lot of false/wrongful arrests and convictions.

Makes me think if part of what happens within immune systems isn't similar.

Bruce Schneier probably covers similar ground, now that I think of it.
Facebook più ludico, compra Masquerade l'app per selfie buffi
The problem with OSX is the very expensive hardware (and worrying signs that Apple is progressively locking down the OS).

The problem with Linux is that unless you are trying to do something really really basic, you will be facing a command prompt, and then you have to RTFM. No time or appetite for that (and the perspective to have to "compile my own drivers" gives me the chills).

I wish their was a cheap/free alternative with a decent UI.
I don't agree that this is the problem. I mean, it is a problem at times, but that's a separate issue.

There's quite simply no easy fix here. The best schools (and yes, that includes many public schools) are teaching a variety of skills that help the students whether they're going on to college, a trade school, or straight into work. And I suspect that those schools would be competitive or even beat Japan and Finland.

But just look at the conditions of some schools. --Detroit is making the news for schools that are falling apart and infested with rats and worse. When the government won't even provide funds to provide a clean, safe space for students to learn, just how much can you expect from the teachers and students?

Most of us don't feel good about going through increasingly intrusive screening at airports. Imagine how students at some of the schools in New York feel having to stand in long lines and go through metal detectors every day before class. Do you really expect them to respect an environment when they're put through that?

In Kansas they're trying to defund the state's Supreme Court because they ruled that the funding of public schools was inadequate and distributed unfairly to the point of being unconstitutional.

Look at the Republican candidates all crowing about how they'll shut down the Department of Education if they're elected. Don't get me wrong, like all government agencies, some reform is needed, but there are plenty of examples to show why the department is necessary!

There are other factors in play as well, of course - as much as people would like to pretend otherwise, there are a lot of people living in poverty in the US, and students living in poverty consistently do worse in school than middle and upper class students.

So really, there are a LOT of reasons for the US scoring this way, and unfortunately our country is not doing a good job of addressing these reasons.
I guess he makes good points from a nerd's perspective, but I've found that frameworks make hiring really easy, allow new hires to be productive early on, provide a set of nice conventions and help reducing risks such as bus factor.
Step inside the Large Hadron Collider (360 video)
Yes as a programmer. No as startup guy. For me, it's like learning to do multiplications instead of just adding and subtracting. You will still get the same answer at the end.

For a startup, you don't want to your programmers to learn cause its a heavy investment in terms of time. Adding and subtracting works just fine so they often advocate that route. You definitely get to the end goal, but when it comes to learning new things, you are never certain what the outcome will be.
"Indeed, the bigger issue may not be who “the dude” is, but what it is, according to Isik Okte, an investment strategist at TEB Invest/BNP Paribas."
India Tours Packages – India Holiday Packages – India Travel Packages
ORMs are a massive benefit to productivity and security for about 80% of your database access. The problem is that people expect to use them for 100% of their database access. For that last 20%, they just get in the way and cause more problems than they solve.
why wouldn't others do the same?

Not many people have $160m to throw around on the Turkish stock exchange. It's a riskier market than the more established western ones.
No. It can just be a market maker. More movements and liquidity = more traders and investors. No one wants to trade or invest in dead markets.
It may be worse, but it's a lot more democratic. Now we are moving away from that two way street into something much more monopolistic.
The original goal was to implement a runtime that could run multiple languages, similar to Perl's Parrot project, but targeting Python and written in what was basically a subset of python. It so happened that the resulting implementation ended up being very fast in some situations, the commercial world adopted it, and the project basically pivoted to being "the fast python runtime".
6.824 Distributed Systems: Spring 2016
The labs are great to learn the basics of distributed systems.
https://news.ycombinator.com/item?id=11177438 (14 days ago, 71 comments)
Logic Pro X 10.2.2 Crack and Keygen Mac OS X Free Download
> Of course frameworks take alot of effort to learn.

Trick is to pick the framework you'd be forced to write anyway for your project if you didn't have one. Then learning comes naturally.
Joomla vs Wordpress vs Drupal, How to Pick the Right Platform?
I second that. Well written Scala code is simply wonderful to read. You learn so much just by seeing how people solve the problem much better than you. Its probably because Scala is so terse, you get to see the logic behind the code much easier than a language with lots of boiler plate.
The zerohedge article is misleading (e.g. "And yes, it does appear that hackers managed to bypass the Fed's firewall") and lacks any semblance of objectivity.
Defecting how? Going to another country where there are no taxes at all?

You're also assuming that these things don't provide a net benefit. If my taxes save a life at the age of 20, then we get a huge number of years of productivity and haven't "wasted" all the money on their education. Money used to help drug addicts reduces crime and policing costs. This is not some zero sum game, £1000 from me given to those who need it more than I do can end up benefiting us both.

And finally, I donate to charity not because I think it'll necessarily directly benefit me financially, I just think it's the right thing to do. I would be better off if I didn't, but that doesn't stop me.
This is false. Nginx will spawn new workers with the changed config and gracefully shutdown the old ones once the new ones are online. There should be no drop in traffic or dropped requests while this happens.
We started with Scala when we were a startup. It's worked out very well for us: our orchestration layer in Scala has been maintainable and scaled well as the organisation grew, and the power of Scala has meant each change is small and focused (i.e. doesn't have the verbosity and boilerplate of Java).
52 Women Making an Impact on Product Management?
I love the idea, I can't seem to be able to integrate Facebook in the 'How to redeem' section though. It shows it's possible on your landing page but it's not there when I'm making my reward.

What about being able to customize the data needed from the users before sharing? One of the key things we need from our users is their city.
It's not generally that bad unless you want the latest and greatest. For example, on Debian, you can easily install Perl modules from APT instead of CPAN (which I've found temperamental in practise). The only trouble is that the modules are often older than those you can get through the dedicated PM channel (since obviously the maintainers have to package up their release in line with Debian standards).

Package management is still a much better idea than manual dependency installation - even NuGet for .Net is an improvement as it supports automatic restoration of dependencies at build time. However, as we are immersed in so many different platforms and technologies, it is extremely difficult to have a one-size-fits-all PM. Linux PMs are probably the closest.
https://metacpan.org/pod/Data::Dumper::GUI

AFAIK, no one has written a terminal version yet. There's a TUI framework called Tickit which would make writing one quite easy, I think.
Whoever it is seems to have skipped from one local brokerage to the next honing his system and turning the latest, Yatirim Finansman, into the biggest net buyer on the market by far. YF is elsewhere explained to have represented ~2% of the market prior to this actor deciding to use it as his brokerage.

It is very difficult for me to credit a market maker with that sort of impact on net buys, unless the market maker is very, very, very bad at their job.
@cookiecaper: Something like what you describe is happening.
New music collaboration site