skysight-inc/HackerNews huggingface dataset:
> Their comment went on to claim that given their hypothesis, allocation optimization shouldn't be impactful.

And what was the hypothesis? That the code for the compiler itself should use the features imagined to be used by the language, just like your example:

> One of the post's optimizations was to use Cow<str> over String

Then:

> allocation optimization shouldn't be impactful. Yet this post demonstrates otherwise

"not impactful": It looks to me like that: 36.526s vs 32.373s for the longest compile tested. It is measurable, but not something that I as the programmer will be able to notice. My definition of impactful for the compilation times is "at least a factor of 2" not 1.1.

And the claim is, once the language possibilities are actually used. If the code is written differently, of course not much is expected. The result of a moderate speedup exactly shows that the language possibilities weren't always used in a way to minimize allocations, but the difference is still not, for my perception, significant (10% is hard to recognize unless measured or the actual compilations last hours and not seconds). But I still claim that much bigger potential gains are the actual changes in the algorithms and the data structures. The data structures especially can hugely change the result if they are made to be really cache friendly, and together with the changes in algorithms such modifications have the potential to make an order of magnitude speedups, if they are actually possible.
> There's absolutely NOTHING wrong with having $_POST['whatever'] inside a controller as long as you're doing proper checks.

The last part is why this is a problem.

The truth is that programming is simply too difficult a task for human beings. Software is so complicated with so many moving parts that it is impossible for anyone to understand all the details of even the simplest piece of code. This is why we have operating systems, programming languages, and frameworks. Or more generally: this is why we have abstractions and tools: to make it possible for humans to actually write somewhat functional software.

This is also why you not only want languages, frameworks and tools that let you do the right thing; you want them to prevent you from doing the wrong thing. You want to reduce the number of things you have to think about to the absolute minimum, simply because no one is smart enough to fully understand everything that's going on. That is why you want things like strongly typed languages.

Sure, you can make something that works and is safe, if you make no mistakes. The point is that we want to take the human ability to make mistakes out of the equation as much as possible. Sometimes it is inevitable because of what a language, framework or tool is used for. In the case of PHP there are a lot of ways to shoot yourself in the foot that do not need to exist in a high-level language such as PHP, and that is the reason why PHP sucks and is a bad idea. It is way more fragile than it has a need to be.
"...that allows cheaper personnel to keep producing quality party. Slowly that process will suffer from time rot."

I'm not so sure. I think its binary.

I think there's always a touch, a qwan, assumed knowledge, skill & craft, or something that's not captured in the SOP.

The master baker in the shop next door made the most delicious brioches. Left to start her own catering company. Whereas her trained replacements, using the same recipe, ingredients, and gear, just made adequate dinner rolls.

I spent years perfecting my sunday morning pancakes. Big and fluffy. While best ingredients help, there's still a touch to make them just right. I can't even delegate flipping the pancakes to untrained family members.

I've seen this with other trades too.

You and me, we're too close to our work (tech) to fully understand the value add we bring to our work. But you miss it when it's gone.

Maybe this is why the master / apprentice setup seems to work well for knowledge transfer.
Life happens. Being kind shouldn't just be restricted to junior devs, or even just devs for that matter. I've seen many folks be flatout mean and unrealistic to adult freelance developers from low-income-countries. It's a serious problem.
Tai chi can help relieve chronic neck pain
This is so true from my experience working for companies using PHP. You can advocate all you want to clean up code, but in the end, if it doesn't create a new feature its not going to happen.
one more PaaS solution I found today - https://hasura.io/ built on Kubernetes and Docker. Thought this has some relevance here
The visual novel (think "Choose your own adventure with graphics") Katawa Shoujo, while not made by anons, has its origins on 4chan: https://en.wikipedia.org/wiki/Katawa_Shoujo#Creation
This statement wraps it up:

“Great. It sounds like you get it. I know that you can do better.”

Giving folks a chance to communicate what they learned, and then encouraging them to "do better," is the best way to lead.
Here you go: http://imgur.com/gallery/5P1N1GI

