skysight-inc/HackerNews huggingface dataset:
Even if you have a few callsites and just copy-paste the same function it can be readable - I've heard that called un-cooked spaghetti code. Everything is still nicely layed out and can be refactored without too much trouble if you so chose. The problem starts with cooked spaghetti code where everything is all mangled up and references are all over the place.
Like most procedural/generative art, it's a lot more about the tools than the product.
Deepfaking Nicolas Cage into the MCU Using Autoencoders: An Implementation
I got into this exact argument a while ago.

We have an informal, internal audit of our code base to highlight problem areas, trends, and note if something we're doing is problematic over time. Someone suggested a hard cap of 30 lines per function.

I immediately had a rebuttal with code. We have some functions that are mostly mappers. Ingest code from one place, transform/cast/sanitize/clean it, then send it elsewhere. The types of information for some of these functions can make some of these behemoths 200+ lines. I asked my peer if they would rather follow the trail back-and-forth of 20+ helper functions or look at one monolith knowing that it only maps data?

They wanted helper functions.

To counter, I highlighted a mistake that I made years ago. I traced the revision of a file where a function mapped data that used helper functions. I pointed out that I did the exact thing suggested. There were many helper functions of 3-10 lines mapping data and returning back to a single place in a file.

I'm not that smart. Rather, I've done a lot of academic, clever, and sometimes outright dumb things, I haven't forgotten those lessons learned.
This looks like the thing you do to park benches to stop homeless people from sleeping on them.

I fly with two little kids (and a tiny wife), any of which can lay across a row of three seats like a bed. If you can find a non-full international flight, that can make all the difference. Unless of course you have hobo spikes on the plane.

Pass.
The biggest civil trial in U.S. history will start with two Ohio counties
From the pictures it looks like they might have taken off 3/4 of an inch off each arm rest.
Silk Road Drug Dealer Accused of Laundering Millions of Dollars Through BTC
maybe he was a Java programmer?

all joking aside, the reason he's doing classes seems to be an intention towards making a FooStep (and/or a BarStep) which could then maybe handle generic Foo stuff (authentication comes to mind) in the future?
I fly in plenty of middle seats being a government employee. Nearly all of the window and aisle seats are booked by the time we schedule the trip, and we can't pay extra for premium economy. I'm an average size guy, 5'10, 170 lbs, and never have an issue sitting middle next to average weight people. On Southwest, I actually go for them first to get within the first couple rows and get off the plane quicker. I've never had someone fall asleep and rest their head on my shoulder as I've seen on TV. But I do have a small bout of anxiety as I'm walking down the aisle for the chance I have to sit next to an overweight person. You can't help but be touching hips the entire trip, and arm nudges quite often.

This solution poses a whole new set of issues already mentioned, but the real solution in my opinion is to relegate a few rows with only 2 seats for overweight people, priced accordingly. Public perception wouldn't allow requiring overweight people to book those seats, but I think a lot of overweight people would out of courtesy and their own comfort. They would be available to anyone who wanted the extra width as well, but you'd be less motivated to pay extra for it if you didn't need it.
Everything I Know as a Software Developer Without a Degree
May not work these days. The British were half decent and still they killed thousands of people before they left India. If the protestors continue non-violently, we'll simply see them shot with rubber bullets and carted off, or barricaded and starved out. Countries these days are willing to escalate into violence since every major country has more than enough blood on its hands and prefers tacitly looking the other way unless there is something in it for them.
A Defense of Radical Meritocracy
I don't think the military are mindless drones, but yes, it would surprise me to see large-scale defection because history is littered with incidences of military being used successfully to repress citizen populations. This happens, in my opinion, for two reasons: 1. Militaries spend a lot of time breaking down and rebuilding recruits into order-following killing machines.
2. Target populations are demonized to the point that your neighbors/friends can be made to look enough like an enemy "other". Add groupthink to that and you've got a deadly situation that's not really a moral failing on the part of the soldier but a corruption of their motives by propaganda.
Basically Android apps default architecture.
In 2018, Air France more than doubled its profit, to 409 million a year. Paying more only gets you so much with these huge airlines. They don't reinvest everything you give them. Their goal is mostly to make more profit or increase share value, especially if publicly traded.
If the requirements are complex, then you list the requirements, what you're doing with each one, how they connect, and the code reflects that. Breaking it into functions and modules for that often does enough. At the least, the design documentation will facilitate understanding even if the code itself is harder to understand.

