jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
I've come to subscribe to a school of thought that says a constructor should never do anything other than assign its arguments to fields. Perhaps validate them, i suppose. But not compute with them - if you want to do computation for the creation of an object, write a factory method.

For me and my fellow disciples, it would therefore be really nice to have a constructor syntax that does this implicitly. So instead of writing:

class Customer {
new(customerNumber, name, address) {
_customerNumber = customerNumber
_name = name
_address = address
}
}

We could just write something like:

class Customer {
new(customerNumber, name, address)
}

Or, if you like Scala:

class Customer(customerNumber, name, address) {}

I'm a Java programmer by day, and some thoroughly depressing fraction of the lines of code in my codebases are of the form:

private final AmazingObjectOfSomeKind amazing;
private final BrilliantObjectOfSomeOtherKind brilliant;
private final CrappyObjectOfAnyKind crappy;
public Foo(AmazingObjectOfSomeKind amazing,
BrilliantObjectOfSomeOtherKind brilliant,
CrappyObjectOfAnyKind crappy) {
this.amazing = amazing;
this.brilliant = brilliant;
this.crappy = crappy;
}

Users of other languages quite rightly point and laugh at me for this. Now, Wren doesn't have those types cluttering up the place, nor does it have the field declarations, but it does still have unnecessary verbosity, and that verbosity provides crevices for bugs to hide in (add a parameter to a constructor, forget to add a corresponding assignment). It might be nice to add a dash of syntactic sugar to eliminate this problem.

Another facet of this school's approach is that objects are generally immutable. So instead of:

class Account {
withdraw(amount) { _balance = _balance - amount }
}

We would write:

class Account {
withdraw(amount) { new Account(_balance - amount) }
}

(Although in fact, a bank account might be one of the cases where we wouldn't do this, but never mind)

That gets old as soon as you have a few fields. Like:

class Account {
withdraw(amount) { new Account(_accountNumber, _sortCode, _balance - amount, _accountType) }
}

There's another bit of Scala sugar that is nice here - an automatic copy method which takes keyword arguments to override particular fields. Like:

class Account {
withdraw(amount) { copy(balance = _balance - amount) } // other fields implicitly copied
}

Might something like that might be useful enough to justify its weight?
This is complete BS, and just a wrong attempt at marketing promotion.

"OVO Energy has created software to identify when a user has sent a potentially unnecessary email and prompt them to be more thoughtful."

Oh really, and how much energy does that app suck up (and the resources to develop it)? A lot more than sending an email I'll wager, which is essentially free, if your computer and the internet is on anyway, given such low resource requirements to send an email.

And how much energy has this non/fake-news press release wasted? Hypocrites.
> P2P does not scale to large numbers of participants

I'm curious about this statement. Intuitively it seems there is already an algorithm to near-optimally distribute updates to a sparsely connected mesh network. You'd want two or three connections from each peer to another, not N:N. Optimal is not necessary as long as you have at-least-once semantics on message delivery; a node can just ignore messages it's seen already, as long as it's not too often. Is there a name for this existing algorithm?

On top of that you could overlay a symmetric session key and you'd have full E2E. Then central server would be session initiation only--which could still do authn/z to hand out session keys--and billing/metrics.
Let’s not forget that Bell also decided to spend $780M on an e-greeting card company. https://www.google.com/amp/s/www.thestreet.com/amp/story/803...

I mean, if he had flipped a coin on each decision, his expected outcome would Have been higher.
> If that’s not the definition of overkill, I dunno what is.

Or perhaps you are short sighted. :)

Look at all the drama and effort that we have had to go through over a decade or two to get past IPv4: if we went with "only" 64 bits for addresses, and we miscalculated and ran out again, we would have to go through that all over again.

It's the same reason why the ZFS folks (Jeff Bonwick) designed in 128 bit from the start:

* https://blogs.oracle.com/bonwick/128-bit-storage:-are-you-hi...
The (US) government today has a tax on investment returns. Tallying up the buys and sells seems like to be a much more complicated than keeping track of the total wealth.