Summary: 4 chan users identified a training site of ISIS and pinpointed it on google maps. One of the users knows a friend of the Russian Minister of Defense and sent him the information, resulting in an air strike.
Interestingly, Facebook's algorithms also reward activity which has the effect of bubbling up group posts with a lot of drama.
MCAFEE LABS THREATS REPORT SUMMARY
If you like Pepe you'll like this download with 1250 Pepes: https://mega.nz/#!mUEkUABB!hawhAN8hV-tZI_5khyNkYiBKfhuryoE0C... (via https://www.reddit.com/r/megalinks/comments/54umk3/memez_15k...)
Even then, we can still send rovers more cost effectively than people! You can throw away the life support mechanisms, and so on, and get 550 tons of pure mars rover in your interplanetary transport. At ~800kg for a curiosity-level rover that gives about 600 rovers, instead of 100 people.

What to do with your 600 curiosity rovers on Mars is left as an exercise...
He's also got a Twitch stream (name: quill18). He mostly plays games but there's Patreon-funded content on the programming side now and then as well - the most memorable was probably him writing a simple tower defense game in an hour.
Deus Ex the Fall Hack Tool 2017 (Android/iOS)
Junior devs should also remember that whilst they might be trying to be kind, sometimes the support person you are trying to instruct probably knows more than you do.

I was a bit bemused when a young guy who had just gone into devops and sysadmin gave me a mini lecture on the importance of open source and contributing to it if you have the skills, and that I really should give it a go one day, because open content is amazing.

I didn't have the heart to tell him I'd gotten into a few of the LibreOffice release notes for work I'd done on the project. Nor did I feel like telling him I'd made significant contributions to Wikipedia. I think I sort of weakly smiled and tried to change the subject.
Agreed. Haskell and Python have type systems that work. Stuff in between, not so much.

Or: Maybe haskelltyping
Android-x86 Desktop Howto
Assuming this is in CA, you have a lot of tools and protections available to you as an employee.
Five 'Inefficient' Ways to Block Malicious Bots Targeting Your Website
Lainchan actually seems like a genuinely interesting site, with a better signal:noise ration than 4chan. Thanks for the link.
You have to fight people's acceptance of slightly lower quality if it means slightly lower prices? Maybe we can call it the Global War on Mediocrity? Like other global wars, it will result in a massive increase in mediocrity.

BTW when has capitalism not been about profits?
Also: It has a cool name. It's much better than 'slowsort'
Best way not to sound harsh is to ask questions. "What are your thoughts on ...?", "Is this really what you meant to do?", "Do you think there is a better way to handle...?". It puts the power and learning opportunity back to the other person and lets them feel the accomplishment of improving.

To the junior devs, when you screw up (and you will) own it and learn from it. Like public scandals, the cover up is almost always worse than original issue.
Rising economies don't give a fuck, but first they're still relatively small, and second it's not them that got us all here. Developed countries invest a lot now, but they've been polluting the world for decades/centuries and even now their footprint is still the significant part of the global emission. Only a few very underdeveloped countries can truly say: "Hey, don't blame us, we had nothing to do with it". The rest of the world is guilty as charged.
BMW reveals motorcycle featuring AI and AR
Isn't there supposed to be a code review before devs are allowed to deploy something to production?