Spaghetti code is almost always just bad design and coding.
I don't think a single-aisle plane has 6 inches of corridor to spare.
Now this is a smart move: travel with little kids and a tiny wife, and leave the full-size ones at home!
I think there's area in between 1500 line methods and ravioli code
The dialogue in MGS5 was absolutely horrible:

1. Because of the change of voice actors, I literally could not tell who was speaking at any given time. Everyone sounded the same.

2. None of it was believable, funny, interesting or relevant. Peace Walker had a very similar concept in terms of storytelling (through tapes) and gameplay (base management), but was infinitely better. I just really did not care about any of the tapes in MGS5. In PW the tapes were funny and interesting and you actually learned something.
Thanks for the suggestions. I normally wouldn't talk about my personal life, but I currently have a good job and when they ask why I'm looking for a new/remote role, I tell the truth: my wife and I want to move to a small town in a remote area to be closer to family and there aren't any IT opportunities there.
Above 100°C? So saunas that are hotter than boiling water?
You will tire yourself out long before you change the minds of many SAs when it comes to code quality.

They're a breed with a very strong sense of "It works so I don't care", and honestly I don't really blame them.
Source on petro products becoming cheaper?

It's the natural inference from supply and demand (so I agree it's possible), but it's worth keeping in mind that oil is a very big capital-intense business. Extraction, multiple rounds of transport, and refining all have significant economies of scale.

Some of those scale advantages might break down if demand downscaled to any small fraction of current, which could make the fallout unpredictable.

I'm also not sure how fungible a barrel of oil is. That is to say, is the fuel fraction of current production easily repurposed for making plastics, or is that fraction more or less destined to become fuel of some sort? If fixed fractions are just compositionally destined for certain uses, a collapse in demand for those fractions could actually increase the cost of the remaining in-demand fractions since they still have to cover the costs of production.
Rails-Assets.org Is Down
Dhammapada (https://books.google.co.in/books?isbn=1590306066)
409 mm on what revenue? The airline industry is insanely competitive and generally has tiny margins
>I don't think we should have no recourse against a tyrannical government, but I just don't see how anyone is going to realistically go up against the US military and make even a tiny dent.

See Vietnam
Anyone interested in this idea should check out https://github.com/braintree/runbook
Have You Ever Tried to Sell a Diamond (1982)
It’s not quite the same thing as Recurse, but some of the previous instances of Iverson College look absolutely idyllic.

http://iversoncollege.com/
For real. I always think of this bit[1] while I'm riding in the middle.

[1] https://www.youtube.com/watch?v=qFx1Cpxpx1E
> Instead of reading about peaceful protesters being attacked you'd read about the military taking out insurgents

I'm curious. What was the last anti-insurgent war we won? I'll list the ones where we lost: Vietnam, Iraq, Afghanistan.
While I agree that people were thinking to achieve more when buying a 3d printer and then many realised it's not always easy and straightforward to print thinks in mind, I still wouldn't call this a hype.

It's an advancement and we are the early adapters.

Even in the current state, I managed to print many useful things, only by downloading 3d models by the fraction of the price I would be paying if I were to buy those things from shops.

I also realised that 3d printers are not the same as few years ago, they are more precise, accurate and handling the errors better than previous models.

So I am a bit more hopeful than you for the foreseeable future. :)
"maybe"..."in the future" is the root of much object oriented evil
This is the part that bothers me. They have a predetermined image of who they want to hire, based on nonfunctional qualities, like race and gender. If a company said they had too many minorities working for them and the demographic they really wanted to hire was straight, white males, it seems like people would be up in arms over that. But the inverse seems acceptable.
I’m worried the window seat would trigger claustrophobia in me.