The way you accomplish this is by asking everyone: "What's your total wealth?" and then doing random audits.
Around 2000. Initially via the Dogpile meta search engine, but after a while it became apparent that all the best results were coming in via Google anyway, so went right to the source.
Financially Independent Retire Early
I did work at a major cable company building customer premises hardware about 5 years back (the only reason I'm sharing this story). They were alerted to a major, easily exploited and REALLY stupid vulnerability in their system that exposed their core management network for the product to customers. They just hired the guy who reported it then fixed the problem 6 months later. The short-term mitigation was to put passwords on all their database servers (they were not there previously).

Security was just not a concern until they had a major breach. The security teams had been screaming bloody murder for a while, but could not get the product teams to allocate sprint bandwidth to the massive, coordinated security hardening effort that needed to happen to prevent a potential headline in the New York Times.
If you setup IFTTT then until that stops running which could be never??
I found a whole untrimmed beef tenderloin for $0.50 at Costco. The employees refused to let me buy it and ran to the back to get the rest of the incorrectly priced ones out of the cooler.

I was younger and didn’t press the issue. Now that I’m older I would’ve pressed the issue and grabbed the whole cooler but I don’t really want to get someone fired.

Who would you complain to if they refused to let you buy it?
> Why in the world would you want to exploit someone like that?

Ask some mega famous online .com's that (and their relatively newfound apps) :D
This certainly applies to grocery stores in Massachusetts, and is even printed up on an informational placard tacked to the register, so that the customer can easily read it.

Basically: First item free if under $10, or gets a $10 discount, rest of items of same product at lowest price. Does not apply if lowest price is 50% or lower than the highest price (which seems too high to me, given that there are legitimate sales at that markdown level.)
Summary: yes, unless you use video conferencing and screen sharing software, which is likely to be totally broken (but see Hello71's comment). The author needs to use Zoom, so he reverted to X11.
The article doesn't use the word "Internet" once...
I heard about dehydrated from PythonAnywhere [1]. I haven't ever been burned by LE from a Python library, but I have had issues in the past with the kube-lego Helm chart not renewing as it should (easily fixed by deleting the pod though). [I know kube-lego is in maintenance mode now in favor of cert-manager.]

[1]: https://help.pythonanywhere.com/pages/LetsEncrypt
For what it's worth, I've also noticed that right-click problem and some glitchiness with dragging and dropping.
The protocol mistake might easily be that they didn't include a security policy mechanism for coordinating Wayland buffers or something similar. It sure looks from the peanut gallery looks like they have a security model (graphical output is completely secret except to the compositor) that is insufficient in practice and users really want applications to be able to snoop on each other when required. That is going to be more difficult to tack on afterwards than it would have been to design in at the start. Security is exceedingly difficult to do after the fact.

Maybe they did consider all this and have a plan. But I havn't seen anyone write a "this is how you target arbitrary compositors with your toy screenshot program" article yet.
Maybe I'm being too wordy. It's not what you say, but the way you say it. If you're suggesting an alternative means, don't sell it upfront as "don't teach coding."
Psst - the https link gives a cert error!
I know from living in Seattle that they're a reputable credit union, but the fact that their home page gives me a certificate error is a bad pattern that trains users to ignore scary red messages. (The problem is that the cert is for www.becu.org , not becu.org .)
As a friend of mine told me, "I don't get it how my haircut can take 5 minutes and cost 25 [nevermind the currency here], while my wife sits there for 1.5h paying 150" - so I pointed out that HER haircut is actually cheaper :) Profound? Perhaps... On the subject? Quite so! ;)
what I take from that phrasing is :

"Like Mt.Gox but on the East Coast near Wallstreet, so HFT should push the nobodies out."

It doesn't make me feel any more secure on that particular exchange.
http://phantomjs.org/

http://jasmine.github.io/