Yeah, Brian screwed up. But the company has at least some fault for letting him get that far unchecked.
(Re)Configurable Clouds and the Dawn of a New Era [pdf]
Right, but the point I was making is that it isn't necessarily true that PHP is any better at getting to MVP based on number of successful projects alone.
No. Dark matter is needed to explain the rotation curves of individual galaxies. That there were more small galaxies in the early universe doesn't help with this.
I entered 'Dialogs of Plato'. There was an indirect match to 'Works of Plato'. Picked that. None of the recommendations were particularly relevant. Short of scraping Amazon type approaches, it's hard to see how solid book data would be available.
Even if you had effective nuclear pulse propulsion, you'd still need reusable chemical launchers to get them off the surface of Earth. Nuclear pulse engines are generally not something that you start up inside an atmosphere, for both safety and efficiency reasons.
Adeptus Evangelion, Chapter Master, and Ruby Quest all came from 4chan's /tg/.
Ask HN: How to sell a successful Android app?
I know about sites like Flippa but I'm looking for a high quality sites since my Android app makes ~10k/month via in app sales and subscriptions. Sales have been growing, it started out with $300/month, $1k/month, and been growing ever since. Now that there are active subscriptions and also new users every other day, I'm grossing ~10k/month.

It started out as a fun side project and took off. While it allowed me to quit my full time job and travel the world for over a year, I'm now off to new projects and looking to sell the app.

Anyone here has experience in selling a successful mobile app, and what's the process? What should be the asking price?
I would imagine your doSomething JS function will fail and produce an error in the logging console because doSomething is probably not expecting to receive an undefined. Unless you've written it to handle that scenario and fail gracefully which is probably a good thing to do anyway.

Your whole example is silly. Stuff like this is why you write your PHP/JS/Python/Ruby code in a tool like WebStorm/PyCharm/RubyMine which does enough code analysis to realise you've made a typo and flag it.
As a counterpoint, Facebook, one of the most secure companies in the world, is also the largest single PHP deployment in the world.

C is also a language with a frankly horrific security track record; at least an order of magnitude more so than PHP. But C continues to be used because it is a useful and relatively simple language despite its warts and pitfalls.[1]

Security is just as much a business process as it is a technical feature.

______________________

1. Granted, one of the major design goals of Rust is replacing C, but you get the point.
Is that so uncommon? I mean, maybe I've been particularly lucky in my career but that sounds like standard behavior to me. I mean you already feel bad enough for blewing it that it's no use to add some more to it. And as the article says it happens literally to every one of us at some point. So unless your boss is a genuine bag, that's the expected way they should react
Same here, KIO was incredibly useful. As a young dev, I was amazed at the ability to open a file on the server as if it was on my hard drive. I still have fond memories of KDE in the early years before flashy looks became a must have feature.
Doubt it.

This is a pretty standard google first interview. Nothing out of the ordinary.

The recruiter will not suffer for following standard proceeding.
Those are desktops are quite riced. My experience is that it often looks good in screenshots, but then end up being constant fight to get all aspects of your DE to adhere to your now pimped desktop experience.

https://imgur.com/T5AMpdG is a good example of bad design. White space is all over the place. Distance between icon and icon description is too short. Distance between search box and icon grid is too long compared to distance of menu bar. I could go on...
Can Your Business Survive Without IoT Solutions?
VMWare cloud on AWS
101: Never deploy on Fridays.
Sorry, maybe I am misunderstanding what feature you are talking about. Al of the solutions mentioned are ones you can run on your own hardware, as well as their respective 'cloud' services, using the same APIs. Are you wanting some sort of live migration of vms between the two?
My only advice is to not worry too much about it. One of the first things a new dev needs to learn is how to separate critique of the wok from critique of them as an individual.

IMHO, code reviews should be clear and concise. They aren't a place to go out of your way to soften blows. I expect the same when my code is reviewed.

Edit:

It occurs to me the parent may have been referring to an informal review or one with the intent of mentoring. Asking questions, like the sibling mentioned is a great way. My comment is geared more towards a formal review.
This was literally the biggest issue for when I started at my first job. We had a team member who was terribly condescending and talked down to everyone but especially me. You could tell that he hated the fact that he was on a team with a junior developer and took every chance he had to made sure I knew I wasn't as good as him. It makes a terrifying environment to ask questions because who knows what kind of response you're going to get.
I notice you conveniently ignored the meta-programming capabilities of Python which would allow your "nonsensical" improvisation to work just fine.

