skysight-inc/HackerNews huggingface dataset:
You don't have to define 'self' in Perl code, but you should. You don't have to check if a key in a dict exists, but you should. Not doing these things, and the crappy code that results, are part of why people make fun of Perl.

$ cat > foo.pl <<EOF
use strict; use warnings;
{ package Foo;
sub new { my $class = shift; bless {}, $class }
sub method {
my $self = shift;
$self->{"hash"} = { "thng1" => shift };
my $key = $self->{"hash"}->{"thing1"};
$self->increment($key);
}
sub increment { $_[1] + 1 }
}
my $count = Foo->new()->method(33);
print "count: $count\n";
EOF

$ perl foo.pl && echo "Program succeeded"
Use of uninitialized value $_[1] in addition (+) at foo.pl line 12.
count: 1
Program succeeded

The debugger is telling us about an uninitialized variable in Foo::increment(), but the bug is really a missing dict key in Foo::method() due to a typo. We never checked if it existed, Perl didn't care either way, and the program didn't even fail. In code that's more than a page long, good luck spotting that...
As someone who's very un-knowledgeable about the stock market - is there something special about the $1 mark? Isn't it arbitrary how the total market value of the company is divided into individual shares?
I thought I was the only one to put debug code in the first column. (The code doesn't last long; generally debug code in the first column is expected to be removed very soon; debug code that lasts longer goes in its proper column.)
> The shell pipeline runs on a machine that can be found in a retail store today, rather than requiring an elaborate download/build process.

That argument points to the fact that your “view” of the whole topic changes the assumed definition of the problem that was given to Knuth to solve. Read once again the original text: he was supposed to illustrate how the “Literate programming” could be ised while writing a program which solves a given program. It was definitely not “write an example of calling the existing pre-written programs”.

And, of course, it was all in 1986, definitely not “to target the machine which can be found in the retail store in 2018.”

McIlroy already behaved as the goal had been different than it was.
Hubble was also designed with that stuff in mind. That the issue with lots of things NASA does. The always make everything depend on each other so they can say that its 'the only way'.

Thats how we ended up with thee uterly insane SLS, Orion, Gateway architecture.
The City & the City by China Mieville
States Race to Catch Up with Electric Scooters
> The antidote to bad speech is more speech.

That is just a foolish phrase by a Supreme Court Justice. Unfortunately, most Americans seem to take it as Gospel.

Many people all over the world disagree, including centrist and far-left people.
I have read the first 4 Artemis Fowl books. Does the quality drop after the fifth one?
>When I lived in a condo or apartment they could other leave a special key for big boxes in your normal mailbox. You would leave the key in the special mailbox for later. Or they would put it in your rental office.

Exactly this. I sorta hate it, we have 2 boxes for like 12 units and one of the boxes keys was lost before I moved in so we have 1 box for 12 units with people getting packages almost daily it means I have to rush home and rush to the office to get my packages.

Since moving in it's considerably cut down my Amazon purchases, unless I can time them to arrive on Saturdays or Sundays when I'm home. I'll actually delete my cart sometimes if something isn't going to come on a Saturday or Sunday haha.
Yea you cannot do molecular meta-dynastic micro transdusevelociraptatable programming
Back when I was doing lead coder and tech PM work, I'd see these ads online for contracts for projects that were just getting started.

They were just getting started -- yet there was this ton of technical frameworks they just knew they needed.

For the ones I knew, I went ahead and applied, of course. Even got a few of them. But it always amused me that they could be so sure of all the frameworks and tools -- and not have a clue as far as to what the code was going to do.

This is just a nerd version of "we've formed a club and are looking for other cool kids to join"

Fine enough, I guess. Sure were a lot of those projects that failed, though.
Overdraft software licensing
I think you are putting the blame on the wrong entity here. It isn't google or facebook who are to blame, it's the large news and media companies.

Google or facebook doesn't care which creators get paid. They actually want a variety of creators to get paid. The large news and media companies care greatly.

Vox, huffingtonpost, etc are media that are fairly new and they thrived in an open environment. But they are struggling because large established news and media companies have pressured google and facebook into giving them preferential treatment. So traffic that may have gone to vox, huffingtonpost, etc in the past is now being redirected to the nytimes or cnn.

You may have a medical technologies site, but if google or facebook has to favor large news sites over smaller specialized sites like yours, then you simply won't be getting much traffic.

Look at youtube. It's now mostly CNN, SNL, John Oliver, Will Smith, etc recommendations. Look at google news. Go look at reddit and any other social media platform. What used to be a user driven platforms are now traffic drivers for large media companies.

This is why it's so strange to see smaller players supporting the established media in attacking social media. What do you think will be the outcome? Social media is going to serve large media corporations.

Facebook nor google cares whether your medical site or the nytimes gets the view. They are middle man taking a slice of the ad revenue. They used to be pretty fair and showed the most relevant results. If your article had more traction than the nytimes article, your link would rank higher than the nytimes. Now, it's almost certain that the large established media companies will get the first billing.
Maybe with ubiquitous accurate facial recognition we could name and shame these individuals. You could then be walking around and identifying criminals as you go, denying them service, food, shelter, or water. We could create isolated communities of criminals, wall off the rest of the world, and deliver ourselves from evil.
What if there were a browser plugin that would generate large amounts of fake data, and sent that to ads/analytics/trackers whenever they popped up, in addition to preventing the actual user's data from being sent?
No an insight does not have to be communicated to someone else it can purely be for my own benefit.

Insight and value IS two sides of the same coin, that's the point.

You try to make them separate but insights without value are per definition not insights. It's the very point of insight that it has some value:

1 : the power or act of seeing into a situation : PENETRATION
2 : the act or result of apprehending the inner nature of things or of seeing intuitively

OTHER things can have value too but insights cannot not be valuable unless you don't mean the ability to see into a situation or understanding the inner nature of something is valuable.
>> massively undercutting the legacy competitors (ULA)...

I think that has been a mistake. Undercut them sure, but if they charged more they might not be seeking funding right now. They should be optimizing profit at this point (to fund new developments) and it's not clear that's what they're doing. I've never heard them talk about pricing other than what they charge and how they hope to lower those costs.
I don't own any of this stock right now, but I have been keeping an eye on it.

For this particular stock, I'm apply the Peter Lynch strategy of investing in regards to Blue Apron. https://www.investopedia.com/articles/stocks/06/peterlynch.a... Mostly buy what you like and know.

All of my other trades are algorithmic...
I have a seasonal project that spins up around this time every year. Last year, I chose F# for a (relatively small) component of the project and I was not disappointed. I don't have access to the customer's systems, and usually with Python there's a bit of back and forth where I have to fix bugs that only customer is able to trigger. My F# program worked flawlessly the first time and has caused no complaints. I'm excited about writing more F# this year.
> If I could invest in SpaceX, I would.

So true! I would love to invest in SpaceX
For the same reasons that some people choose to divest themselves from companies which they have personal moral disagreements with, some people want to invest in companies that directly or indirectly align with their views. I don't believe the comment above was meant to be taken as a purely financial move.
You're still talking about words, but the issue is waveform sound. An english speaker would hear "black bird" and use rhythm and context clues to parse it into words and then into the appropriate idea. A non-english speaker might hear something like "blekabirt" as the waveform sound is interpreted through their particular linguistic habits, then it would be rejected as a non-word sound
If you’re a front end web programmer, I would tend to agree with this advice because web frameworks are a little insane right now.

Apart from that this is another spin on “don’t learn X learn one level deeper.” A few years ago I read something on HN telling everyone not to learn C but x86.
Time reading novels (or doing anything else for fun) is time not spent improving, which in this all-against-all knife fight world is foolish.
> I'd call it a legally grey area, with the commercial sender often likely filing an insurance claim and re-sending the lost merchandise.

Really I think that's more a customer service nicety than anything the company would be legally required to do. Seems like everyone has done their part to fulfill their obligations once the package hits your doorstep.
> that are sometimes wrong

That's not gradual typing, just the most common implementation of gradual typing (e.g. in Dart, TypeScript, Python, but not e.g. in Clojure and Perl 6 AFAIK). Although maybe this is just a "no true Scotsman" argument...
They recently added meals that take 20-30min rather than 30-55min and it has made a world of difference, not to mention they expanded the menu. I also find some of the meals tastier because they're simpler rather than using too many ingredients. I still get the occasional bland one, but they have improved.

As a company I wouldn't invest in them. The amount they spend on advertising (e.g. really pricey podcast advertising) with a high churn rate is concerning.
No reasonable expectation of privacy in a security camera situation.
Disintermediation did happen. I can reach my fans directly. Many independent shops have their own website. But disintermediation doesn’t mean guaranteed customers, just that the independent shop owner doesn’t have to pay $1000 in rent every month to sell.

Disintermediation is the cellist being able to sell on iTunes for $0 to anyone in the world, compared to having to ink a record deal and get lucky just to be in record stores.
In California, New York and Rhode Island it's illegal to place a hidden video camera in a place where people have a reasonable expectation of privacy. These would be considered hidden video cameras. Not sure the severity of the charges in those states, but in other jurisdictions recording audio of conversations without all-party consent violates wiretapping laws and is a felony.
> My approach was to revisit that underlying need, and I settled on a data model that simply prohibits cyclic data structures, so memory management doesn't have to be more complex than reference counting.

Not sure I'd call reference counting elegant or efficient either. It has a lot of problems, like spurious updates which kill performance.

If you've already ruled out cycles, then you've ruled out a large class of expressions in your programming language. Perhaps you should revisit region-based memory management to see if it's sufficient, as that will give you optimal space and time use.
> How would you know which way of writing React will be less painful, or what questions you need to ask yourself regarding the architecture of your app? Without keeping track of what's going on in the community, how will you make informed decisions.

Write your application logic in easily testable vanilla JavaScript and use React for rendering application state into DOM.

Note that the React docs won’t teach you this. They’ll tell you about Enzyme but they won’t tell you how to make React more of an implementation detail and less of a “framework” that your entire application is tightly coupled too.
Blockstream Satellite Asia-Pacific Phase 2 Coverage and Upcoming API Launch
Because he was not engaging in the sort of activity that the law was intended to address.
Tartarus was also the place where the Titans (The Elder Gods of Greek mythology) were cast when Zeus and his siblings ascended to Mount Olympus (Zeus's father Chronos(Saturn) included).
I've never used Blue Apron and I'm curious - how much actual cooking do you do with a typical Blue Apron meal? Are you preparing, mixing, cutting, etc. or are you primarily mixing together already prepared ingredients and timing them as they cook? Could someone who has never cooked use Blue Apron as a starting point to learn basic cooking skills?
It was though

https://www.artima.com/intv/pyscale.html

"So I never intended Python to be the primary language for programmers, although it has become the primary language for many Python users. It was intended to be a second language for people who were already experienced programmers, as some of the early design choices reflect. On the other hand, intuitively I probably stuck to many of ABC's design principles. Because although I had my criticisms of ABC, I borrowed many of its valuable elements, which eventually made Python a great language for people who aren't ace programmers or who are just learning. We now have a large community of people using Python as an educational language, teaching Python in schools. These people aren't and may never be professional programmers, but they still find some programming skills useful." -GvR
You'll get delisted from the NYSE if you fall below $1/share or below a certain market cap for more than 30 consecutive trading days.

Being delisted is generally a very bad sign, and it becomes much harder for shares to get traded.
Sounds legit, few million years of going on a long ship ride as a rite of passage (get it?) would do that.
The problem is the extremely small niche it fills. The market is people who have enough time and patience to cook their own meals, but not enough to grocery shop and look up a recipe. If you're new to cooking that's one thing, but I'd imagine many users eventually "outgrow" the service as they become more skilled and/or realize how much the convenience is costing.
I frequently have to when copy/pasting code in VS Code and it assumes the wrong indentation level.
I think it's not, it's just about better people grabbing everything. At least in the IT field, richest people i know hardly work a lot (or better said, at some points of their careers they did work whole lot, but what they did then didn't make them any money).
Not a stock market expert by any means, but human psychology has a major impact here. That’s why stocks tend to find floors/ceilings at nice round numbers like multiples of ten or whatever. Likewise to a machine a number is a number but to a human who’s evaluating the stock, seeing something less than $1 is a red flag. Someone please correct me if I’m off!
Specifically when learning and applying compiler development, advancing to more complex use-cases (code optimization, parallel compilation), programming language theory etc? Do you still use BNF Grammars with Parser Generators, or do you use Parsing combinators? Are you using a specified IR like LLVM's or if not why is that your choice? How do you deal with targetting multiple Architectures?
Previous discussion: https://news.ycombinator.com/item?id=18700144.
Fair point, technically.

But Python predates C# and Java.
There's definitely a use case for these services. It's just a fairly narrow one.

- Willing and able to cook for, ideally, more than one person

- Able to plan a week ahead for the most part

- OK with paying a non-trivial premium to have a lot of menu planning and shopping be handled by someone else

I tried Blue Apron and thought it was "OK" but I could never really make these meal kit services work out for me. t obviously works for some people though.
Is that true? They used to label it something like “experimental landing” on the timeline, but lately it’s just been “landing”.
Hard to sell your workers on changing the game when you've got that mindset. They get some of the best because they actually want to change the way access to space works.
VICE recently did a short Fukushima disaster piece:

https://www.youtube.com/watch?v=yGWKL_PBUs8
This unfortunately runs counter to common sense and the OP.

I think the OP is trying to encourage a broad and deep understanding of CS, even if they don't see the value in "soft skills". The culture of programming interviews seems to encourage a lot of folks to ignore soft skills and focus on CS only to point where it helps getting past an interview. That doesn't help anyone, but how will we ever change the industry?
Top Colleges Are Enrolling More Students from Low-Income Homes
Your comment reminds me of frustrations I ran into when going the opposite direction in college.
I majored in mathematics (focusing on pure math) where the goal is typically to produce a solution which is as elegant and readable as possible. In the couple of programming classes I took for my minor, I tended to follow this same approach. If I could write a sexy three line recursive statement that solved the problem in O(n^2) rather than some convoluted nest of loops and tests that did it in O(nlogn) I wanted to go with the first one! It was really hard to make the mental shift from trying to produce something elegant and concise to something fast and memory efficient.
We're in a universe where yes it did because the package was opened while driving or just happened to spray glitter in the thief's (or potentially a third party not associated directly with the theft) eye.
Or in other words, you're 99% of people who will ever hear the number
> In this video, the Waymo isn't avoiding a crash so much as potentially causing a rear-ender: https://youtu.be/vJovT6nsxB0?t=14

wtf. This is a shitty example. If you either (1) read the captions on the video or (2) watch their full video where they talk about this, you'd realize that the waymo car stopped because a car off-camera ran the red into the intersection and that braking actually was avoiding a crash (or rather, decreasing the severity of a crash).

https://youtu.be/spw176TZ7-8?t=41
The Pragmatic Programmer
Clean Code
The Clean Coder
Domain-Driven Design
Growing Object-Oriented Software, Guided by Tests
Continuous Delivery

I have a confession to make: I haven't read any of those books, and I'm not really planning to.

I have read some other broad-spectrum programming books (Mythical Man-Month, Code Complete, Design Patterns, Peopleware, some lesser known ones). I've read a summary of DDD. I've read many blog posts linked to from HN relating aspects of those books. But I've never read that specific set of books.

I wonder if I'm really missing out much by not having read them, but I'm not motivated enough to find out by reading them, because there's other books I have on my reading list first (e.g. currently re-reading DDIA, after that I have Tufte lined up). Also, I never get signals from my surroundings that there are gaps in my skill set that those books would fill. Besides, having read some books is already a leg up, since many (most?) programmers don't read books.
That's not entirely accurate. It depends on where you are and what the video camera is recording.

I'm also not sure that creating a hoax device with the intention of surreptitiously recording individuals that also damages their property and releases a chemical agent would be considered strictly "a security camera".
Better yet, we could wall in the criminals and declare the inside of their "cells" to be the outside, thus walling them out.
Show HN: C++11 single-header HTTP message parser/constructor
I would say the main reason they are stored underwater is mostly because they need a place to transfer heat to lest they melt and cause a critical mass of spent fuel.
Is it necessary to observe the tenets of Christianity to call oneself a Christian? Anecdotally, I find little evidence for it. People mostly use their religion to validate their pre-existing lifestyles, not to redesign them.

Imagining a torment for someone who has wronged you is a rather effective method of ablating away the desire to enact revenge physically. It also leaves more room for ironic and humorous punishments.

"Dear theological construct, please take mercy on this guy who cut me off in traffic after driving on the hard shoulder to pass a bunch of stopped cars, and do not send him to a punishment in Hell wherein other cars are freely zooming around on the highway, while his is perpetually boxed in by semis and garbage trucks. Nudge, nudge, wink, wink. Amen."
Simplicity is usually efficient and elegant.
Robbers and burglers basically have immunity now because the police is busy with... I'm not sure what.
Most of the hate is coming from the left, but this is "acceptable hate" if is directed at white/straight/christian/men, or other bogeyman they can come up with to justify their eternal victimhood.

The divisions are only getting wider, and it is helpful to neither side. When people say racism is on the rise, they couldn't be more correct. White-racism is on the rise, and tolerated. The increase in white supremacists I see as largely a reaction to this. I'm not a selective racist and I despise racism in all of its forms.

Sexism too. Sexism against men is also very real, especially in tech. A diversity quota is a sexism quota. A person's gender should not factor into a hiring decision at all.
Well that's quite different from putting a CCTV on your front porch... which isn't a felony.
Ban everybody who do not agree with mainstream ideology please. It's one and only truth. Google is not evil and Facebook and Twitter are build freedom of speech in mind
In some areas perhaps. In my neighborhood the police respond to any property crime, and pretty fast at that. But ... maybe we are just boring.

Perhaps there are some areas in the US where this is a problem, but I don't know if it's safe to generalize that the US is degrading to third-world status just yet.
> Fusion plants, on the other hand, produce only electric power.

Fusion plants produce exactly zero electrical power. Someday they might. They don't now. The complaint was that we shouldn't talk about the cost of developing fusion power because someday it might be magic. But it's not magic, and the cost is non-zero.

And the relevant competitors aren't coal (which is already dying), it's things like solar and wind, which are already available, somewhat cheaper than coal on balance (but not gas, yet), and literally infinitely cheaper than fusion.

I'm not saying that fusion is a bad idea, but you can't shut down discussion about its very significant costs with a fairy wand and some text about improving the human condition.

Fusion power has been just around the corner for literally three quarters of a century. It's time to start prioritizing the thing that have actual, measurable effects on the human condition.
Personally, i’d like to see them focus less on super-rapid releases, and more on consistency of builds and stopping major breakages across platforms.

It makes it much more difficult to maintain downstream builds when the build-system breaks completely for indeterminate amounts of time.
Can’t tell if OP was being sarcastic or not