I’d feel trapped in based on the arrangement shown in the images there.
I don't believe it, I've experienced it many times. Zero recline in the last row.
> even with an appropriate refactor, the codebase as a (fragmented) whole remains less readable and maintainable than a long spaghetti function potentially is

Personally (anecdotally), I don't believe that this statement is true. In my experience, an appropriate refactor will always be more readable than any spaghetti code. I may be wrong, your statement may be true, but without good examples of such refactors, who can say.

The above commenter is just pointing out that the example given in the article is absurd. Which it is. And with that, the argument is lost.
A refactored code and the spaghetti version are two sides of the same code. Just like any complex object requires multiple viewpoints to comprehend, asserting one perspective is superior to the other is missing the picture. It is a pity that modern practice is always one or the other. It is possible to have both. Literate programming is one example.
Given how "Hollywood accounting" became a popular thing, I'm not even sure if the published cost of new movies is close to reality. And how much was the movie production vs paying the popular actors.

There are just too may weird data points for popular film costs. For example each of Friends got ~$1M per episode in the last season, so that's $108M ($146M with inflation adjustment) just for main cast in season 10, vs $220M for "the Avengers". So the mission cost less than main characters in later seasons is Friends.
> The cause of all conflicts in Middle East is Israel.

Can Iranian women be in public without the hijab, Iran should first focus on giving equal rights to half of the population instead of blaming Israel for everything.
"A couple of inches" is seating gold. Although I'm 6'1' I've got relatively short legs and legroom isn't much of a problem, but I have broad shoulders even for my height. That means that if I'm in a narrow middle seat I'm spilling over into the adjoining seats, and there's nothing I can do about it. This is why I try to avoid Boeings - they tend to have narrower seats as a rule.

Seat width is something people should be talking about as much as seat pitch.
...if any big societal undertaking... seems motivated by religion, that's usually not the true reason behind it.

It's increasingly apparent that not even religion is motivated by religion. Since prehistoric times there have been economically unproductive but rhetorically skilled men who have desired strange sexual acts with typically off-limits partners, without the hassle of marrying or purchasing those partners. Those men have become shamans, priests, monks, gurus, and preachers. That's the purpose of religion.
Whoever takes the armrest first gets priority. It may cause your lifetime happiness to have a little more volatility but since everyone has the same random chance of getting the middle seat, still fair.
Haven't seen so definitive results...

For example, it is projected that wheat yield would decrease in India. Fine. But how much more wheat would we be able to grow in, e.g., Russia?
Both are very good examples of the point. Both are dominated not by free armed civilians protecting their rights, but by organised well armed militias that completely suppress the rights and freedoms of the general population in their areas of control.

Yes ordinary people in much of Afghanistan and parts of Iraq can get hold of firearms if the want to. It doesn't help them at all. They are utterly dominated by either the local militias in Iraq (Sunni and Shiia depending on their area), or by the Taliban in much of Afghanistan.

If arming everybody worked to promote freedom, then Iraq and Afghanistan would be free associations of local communities joining together to protect their liberties. That is clearly not the case, and it isn't the case in any country with weak government and pervasive access to arms. Guns everywhere make the weak weaker and the strong stronger.

Guns do not even the playing field. In practice they dramatically tilt the playing field even more in favour of those with a willingness and propensity to use violence.
Bots Were Born from Spam (2016)
There is no minimum scale, because those who start are working for companies which organize it. Try searching on youtube: beermoney phone farm

They run 3rd party apps on their phones which automate whole process and they get some percent of profit. I imagine that when they grow they can start working for themselves.
Phishing Blocklist
OpenAI partners with Microsoft to build new Azure AI supercomputing technologies
That's the tough part isn't it? It's just a cost benefit analysis. There's no "one true way". The Americans chose one end of the spectrum, the English the other. Both approaches worked out reasonably well.