Brush up on your Python skills before talking rubbish.
Related slack php usage thread,
Taking PHP Seriously, is at https://news.ycombinator.com/item?id=12703751
London’s phone boxes are being transformed into tiny offices
Unlike the poisoning of Alexander Litvinenko with polonium-210 (to show agents don't defect and live), unlike military exercises in plain view of your adversary (to show your military prowess), and unlike displaying new shiny hardware at a parade (to make your adversary wonder about their capabilities); covertly tapping (or cutting) cables is done covertly, and as someone else mentioned has been going on by "both sides" for decades. If it was done overtly, the country who was being spied on would be tipped off and stop using that means of communication. I think willvarfar is closer to correct, they are probably mapping and looking for things, for future use, not exploiting things right now. I still think one of the things they're looking for, if they're actually over the cables, are other taps that have been placed by others before, or maybe looking for static ASW equipment laid there to detect subs.
Current submission title is editorialized.
Sure, and I don't see them blaming Brian in any way.
Very true. It's basically an interface to a C framework.
Profits come from satisfying people's values [1], if more "higher quality" doesn't lead to more profits, it isn't valued.

As an aside, I'd be skeptical of Artists who produce "Inspiring work" which refuse to find any takers.

[1] negative externalities aside
The correct objection to John Oliver being quoted in a journalistic context is simply that "John Oliver is a comedian, not a reporter".

The fact that he occasionally rises to a level of journalism that real news outlets fail to reach should be considered an indictment of such outlets, not an endorsement of Oliver's standards.

> I would recommend listening to sources that state their bias from both sides.

s/both/all/ , unless you're caught in the fallacy that there always two and only two sides to a story.

Anyway I used to think along similar lines, but to be honest, the rise of Berlusconi, Fox News, "shock jocks" and so on, basically turned me off to the whole idea. There is no "balance" to be found when one side is completely unhinged and wilfully lies all the time. By all means learn to discern bias, but it's entirely acceptable to simply discard sources altogether when they are too poisonous.
In the sense of comparing PHP and Rails, then no PHP is not a framework. Codeignitor, Laraval, Cake, Yii; those are PHP frameworks and fair comparisons to Rails.

I can (and have) just grabbed Rack and rolled most everything myself in Ruby and it has way less overhead and is much more performant than Rails. Ruby also has it's own templating language; ERB is part of Ruby core.

So comparing PHP to Rails is a bit apples and oranges.
Unfortunately there are a non-negligible number of managers that take to the 'stick' approach and will yell at people, etc. Many people seem to be okay working in that environment so there doesn't seem to be pressure to stop that behavior.
Ubuntu 16.10 ups cloud ante with Kubernetes, OpenStack
If what it inherited from was inconsistent, why wouldn't it be too?
Thanks for posting this. Some great discussion going on there.
Ask HN: What is the bus factor at your company?
I don't think so. Dark matter is needed to explain the contents / behavior of galaxies we can see. This article is talking about galaxies we can't see.

On that note, here's some interesting / related recent news in terms of a galaxy we have a hard time seeing: https://www.washingtonpost.com/news/speaking-of-science/wp/2...
In the early 90s, Starbucks marketing research showed (internally) inverse relationship between latte and Twinkie consumption. Think coastal vs flyover. More a validation than heuristic.
5900 online stores found skimming
This varies highly depending on the organization. I've worked at places that do it both ways. Particularly in small places when resources are tight, teams are distributed, or there is a non-code safety measure in place (e.g. Business decisions are made ex-post of the code running dependent on the quality of its output), code reviews pre-deployment may not be necessary and can even be harmful (due to wasted resources).
The new features in C++17
The problems start when you notice that your untyped key-value store has a bunch of NaNs where you were expecting a number. At this point, all you can do is pray that those numbers weren't very important, in the grand scheme of things.
Ask HN: What is the biggest thing you learnt during your time as a junior dev?
I'm a few months into my first ever programming gig and am interested in finding out how other developers did early on in their career
> I see the HTTP transaction test as "did you ever get curious as to how exactly a core part of the current Internet actually works".

Sure I did.

Then I forgot most of the details because they didn't matter, and I knew I could look them up quickly if I ever needed to write a HTTP client/server for some reason.
10 Kitchen Details That Will Skyrocket the Value of Your Home
I'd imagine that food-born illnesses are mostly attributed to unclean surfaces at various points in food logistics. From the farm that grows and distributes, say, lettuce to the cutting board and dinnerware used by chefs.

I'd imagine that most restaurants/food distributors employing pastry chefs have other people to do the cleaning. So the likelihood that one could point a proverbial finger at a pastry chef as the source of a food-born illness is probably extremely low.
Rocket engines have been probing these kind of technologies for decades, and it's been proposed for re-entry vehicles too. Called transpiration cooling. Only more recently, with additive manufacturing, it's become a lot cheaper to integrate into the structures. I haven't read of anyone actually using it.
Well ironically, in this case, Verizon's problem with Yahoo is allegedly about customers' privacy.
Well, he'd have to sooner or later. Better start learning as soon as possible :)
Link to dailymotion php deployment usecase - http://engineering.dailymotion.com/php-7-deployment-at-daily...
I don't ask multiple questions like FizzBuzz, but I do ask for FizzBuzz. (I will explain the modulo operator if necessary because it doesn't come up that often in web development and people many forget about it until prompted.) Everything else about FizzBuzz (loop over a range, use a conditional, define a function, compare, etc.) is so basic you would think you wouldn't need to test it - but then you run into a person with 10 years experience who can't do it.