Not trying to snark, but if you need to test javascript, use jasmine. If you want to acceptance/integration testing (depending on your definition of those terms) as a user clicking around your site to make sure the things you think happen are actually happening, use phantomjs (I'd also suggest using nightmarejs on top)
I'll give you that point. Although note that Russia, Iran, and ISIS are sanctioned right now, so keep that in mind for the short-term. Supply is BOTH artificially constrained and artificially inflated right now.

But it isn't obvious to me that gas prices should go up or down.

http://i.imgur.com/COkbBnD.jpg
Oh, ok :) maybe send a tweet @netgear or something then!
King offers a number of his stories to student filmmakers for non-commercial use for $1.

http://stephenking.com/dollarbabies.php
The bandana definitely helps!

Yeah, really appreciate a decent mascot for a project. I always think it's a shame they got rid of the old Python logo.

http://www.demiurgo.org/charlas/python-unittesting/img/pytho...
The plainly manipulative, superficial and dishonest argumentation of pg is the root cause of this.

I pretty much stopped reading after:

> where they then paid them the same as they'd have paid an American

pg knows full well that the argument of those who feel immigrant programmers are used as cheap labor is that wages are currently either being artificially depressed, or there is no shortage, or both.

By ignoring that, and using this BS argument, it's quite obvious that he has no interest in an open, honest debate about the matter. This essay, which consist of little more than superficial political propaganda, is certainly not a good starting point for such a debate.
Do as little work as possible. And deploy as much as possible.
I've found that it helps me when I get feedback, like I finish some major functionality or feature, I feel fantastic when I see it work and during my working time, I think about that feature and can't wait to get back to it. When I stop in the middle where there is no discernible change or a feature is not fully implemented, when it passes my mind during work or free time, I think about how broken it is, and I feel like I'm heading back to a broken bike, which is not too exciting.

It's hard, especially when a particular feature needs days/weeks of effort. For that sort of thing, you just need to persistent, I guess.
Their exits seem to be gone, too: https://globe.torproject.org/#/search/query=LizardNSA&filter...
"the idea of pg lobbying to flood the market with cheap programming labor is not only demonstrably wrong"

He wants the top programmers in the world to be able to come to the USA. But my suspicion is he has very little concern for your above average, but not great, USA born programmer whose wages are threatened by corporations that exploit and abuse the H1B Visa program.
OK, knock it off. This is exactly the kind of comment that's been leading to HN's oldest of oldtimers to conclude that there's been a decline in civility here.

edit: looks like he edited his comment while I was replying; his comment originally ended with, "I hoped your ilk would never find currency on this site, but I guess the day was going to come.", and was that way for at least 30 minutes before I replied.
Could you be specific about what was deliberately misleading? You've made the assertion but didn't specify what you were referring to. Sad to see that kind of silliness on HN.
In South Korea under-19s can't sign up for an MMORPG without their parents consent. There was also talk about imposing time limits and shutting down MMO servers during school hours but I haven't heard since I left whether this went into effect.

http://kotaku.com/#!5515459/south-korea-to-impose-overnight-...
Doesn't this confusion alone make it a bad name?
I would hate to have a self driving car... especially if it were connect to a network. Seems like it would become way to easy to kidnap someone, or drive their car into a wall or any number of other activities.
I'm 100% sure you wouldn't have done anything to be helpful anyways. If I wanted to talk to a troll, I would've went under a bridge.
I think that you are using the wrong metrics.

Defining the results achieved by a certain age is a different thing than defining the qualities that you seek to nurture.

By setting results based goals, you are putting your child in a subordinate pass/fail position.

Who are you to define success for your child? It is their life.

By defining some qualities that you would like to nurture in your child, and implementing strategies to help them develop, you would be acting as a supportive participant in their development.

Milestone thinking can be very dangerous in this context.
Pardon? I believe that's a little revisionist, as you stated, and what I was specifically referring to is "Currency refers to physical money."

