HN user

Sandman

2,622 karma

If anybody wants to contact me, feel free to send me an email: Themryl@yahoo.com

Posts193
Comments326
View on HN
arps18.github.io 1mo ago

Beyond the Prompt: Claude Code

Sandman
3pts0
fortune.com 3mo ago

AGI won't automate most jobs–because they're not worth the trouble

Sandman
11pts1
cert.europa.eu 3mo ago

European Commission cloud breach: a supply-chain compromise

Sandman
17pts0
en.wikipedia.org 2y ago

Longplayer

Sandman
2pts0
beletronics.wordpress.com 3y ago

Learn electronics by practice

Sandman
424pts79
spectrum.ieee.org 4y ago

Print an Arduino-Powered Color Mechanical Television

Sandman
62pts5
www.safalniveshak.com 4y ago

Ideas from 2021

Sandman
1pts0
gist.github.com 4y ago

BlueTeam CheatSheet Log4Shell

Sandman
2pts0
www.bloomberg.com 5y ago

GameStop Frenzy Reaches Biden and Powell as Hedge Funds Squeezed

Sandman
3pts1
thenextweb.com 6y ago

C++ creator hates that Bitcoin was written in the language he made

Sandman
2pts0
www.theatlantic.com 6y ago

The Arrogance of the Anthropocene

Sandman
59pts45
medium.com 6y ago

Learning the Hard Way: Microservices

Sandman
3pts0
www.zdnet.com 7y ago

Malicious Python libraries targeting Linux servers removed from PyPI

Sandman
3pts0
www.bbc.com 7y ago

Brazilians love baby talk

Sandman
1pts0
www.eurekalert.org 7y ago

People can die from giving up the fight

Sandman
2pts0
blog.cleancoder.com 7y ago

The Tragedy of Craftsmanship

Sandman
4pts0
www.theoverclocker.com 8y ago

9 GHz Barrier Falls Hard

Sandman
2pts0
cryptoticker.io 8y ago

Savedroid Back Online: “Exit Scam” to Send a Message

Sandman
2pts0
medium.com 8y ago

React’s new Context API

Sandman
1pts0
www.dwmkerr.com 8y ago

The Death of Microservice Madness in 2018

Sandman
993pts441
www.frbsf.org 8y ago

The Rate of Return on Everything, 1870–2015 [pdf]

Sandman
215pts151
www.nature.com 9y ago

Neuroscientists rethink how the brain recognizes faces

Sandman
1pts0
www.openculture.com 9y ago

Unpaywall Lets You Legally Read Science Articles Locked Up Behind Paywalls

Sandman
2pts0
www.nasa.gov 9y ago

NASA Missions Provide New Insights into 'Ocean Worlds' in Our Solar System

Sandman
6pts1
www.cnbc.com 9y ago

27-year-old who launched a 7-figure business in 18 months tells all

Sandman
2pts0
www.sciencealert.com 9y ago

Google's AI Has Learned to Become "Highly Aggressive" in Stressful Situations

Sandman
4pts0
techcrunch.com 9y ago

Carnegie Mellon creates a poker-playing AI that can beat the pros

Sandman
3pts0
www.nature.com 9y ago

Astronaut twin study hints at stress of space travel

Sandman
3pts0
fretzeppelin.com 9y ago

Fret Zeppelin, an LED-Based Learning System for Standard Guitars

Sandman
2pts0
www.linkedin.com 9y ago

No, I have no side code projects to show you

Sandman
2pts1

Wouldn't it be more explicit if there was a designated keyword that objects could use to access their own members instead of implicitly assuming that any first argument to a method is a reference to them, only called 'self' by convention?

I'm genuinely sorry if I came across as condescending, that was not my intention at all.

I merely wanted to point out that, in my opinion, this property should be reflected in parameter type, rather than the name. Just like, if we wanted a parameter that should only be a whole number, we wouldn't declare it as a float and name it "MyVariableInteger" and hope that the callers would only send integers.

You mentioned that there are quite a few languages that do not permit what I proposed, would you mind specifying which ones exactly? The only one that comes to my mind is assembly?

I don't think this is a naming issue at all. In the provided example, 'Accuracy' is the correct name for the parameter, as that's what the parameter represents, accuracy. The fact that accuracy should be given as a value in an interval from 0 to 1 should be a property of parameter type. In other words, the parameter should not be a float, but a more constrained type that allows floats only in [0,1].

EDIT: Some of you asked what about languages that don't support such more constrained types, so to answer all of you here: different languages have different capabilities, of course, so while some may make what I proposed trivial, in others it would be almost or literally impossible. However, I believe most of the more popular languages support creation of custom data types? So the idea (for those languages at least) is quite simple - hold the value as a float, but wrap it in a custom data type that makes sure the value stays within bounds through accessor methods.