It's a (sadly) useful screen. Even more sad when you realize how popular and widespread that particular question is.
Juniors in particular are guilty of this, I've found - spending the last few years solving problems, they often come into the real world looking at most problems as 'simple' or 'a waste of time', and tend to be dismissive of non-programmers or domain experts. Some young people can also be surprisingly arrogant. College tends to be a very different experience from the working world.

Good on you for being patient and not letting them drag you into a place that would have humiliated them, though.
To the submitter, and quoting the HN posting guidelines:

> Please don't do things to make titles stand out, like using uppercase or exclamation points, or adding a parenthetical remark saying how great an article is.

For the other HN reader, it's somewhat tedious breakdown of the world demographics (continent, language, age, income, access to internet, religion, etc), shown using Lego-style minifigs. I say "tedious" because it would be a lot faster to read as text or set of tables than an animated video.
I'm working my way through these videos as way of refreshing my basic knowledge of stats.

https://www.youtube.com/playlist?list=PL5102DFDC6790F3D0

Very well explained.
I find that tone works when the developer has clearly thought things through.

Other times, though, some developers need a very stern review. Things like: "Don't name your tests test1, test2, test3. Give them descriptive names," "Follow style," and "this does not belong in the dependency injector," and "don't screw with event publishing logic, filter this out in the event handler in the UI" are warranted when a developer isn't taking the time to think through his/her changes.
I think I'm not making my point particularly well. It's also possible that my point itself is terrible, as evidenced by the raft of downvotes and the fact that I was banned from posting this comment until hours later. I guess HN is only a place for popular opinions.

Your Python example is undeniably progress because Python is still in wide use, a better example would be if you improved the performance of Dylan (or some other language that has long since fallen out of use). For your flooring example, imagine if you were contracted to work on someone's house and went, "Instead of using fresh floorboards, we decided to install floorboards that have been sitting out in the rain for 40 years because we enjoyed the challenge!"

I've seen enough people make comments on how contributing to free software is a fight for the future of political and social freedom, since those who control technology will have a disproportionate impact on the systems of power and I find that hard to square with the attitude that free software no big deal and we should just have fun.
Number 3 is actually pretty good. Of cause it's all a matter of personal taste. Personally I'm not to keen on the whole flat look, it makes it less obvious which UI part are clickable.

I'm probably not a good person to consult on these things, because I actually think the default fvwm was pretty good.
Things Found Inside Cheap Chinese Products