That's not something either side really wants to hear these days.
You might have misread the thing I was proposing. If your application "keeps getting more and more complex due to the functionality requirements" then by definition there's no off-the-shelf library or service that can help. If your complexities are known in advance, you can choose a pattern which builds good, simple, composable code.

Honestly even if you're complexities aren't known in advance, it's still easier to build composable solutions out of off-the-shelf parts.
It's not a rare exception, it is only one of the possible motives of kicking seats. Suck it up or try to find an agreement with the person behind you. Talk directly with the child.
These are excellent, very much open questions.

I mostly wanted to point to the parent comment and say, "Things are not quite so pat." I should have explicitly said so.

Sometimes I think paradoxes exist to teach us that many things are not precisely true or false.
Instead of beeing what ? Cheese ?

TLDR : instead of being a god.
Photogrammetry of Apollo Moon Images Creating Free VR Experience
Scotland generating enough wind energy to power two Scotlands
> Well, he's gotten bored now and has decided to stop developing/maintaining it.

You can still pay the person to maintain the software or even outright hire him/her if the software is useful to your company.
I don't dare to call it spaghetti code because (among the other things) it's split in a lot of functions, but to give an example that's probably equally difficult to everybody, check this Erlang module that parses ASN1 [1]

A few hints about the language for the non-functional crowd, then my point

1) Functions can have multiple definitions and are picked top to bottom. The one that runs is the first one matching the arguments in the call.

2) Variables are Capitalized (and can't be assigned again, big surprise.)

3) Atoms (:symbols in other languages) are lower_cased.

4) The arrow (->), the comma (,) and the dot (.) do (more or less) what Java/C do with their { ; } characters (sorry, I have to keep it short)

You can start from the bottom and go through the get_token, get_line, parse_ComponentTypeLists etc, find where they are called and see how they neatly (IMHO) replace the switch statements in other languages.

Is it easier to understand? Hard to tell: if the problem is difficult the code won't be easy. Is it less tangled? I think it is. My point: some languages are messiers than others.

[1] https://github.com/erlang/otp/blob/master/lib/asn1/src/asn1c...
There's no reason to write a 1500 line function in any language that supports functions as first class objects. Those lines could all be broken down and split into separate functions to give the parent function more semantic meaning.
This brings me a lot of joy. Despite it being poorly-organized function soup, I hope being able to view a framework-free source was valuable to you. I learned most of what I knew from viewing source way back in the mid-nineties and that's a lot of the reason I chose not to obfuscate it in production so others could do the same.
Addendum - I may have been too harsh here. The page most likely is not infinite. You should able to scroll through the entire backlog of dev.to content to access the footer.

Seriously though, you can't just bolt infinite scrolling into the middle of an existing page if you have content at the bottom.

If anyone's curious, the footer contains: Home, About, Privacy Policy, Terms of Use, Contact, Code of Conduct, DEV Community copyright 2016 - 2019

They've duplicated most of that (but not the copyright) in the sidebar's "Key Links" box, so it's not as big a problem as I've seen on other sites.

If they hadn't, I wonder about the legal implications of making your privacy policy, terms of use, and copyright notice completely unreachable. And why keep them in the footer if you never leave it on screen long enough to click it? Just a "not my job" issue with whoever implemented the continuous scroll? Clearly someone thought about it long enough to put the links somewhere reachable, but not long enough to get rid of the old ones?
SnapGene 4.3.8.1 Crack Final Keygen Latest Here (2019)
1) it's false Venezuela disarmed people;

2) to say armed people can stop dictators, it's a totally braindead assumption.

Please, go understand how the world works.
Every now and then I open the active[1] section looking for interesting discussions, run a scriptlet to remove greyed-out comments[2], and add to a TTS software on my phone to listen to.