Croatian here. You're correct, if you only said the word "spomenik" to anybody from former Yugoslavia, they wouldn't be able to distinguish whether you're talking about precisely those monuments built after WW2, or any other monument built before or after the communist era. Or even, say, Washington monument (In Croatian it's literally called "Washingtonov spomenik"). The word "spomenik" means "a monument" and just that. I was actually surprised to learn that in English the word refers to monuments from a particular location and particular era.

I suspect you don't know actual American military personnel very well, especially officers and NCOs, and how seriously we take the Laws of Warfare, AND the Constitution.

You're right, I don't. But, if Americans don't need to fear that they'll have to fight the US Army, why have the 2nd amendment at all? Who would they need to protect themselves against?

the ability to defend yourself against a tyrannical dictatorship made sense until the government developed better technology, now it's pointless so just give up your guns?

Basically, yes. Do you honestly think people would have any chance against probably the most powerful army in the world? Sure, they could try fighting a guerilla warfare, they'd even inflict some casualties against the enemy but it's unlikely that in the end they'd succeed against an army that is professional, highly skilled, better equipped, has better offensive and defensive capabilities, knows a lot more about tactics and logistics and has trained for this type of situation on a daily basis.

Are they going to destroy their own infrastructure?

Would they even consider it their own infrastructure? Or would they consider it infrastructure currently held by rebels, which needs to be either seized or destroyed?

Do you think the real men and women of the military would follow orders to destroy its own hometowns and families?

I suspect a lot of them would destroy towns if they we're told that these are now enemy bases. This has been repeated in many parts of the world throughout the history, even recent one. If they wouldn't, they'd be defectors and it really wouldn't matter whether the war was fought with modern weapons or sticks and stones.

A student came to his master.

"Great master" he said "You are wise and know many things. But tell me this: What is the sound of one hand clapping?"

The master slapped him.

At that moment, the student attained enlightenment.

I wish there was a service where you'd send a url of an article such as this one and it'd spit out a summary with only the relevant data and without all the surrounding cruft. Something like a tl;dr for this type of articles.

Learning Dexterity 8 years ago

Not only that, but consider how many jobs we could create if only we banned the use of combine harvesters, tractors, various machines in factories all over the world etc.

I'm just considering a not unlikely scenario where a smart, capable person wants to get away from a country ruled by a corrupt or oppressive government. What if the majority of the people continually vote for such a government and this smart (strong, as you put it) person sees no chance of that changing in the foreseeable future, should that person be forced to live there even if they don't want to?

The whole point (or rather, one of the points) of Java and .net are that they are NOT compiled to native code but to bytecode so that you can write code once and then run it on many different systems without having to compile it again.

What I learned from the last chart is that Clojure devs earn the most money regardless of whether they use spaces or tabs. Being an Elixir programmer also pays off nicely but for heaven's sake don't use tabs unless you want to earn only half as much as you could if you used spaces.

I would expect that initiating a payment from your account directly from code would be forbidden by the platform itself. I'm thinking about this more in the terms of hooks that get called when a payment is received or sent. In essence, what do I want to happen when I'm sending or receiving money?

Replying to myself here because I can no longer edit my comment. Just wanted to say that, while this is potentially a huge thing, there are certain things that need to be taken into account.

First of all, there's heavy regulation when it comes to banking software. There are laws and bank regulations that are here to prevent people from losing their money and/or suing the bank for some reason or another. Root needs to take great care to ensure that the software written by their users stays within the boundaries of south african law and their own bank regulations.

Second, the software absolutely needs to be reviewed not just by people from Root but also by a reputable independent consulting company.

Third, Root mustn't allow direct initiation of transactions from their platform to prevent potential disastrous effects due to bugs. You should be able to write code that does something when the money is being received or sent from your account but not code that charges your account.

Like you, I thought that this was pretty unimpressive at first. It seemed to me that this is just a regular bank account and that they expose some API and you have to program the web/mobile app yourself. The homepage is rather uninformative and I didn't really get what this is about until I went to their press release page: https://root.co.za/press/. Then it hit me. You can write small pieces of code, sort of like small apps, to manage what happens when you send or receive money. What's even more interesting is that you can share these apps on their Root platform, sort of like an app store for internet/mobile banking functionalities it seems.They mention some examples of what you could do and this looks seriously interesting now.

I've been long enough here on HN to remember how people used to laugh at Java in the comments, bemoaning the time it took to set everything up before you can start working with it (although it wasn't really that much trouble then, and it certainly isn't now) compared to how easy it was to start working with Javascript ("Hey, all you need is a browser and an editor"). How the tables have turned.

Hn Downvote notes 11 years ago

As a long-time HN user I completely agree with you, but it's worth mentioning that pg specifically stated that it's perfectly fine to use downvotes for disagreement (if I find the comment where he said that I'll edit my post and put a link to it). So, while I don't think that downvotes should be used for disagreement, if the person that created this site says that it's ok, then I guess it's ok.

EDIT: Ah, here it is: https://news.ycombinator.com/item?id=117171