skysight-inc/HackerNews huggingface dataset:
Ruby took off because of Rails. Rails' convention over configuration defies Ruby's flexible nature. It feels more like Python.

People prefer dumb unambiguous code over clever code. That's why Python and Rails succeeded
Personally, no, I'm not even recycling tin or glass since I don't own a smelter. But recycling should be an industrial process, I am just to pay taxes on damaging/hard to recycle materials at the time of purchase and pay for the rubbish pick-up. If for the average citizen "recycling" means anything more than separating biological waste from recyclable solids, then it's done wrong.
Ask HN: Who has successfully migrated from Opbeat?
We've been using Opbeat for error reporting & logging at our web development agency. We are a small team (5 developers), but with a relatively large number of projects for a team of our size (70+, growing by a couple a month). Since Opbeat is being retired in May, we're looking for a replacement.

The things we can't live without:

* Django integration
* Slack integration (errors posted to a channel as they come in)
* GitHub integration
* Optional but would be REALLY nice: a way to import our projects from Opbeat

What are former Opbeat users using, and would it be a good fit for us?
That "which" (not "who") is kind of astonishingly misogynist -- effectively referring to the wife as "it" not "her"). Yikes.
Genes can be selfish without the individuals who carry them being selfish. Because genes are carried by a group, and the survival of the group means that the gene will survive, so self sacrificing behaviur can be selected for.

That isn't to say that people don't instinctively care for their own children. Although maybe there may be no such instinct and we are just taught from birth to do so by our own parents behaviur - which some may not learn. Maybe. A lot of things seem to be a mixture of nature and nurture I guess.

Just that, it is possible for behaviurs like the one we are discussing to be selected for.
As a Django developer, I wouldn't give up the Django ORM for the World. It's very expressive (albeit a bit verbose if you want to do non-trivial things — but you can do them), extensible, and all around a complete joy to work with.

It's the perfect balance of getting out of your way for trivial things, and letting you write your own SQL where it's required.

https://docs.djangoproject.com/en/2.0/ref/models/querysets/
From the study :

"For the action 'have one fewer child,' we relied on a study which quantified future emissions of descendants "

Now imagine people taking the plane, say 40 times in their life : 401.6 = 64 and living car free half during, say 40 years : 2.4 0.5 * 40 = 48 => total = 64+48=112.

So by changing the way of life, you can make as much as your "one child fewer" proposal. What I say is that the "one child" scenario is not much better than changing the way we live.
I like the part "We used it because it was there. Please hire some fucking software developers and go back to writing elevator pitches and flirting with Y Combinator."
Apparently a movie has been in development hell for about 10 years now, can vaguely remember Colin Farrell being attached to it.
You're incorrectly assuming that a shit giving parent will have shit giving kids.
+1, female Starbuck worked great
if you mean embedding actual SELECTs in your code then no. Calling stores procedures is a much better more maintainable solution. Your app shouldn’t have to know anything about the schema just from a separation of concerns view.
I get it. But it's their children battle. (Not to mention that Idiocracy is not coming, general intelligence seems to be not decreasing, despite the claims to the contrary.) Why should the people who decide not to have kids be held responsible for the failure of evolution? They didn't invent or promote the mechanism..

In my view, to say "you should have kids because then stupid people will win" is as much a rationalization to have kids like "I do not have kids to avoid environmental disaster" might be a rationalization for something else.
Large sportsbooks balance their risk by tracking whales and sharps and doing this in secret on other sportsbooks
I’ve personally learned about many medications without a known functional path, but with eons of use. As for side effects, those are often similarly documented. You’re basically pointing at a part of the medical field.
This is un-broken as of 2018-03-09[1,2,3]. `brew install python` installs python3, but it only installs a link to this at `/usr/local/bin/python3`, not `/usr/local/bin/python` (as it did for a while).

In other words, `brew install python` now complies with PEP 394[4].