[1]: https://news.ycombinator.com/active

[2]: https://news.ycombinator.com/item?id=20006310
I would have expected something that sounds less like innovation for the sake of innovation and actually adds and benefit.
If you think getting the middle seat is random chance I’ve got news for you.
It doesn't say it's for commuter flights, just that those will be the first they'll try them on.
Ah yes, the "offshore" hive of villainy known as "The Netherlands" and worse yet "Greenland"... It's not even green!
How to Recognize the Real Senior Developer?
Inversely, it's relatively easy to abstract away the complexity of pointers (so we do), but useful abstractions that make race-y code impossible are horrendously hard to get right (so we don't).

Rust's borrow checker is a great example of the sort of complexity you _have_ to bring in to have your language protect you from data races.
In your place, I'd explain to HR that each department in your company will write requirements for individual job postings and interview candidates, so there's no place for vague requirements of this kind. They should focus on basic personality and career assessment, not specific skills and qualities.
That's not really a why answer - not a good one anyway. If someone built a customized cutting tool for a specific task, "I do not use scissors" wouldn't be a good answer to "why not just use scissors?" if they were indeed suitable to the task.
fake news, i Am afraid. HK hospitals confirmed no pregnant woman was treated or admitted for getting hurt at Yuen Long last night
Comments on HN call bullshit too readily, because it's easy to be a cynic. You can operate an entire career as a cynic and be rewarded for it, much in the same way cool kids can safely hate on everything and keep their cool status.

It's easy to criticize, and 10x harder to create.
> I disagree with this. I think something should be a seperate function only if it is (or likely will be) called from several callsites.

I disagree. I split out anything that I can describe/test separately. If I need to take a list and

1. Filter it based on custom logic
2. Sort it based on custom logic

Then I will generally break the filter and sort out into their own functions even if they're not used anywhere else. Each function can have it's own description and tests.
The word "obvious" appears exactly twice in the article, and in neither place is it used in a way I would consider condescending or insulting.
Saudi oil is still quite cheap to extract, so Canadian oil sands producers going bankrupt wouldn't stop all production.

Also, a producer going bankrupt means their assets are sold for pennies on the dollar which would enable a low cost producer to take over without the huge sunk costs of the original producer.
>Our planet will be fine with or without us, we are just hoping that it will be with us.

I like that, however I think hoping and doing something about it are two different things.
That's a great point. I hope they user test these things by actually simulating all parts of a flight.
It depends a lot on the person. I don't get distracted at all by anything on YouTube; it's about as entertaining as a library to me. Same with something like TvTropes. My distraction channels are forums like Reddit and FB.

Different people have different closed loops.
PyDev of the Week: Cris Medina
Don't keep me waiting
I actually enjoy HN's crazies as they're from an angle that doesn't appear elsewhere.
Vietnam. US won every single battle, but failed to achieve anything.

Civilian militias have an enormous advantage over organized militaries. Guerilla tactics.

Yes, special forces employ them, but never the less, you’ll never see a special forces groups throwing IEDs on insurgent convoys.

Unlike civilians, organised militaries have rulebooks to follow.

This is true especially in authoritarian states with centralised decision making. See: the six day war. When communications were out, Arabs became mindless drones and the morale was in the toilet. Perhaps not the best example because that was organised military vs organised militaries. However, for Israel, everything was at stake. It was either victory or total annihilation.
It only made sense in the context of cloning UNIX software and its relation to C.

Regarding safety it never made sense. Morris worm is now around 30 years old and lint was designed in 1979, with the expectation that every C developer would actually use it.
It's funny, decades ago China (CCP government) tired to get rid of Triads from Guangdong (especially prostitution and drug trade). They were probably happy Triads focused mostly on HK and Macau (and Taiwan + overseas?).

Now they "need" the Triads.

Also it seems this movie https://en.wikipedia.org/wiki/Ten_Years_(2015_film) is actually becoming reality.