You then list all the ways in which other forms of currency aren't currency, which is the point I disagree with. While I agree that a credit card isn't necessarily mapped to a tangible dollar figure, and that yes, it does refer to a line of credit, I disagree that it isn't considered currency on those grounds. Does a debit card more appropriately fit your definition, or is it disqualified because the actual dollars are elsewhere?

Regardless, I think all the relevant points have been made, and further quibbling on the point isn't likely to benefit anybody in particular, so I'll bow out.
I've had "The Gift" for a while. I think car mechanics have that one too...
> That's very true, but the important thing here is that it's deserved in the first place.

I don't think that's the important thing here; I think that whether it is appropriate for any person to exact it is at least as important in discussing whether punishment (which is an action) "makes sense". Even if a cost is viewed as earned within a moral system, if that moral system equally holds that it is immoral for any person to impose that cost on the one that deserves it, retributive punishment does not make sense in that moral system.
I can't believe this is posted on hacker news...?
Agreed. It seems like a simple typo e.g.

x = {} # tyep: Dict[str, str]

is a recipe for spending 6 hours wondering why you've got integers in your string-only dict.

(Assuming the interpreter ignores anything not matching `# type:`
Different credit cards charge different percentages.
You need to work very hard to acquire your first 10-20 real clients. Clients who are less than 1/20th of your annual income are not clients, they are customers.

Do whatever you need to to get these clients. Craigslist eLance, back alley deals, etc. Once you have them, you will keep getting new clients as long as you do good work, do a bit of basic marketing (the same kind of stupid simple SEO you would sell a client), and communicate well.

Once you have more work than you know what to do with, slowly start raising your rates, maybe $10-15 dollars per hour per year (don't raise rates every other month you'll look like a wingnut).
"What problems do you have with 7 pounds for airmail and 20 pounds for tracked airmail?"

That Amazon will ship me print on demand in two days for "free", lulu charges $4, my favorite electronic seller in China charges $2 per item (admittedly each item is lighter than a book) I mean, really, guys?

I'll buy the book, looks interesting, I'll just wait until distribution picks up. I thought about getting a unlicensed ebook copy from "the usual sources" and just donating about 25 bucks to the project, but I'll probably wait.

There's a business concept where you never say "no". If you don't want to do something, like, say, ship outside the UK, you just charge "F you money", or whatever the UK translation is, as a fee. "So how about you rewrite that backend in cobol?" "No problem, but that's going to be kinda expensive, like $750/hr, just so you know" "In that case, lets not do that" I see those kind of shipping charges and I hear this message being delivered. Its not that I can't afford it, its that I don't like being told to F off. Someone doesn't want to ship internationally, in 2015, well, ok, but then they should not be offended if they get made fun of a little bit.
Zephyr is right, it buys everyone the same insurance
No Office for Mac support :(
I agree with others - just put a brief bit of info to let people know. OK - it works really well for me. I'd like to be able to rename the files that are uploaded and I'm not sure how I give access to them to others, unless its purely via the URL (what about password access)? I still think you've some way to go, but its good. Some documentation and/or a video would be really useful

How have you created the drag and drop uploading?
The is absolutely the most horrible idea ever, and on so many levels morally and ethically wrong. First off, the $20,000 has to come from taxes; so this means higher taxes for people who are productive and produce in society. Probably would require atleast more than 51% taxes; what is the purpose of working if the government is just going to steal from you more than you make? Second, what is the incentive to better yourself, train for better skills, and get an educate when you are guaranteed a basic income -- there are no incentives. Third, politicians love the dependent mentality this creates: voters will never ever vote against the welfare state and so this lets the politicians to do all sorts of draconian legislation, because they can always threaten to reduce welfare if the citizens don't go along with the state -- and the citizens will always vote for more welfare. Fourth, this creates a bureaucratic state that can pick and choose winners and losers: instead of your quality of life being based on if you are a hard worker, your time and money investment and your risks/rewards, your quality of life is based on a central planning state sponsored bureaucracy. This can be politically motivated. Fifth, this keeps the poor poorer and the rich richer by eliminating the incentive to better oneself.
IPv6 gets adopted when the ever-dropping cost line meets the ever-rising cost line of IPv4, and not sooner. (And IPv4's cost line has only really twitched upwards; unfortunately due to the nature of this sort of rigid supply/growing demand situation with market forces being suppressed by the supplier ignoring them you tend to only see the price spike at the end of the supply. If we were being really rational about this we'd be raising the price on IPv4 blocks already.) Once that happens it becomes difficult to predict exactly what happens next, because as people marginally transition to IPv6, that causes the cost of IPv6 to further drop as people iron the problems out (making it easier), but the costs of IPv4 drop too as IPs become more available again. I suspect IPv6 will win if for no other reason than momentum, though; the perceived costs of not transitioning will become higher as it becomes the "in" thing to do.

The hands have been wringing over the past decade as people have overestimated the costs of IPv4 and underestimated the costs of IPv6, by quite a lot. But I suspect this will not be the exception that breaks the simple principles of economics.

Incidentally, some blame can be laid at the feet of those who designed IPv6 and took the opportunity to jam every wishlist item into it they could think of (to a first approximation), thus raising the price of IPv6 through the roof and causing the lines to fail to cross until quite late. Had IPv6 been an incremental improvement over IPv4, with a larger address space, the costs would have been much less (though still large and easy to underestimate) and the cross-over would have come much sooner. Perhaps it would not have come yet, but it would have been sooner and more graceful (since, after all, a global price curve is only an approximation, what matters are all the local ones).

A lesson for next time we need to redesign one of the Internet's core protocols: KISS doesn't stop mattering just because the problem is big! (Quite the opposite, really.)
Be sure to check out the "selective sync" folder functionality in their betas (which are pretty stable). Selective sync allows you to specify what folders you do and don't want synced on a machine by machine basis.

This allows you to use your Dropbox for personal and work, and only sync your work stuff to work machines and vice versa.

There's some great file versioning stuff in there as well.
Just an aside on histori.us, it's a useful feature, we wanted to do the same but never got round to it. I noticed today however that when you're logged in to Google, and search, there is the option to just search "Visited pages". Although a super-set of your bookmarks, it's still useful, and free... I'm not sure how long the option has been there.
Wow, cool stuff. Thanks for the info.
Personally I got depressed before I seriously started to try. I kept picturing myself at an old age wondering what could have been. So I at least know I'm avoiding that, and if I do succeed to any extent that'll be a big bonus.
These kind of articles are always a little lop-sided. They state, for example, that "The migration will save the government some 1.5 million euro per year on proprietary software licences."

License savings. Great. What was the cost of:

- Re-imaging those 120,000 desktops?

- Re-training the (I assume) 100,000+ users?

And what are the support costs?

What were they under MS Office? It's laudable, for sure, but I don't believe that F/OSS is cheaper. I'd like to see a real cost impact analysis that covers the entire program, from inception through to on-going operational management. And something that financially compares the as-was state with the current state.
How much of the military enrollment is based on taking advantage of the naivety and emotional charge of young adults that will then be (ab)used for hidden interests ?
It does not seem very far from terrorist organizations processes ..
Apple kept the bad old days alive with its own intentionally locked-in ecosystem. Maybe if they had failed more spectacularly in the 90s then perhaps today every company wouldn't be using iPhone lockin as a goal to aspire to.
Make sure putty isn’t expecting hardware flow control if your device doesn’t support it. Otherwise it’ll probably refuse to write to the port.

And yeah, rotate through the available speeds if necessary, but this sort of thing should be documented.
Dupe: https://news.ycombinator.com/item?id=26080270
I got excited because I thought maybe Emmy Noether was going to get a stamp. https://en.wikipedia.org/wiki/Emmy_Noether
I'd argue that it's because even though blocking IO is cheaper, it's very difficult to maximise performance in a multithreaded/concurrent context.

You could make faster code with it but I wouldn't want to maintain it and you'd have to throw an obscene amount of man hours at it to get that performance.