$ brew install python
…
==> Caveats
Python has been installed as
/usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
/usr/local/opt/python/libexec/bin
…
$ ls -l /usr/local/bin/python{,2,3}
lrwxr-xr-x 1 osteele staff 38 Mar 22 11:23 /usr/local/bin/python -> ../Cellar/python@2/2.7.14_3/bin/python
lrwxr-xr-x 1 osteele staff 39 Mar 22 11:23 /usr/local/bin/python2 -> ../Cellar/python@2/2.7.14_3/bin/python2
lrwxr-xr-x 1 osteele staff 34 Mar 31 12:27 /usr/local/bin/python3 -> ../Cellar/python/3.6.5/bin/python3

[1] https://brew.sh/2018/04/09/homebrew-1.6.0/

[2] https://github.com/Homebrew/homebrew-core/issues/24812

[3] https://discourse.brew.sh/t/python-and-pep-394/1813

[4] https://www.python.org/dev/peps/pep-0394/
The story got retracted in total by NPR: click on the NPR link. It seems that Jeffrey Ervine, the self-proclaimed anti-cyber bully advocate, had fabricated everything from start to finish, to help his Bridg-It business sell its products. Congrats NPR and all the others here! Way to go!
That's what I'm thinking, my 7 year old is very pro environment. It's easy to offset his carbon footprint as a child and he's been interested in conservation from a young age. 10/10 would recommend
I think one of the biggest mistakes is that 3.0 didn't have "PREVIEW RELEASE" right in the name. People started counting the day it was released, meanwhile the developers didn't have any expectation that (many) people would use it in production.
Fantastic tutorial. Easily-understood bite-sized chunks instead of tedious, hour-long lessons. Got me through React after several failed attempts. Well done Dimi.
Having used both Liquibase and Flyway, I prefer Liquibase. For what it's worth, Liquibase does support raw sql migration too: http://www.liquibase.org/documentation/index.html
A Taxonomy of Technical Debt
How do I downvote?
ORM, mapped to views for more complex stuff.

That said, mostly I use Clojure and there’s no actual mapping to do. I use a library to create dynamic, composable SQL queries, but mostly have macros to generate crud statements. Everything gets returned in namespace qualified, idiomatic Clojure maps. It’s all then covered by Clojure Spec so you know you’re forming and passing everything around correctly if you need to.
This is my answer as well (mostly). Earlier in development when you are iterating on your data model and just trying to write a lot of code, an ORM can help move things along quicker.

But once your project is more established, well designed tables and well written SQL could have large impact on performance.
HCOL areas probably make this viewpoint more common than it otherwise would be. It's hard enough living in Bath as a couple on the median wage, and having children makes things very difficult financially.

Choosing between living in a really nice city and having kids is a difficult choice.
I'm on your side on this.

For websites that are completely CRUD based, I believe ORM can help a lot. But if you can about performance/scalability, writing your own queries (Even with some sort of library like knex for example that doesn't hide much/do magic) I believe performs/scale much better.
Sometimes I wonder if the opensource movement, with its perennial “update anxiety”, is actually busy generating an industry of legacy maintenance. In a way, it’s a natural extension of the original “development is free but you pay for support” idea, but I don’t think anyone openly elaborated it into a long-term revenue-generating strategy. It looks like a slam-dunk, to be honest, with the only caveat being that work is extremely unfashionable.
TED 2018: Tech pioneer wants end to free net services
Should you use Material Design?
There's a science fiction novel inside of your comment that I would like to read.
This battery advance could make electric vehicles far cheaper
Uh, and who do you think does all those things in a society?

Population reduction is not sn overnight fix, no, but it is not in effective practiced at scale. Even a 5 % reduction in population over the next couple years would likely offset any flagrant increases in resource usage (equally distributed across earth, of course).

Enough people die every second to make simply not adding to the human population a viable solution.

And it will happen anyways, if enough smart people don't exist, laws of the universe are such that all the stupid ones will get into a resource war and kill each other off.
Note how many of the senators who voted to expand surveillance programs and the NSA became suddenly very concerned for privacy. They just wanted to try and dunk on him and get in a sound bite.
Now Vitamin D3 and K2 1000iu 45 mcg
"the senators elevated him to a kind of co-equal philosopher king whose view on Facebook regulation carried special weight. It shouldn’t."

Why not though? I assume he holds more sway than any senator of any country.
There was another interesting publication about Alzheimer's Desease last week: It appears to be possible to detect the misfolded amyloid‐β protein in a blood sample many years before symptoms develop:

http://embomolmed.embopress.org/content/early/2018/04/04/emm...
The problem is that the world you're arguing for is one where I get all my friends to sign a contract before I give them my personal details. Nobody wants that, not even in exchange for whatever Facebook provides. It's a perverse expectation rooted in some kind of idea that all human exchange must be regulated by some contract.

And thieves are indeed liable for returning money.
Wouldn't they still need to handle customer support for international customers? I see your points but I still believe that updating your car using a USB stick is too complex for average consumer.
How the extended rule of China’s president Xi will influence Africa’s future
> good-practice security measures

+1 for that. Even for super small projects, I use an ORM, because there is always some user input that needs to go to the database query string. Life is too short to maintain every single query.
"In the original Parc Place image, the glyph of the underscore character (_) appeared as a left-facing arrow (like in the 1963 version of the ASCII code). Smalltalk originally accepted this left-arrow as the only assignment operator. Some modern code still contains what appear to be underscores acting as assignments, hearkening back to this original usage. Most modern Smalltalk implementations accept either the underscore or the colon-equals syntax."

https://en.wikipedia.org/wiki/Smalltalk#Assignment
How often do websites just trust a security question for verification? I thought they usually ask it along with something else like along with a password reset email.
Hand-written SQL is not intrinsically faster than ORM generated SQL. The instances where ORM's have worse performance is typically due to application errors like n+1 queries or forgetting to batch updates. If you actually know what you are doing you can typically do the same optimization on the ORM level.
14/04 Andrea Damante  Nikita Costez – Telgate (BG)
Yeah there is learning curve for ORM too. Never blindly use ORM without checking the queries it does to your DB. Enable the logs to see what it does, evaluate them, enhance the slow queries, if you don't know how, change those to raw sql.

I would never give up the development speed that using ORM gives me. And from experience there are at most half a dozen queries that I convert to raw sql in a huge project.
While 33 and 34 are true (33. Excel is a good tool for working with CSVs 34. Excel is an OK tool for working with CSVs), there is one reality that makes them irrelevant: when working with data that is in any way or form touched manually during its lifespan (that includes 'looking at it'), dealing with Excel is inevitable.
Where Slack stops short, Otixo takes over
Otixo is built from the ground up to help teams and their content work more easily together. Otixo handles complex file systems that are scattered across multiple clouds and gives you the tools to work they way you want. Share entire folders, set unique file access permissions or fully encrypt your critical files no matter where they reside.

Collaboration is enhanced by a powerful discussion “Workspace” channels that lets your team interact with each other no matter where they are. You can also connect services/apps to your channel to get notifications of changes that happen outside of Otixo to make sure your team is always informed from a central location.
Are you referring specifically to certain Chinese exchanges where this could be done without a commission? Have there ever been any accusations that U.S. exchanges like Coinbase and Gemini engaged in wash trading?
I don't know, but I just assumed they use it everywhere. They have a very good mapping of related terms and a fairly consistent mapping.

A visible example is when you look for organisations and they have a classification against it.

e.g. Google IBM and they call it "Computer manufacturing company" - these classifications are different to many of the standards for specific sets of data
Yes it's meant as a little bit of self depreciation on a name that's a personal reminder: "don't be the big butt plug"
But it is a ref. It's an alias for the last commit of a particular timeline, as I said above.
Introducing Snallygaster – A Tool to Scan for Secrets on Web Servers
4chan calls this the 'soyface'.
We have an in-house migrations tool. It has a base schema and then plays migration files of raw SQL queries. When the playlist gets to taking too long, we reform the base schema and reset the playlist.

We have to think through all schema and data migrations due to the volume of data we have, both being ingested and being stored. And then we have to plan around the schema to be forwards and backwards compatible with the application or applications that use that datastore, allowing apps to update their usage out of band. And we have to do all this while ensuring as close to zero downtime as possible. Using raw SQL allows us to not worry about obfuscated complexity; we know exactly what will be ran. And for anything that might be rolled back, we have that ready to be ran. Sometimes that is not just doing the opposite queries.
Use an ORM.

Use an industry-standard ORM -- Hibernate, ActiveRecord, SQLAlchemy, whatever is the done thing in your language.

There's just no reason not to. Onboarding new developers becomes easier. Your common queries (fetch a record by PK, fetch some associated records by their FK, etc) require little to no thought, and complex joins between multiple tables become relatively simple to represent. I don't know of a single ORM that doesn't also allow you to execute raw SQL and get back objects, so in the case where you really _do_ need to do that, you can.

Yes, there exist counterexamples where you're doing very cutting-edge stuff with your DB that most ORMs can't handle. If you're doing that you aren't asking "should I use an ORM," you've already made that call and skipped this thread.
They are a form of corporation. It even says so in the name.
Who could forget Mehdis baby, useless and overpriced disaster. And how to recover? by doubling down with CD32!
Pretty sure they got sold or something a bit back. There was also this: https://lifehacker.com/ad-blocking-extension-ghostery-actual...
I think age, or the stage of life you are at changes the way you think about these things radically. The same way we think we know everything when we are in our teens and the whole "adult" world is clueless. When we are young adults (20 to 35) we tend to think we will never want children, but some people later find that they change their mind. I personally believe you should follow your natural instincts (easier said than done).
It was a solution looking for a problem like block chain. It's the same reason Google is still the dominant search engine. Because it's simple. Semantic web didn't mean anything for our grandmothers so it was always going to be niche.
Interestingly, it was my favorite line from the article, and I strongly agree
People with moral compass (and possibility sanity) such as yours pretty much show that self regulation is poised to fail and support the need for broad legislation.
Does it honestly matter?
Thank you for pointing it out, I've fixed it. English not being my native language and all.
That massive chip on your shoulder is weighing you down.

If you really think something like that is happening (big if - I’ve gone through so many py3 flames...), the only answer is: because people love the language SO DAMN MUCH that they will overlook its warts. And the next logical step would be to find out how an independent research project, staffed mostly by volunteers and without a marketing budget of any sort (and not running in every browser nor shipping preinstalled on the most popular operating system), ended up with this sort of mindshare.

There might be some good lessons there.
Thousands of hacked websites are infecting visitors with malware
Oh ho ho, it is _not_ that simple.

Any code with a lot of assumptions about text encoding or integer division is going to be terribly broken after 2to3. It very much does require manual intervention unless you're doing very simple scripts.
Responding to your own commnent only, I don't think that is necessarily true. Read some stories from the Revelation Space universe by Alistair Reynolds for a good example of how space can be as vast as it is, yet still traversed within human lifetimes and within known laws of physics.
I've recently started writing all my scripts in Python 3 as I need to future-proof some things. And it just works now. No problems. So if you tried Py3 years ago and had issues, try again today.
Dnata inks agreement to acquire Qantas’ catering businesses
I prefer a hybrid approach. I like to use an ORM for simple object manipulation and access. So for creating/updating basic models and simple object retrieval. When I say simple I mean queries like “where id =“ and other very basic where statements. Anything more advanced I prefer to use raw SQL.

SQL is a language unto itself and it doesn’t really need a layer of abstraction. I’ve found a lot of people use an ORM as a crutch instead of really learning the true power of SQL. I’ve spent too much time fighting against the ORM trying to get it to replicate what I want to do with SQL.

I find it much harder to maintain complex queries that are in an ORM. My personal workflow is to develop queries directly interfacing with the database and then more or less copy and paste the solution into code. If you use the query builder in the ORM you have to make the conversion from SQL to code, which I find to be pointless. SQL is very expressive, easy to read (once you learn it), and portable. Every ORM is unique and has its own syntax and style.

My one exception to where I prefer the ORM query builder over raw sql is when I’m building SQL that is heavily machine manipulated and has a lot of logic paths. Like for example a custom csv generator or an advanced query form. In those cases I find wrapping code logic around raw SQL to be quite messy and error prone. It flows much nicer when the builder can generate the SQL around your logic.

In either case people should learn SQL. Even when you use an ORM the end result is SQL. Understanding SQL makes it’s easier to debug problems, improve performance, and answer the hard questions. I also think it just makes someone a more well rounded developer.
47. CSVs are an API

48. CSVs are useful to make machine-2-machine interfaces

49. CSVs for importing/exporting data eliminates all those pesky programmers taking up too much time with the API design

50. CSVs are real time

51. CSVs are a robust mechanism to export/import data
Programmers believe in various falsehood's please check everyone https://github.com/kdeldycke/awesome-falsehood
If I remember right, elasticsearch query are pretty insane to begin with, so it's another problem.
I operate my own mail server. To send and receive email, I use the imap and smtp protocols. No need for the web there, unlike Gmail captives.

There was this thing called "newsgroups", some day before my time. Wasn't the web.

IRC is still a thing. So is XMPP. Isn't the web.

I'm not sure what you mean by "internet without people". There are plenty of people outside of HTTP.
I'm not saying the solution is an ORM, but "fear" is not the only reason people avoid SQL: https://news.ycombinator.com/item?id=1510177
I've had to deal with CSV data and Excel a lot in my career, and I learned one trick (sorry) a few years back that has made my life so much better:

Here's a scenario I bet many people have faced: Export an Excel sheet to CSV that has high-ASCII characters in it like accents. The export gets mangled when you load it into code or a text editor after. You eventually just upload it to Google Sheets and export it from there instead. It works but it's a pain.

Instead of exporting it as a CSV from Excel, export it as a UTF-16 TXT, which is basically a TSV file.

That will correctly preserve all the character encoding.

I can't promise this will work 100% of the time but it has resolved many many encoding issues going to/from Excel.
Right, the more important widely-held falsehood is "If you tell people not to edit your CSV file in Excel, they won't."
Oh yeah the recon and support teams are some of the best tools we've had for reducing risk.

At the very least it highlights high priority obstacles, like whether an API is running properly or able to do what it should. And system analysts are awesome for making sure a sales team doesn't overpromise.

Support teams are great too. Like if you have a huge, expensive, time constrained project involving a technology like Firebase, it would be worth it to have a Firebase expert sit around the office to ask questions to. It's often more cost effective than throwing more programmers at the problem. At some point, extra programmers just conflict with one another, but support won't.
If you're fasting to lose weight, then you're probably also calorie restricting at those other meals anyway, and so eating later in the day and taking the "food coma" into the afternoon is better for productivity than in the morning (for me).

I went through a phase of only eating lunch at 12pm - so I'd be fasting for nearly 24 hours daily (of course, tied alongside severe calorie restriction meant I was losing weight at an unhealthy rate). Whilst probably horrendous for me long-term, and raising quite a few questions about my general health, I felt fantastic doing that. Some days I even felt like just randomly running along the pavement I had that much energy.

So, there might be some science behind it, honestly not sure - but that anecdata does make it a compelling thing to try.
If 'illoyalty' is intended to avoid the negative implications of 'disloyalty', I suggest that in this context, 'independence' is more appropriate than anything suggesting that customers owe some sort of allegiance.