HNHacker News
TopNewBestAskShowJobs

tomtomtom777

737 karma · joined November 19, 2014

submissionscomments
tomtomtom777··on The harmful consequences of the robustness principle
The problem arises when other people try to implement a compatible tool. Sure your JSON rules might not be ambiguous, but they are not standard either so every competitor aiming for compatibility will have to adhere to these specific rules.

This means that they need to use samatman-JSON and cannot really on JSON libraries for parsing. Or worse, if these tools become popular, we will see "samatman-rules" flags arising in JSON parsing libraries thereby harming the simplicity that made JSON what it is to today.

I think that your example illustrates exactly what makes Postel's law harmful. If you accept JSON, stick to the rules.

tomtomtom777··on Loopless Code (2006)
True. It is possible though for a language to avoid these iteration constructs as if they are needless plumbing as well. Consider the elegant type system of the XQuery language:

In XQuery, the root type is a flattened sequence. Flattened means not just that [1, [2, 3]] is flattened to [1, 2, 3], but also the a single object 42 is equivalent to a sequence of one object [42].

This means that if I write:

  declare function local:prefixName($name)
  {
     fn:concat("prefix-", $name)
  }
I can invoke it with a single name or a sequence of names without any explicit iteration.

It has drawbacks but using XQuery certainly highlights how much code we normally waste dealing with "things" and "sequences of things" separately.

(Than again working with XQuery also highlights how much code one can waste dealing with XML namespaces :)

tomtomtom777··on Google's New AI Photo Upscaling Tech Is Jaw-Dropping
I disagree. If you need to know an estimate or guess of certain details that aren't visible in lo-res, this is very useful because the AI is likely much better at inferring these details than a human.

Sure, it is still a guess but a better one than humans can make.

tomtomtom777··on Reading Hayek in Holland
To sum up: The free market is only useful for things in where maximization is the optimum.
tomtomtom777··on Does Oil Come from Dinosaurs?
I think it's a bit odd to call this "net zero".

If there are more trees, there's more oxygen.

Sure, if a tree dies this is eventually reverted but it also makes room for a new tree (unless humanity claims the land).

tomtomtom777··on Show HN: Sunflower Editor – like adding console.log to every line of your code
That is not expected behavior. If you click a link and get a page, one expects back to return to the previous page.

A standard HTTP redirect does this right as well as location.replace()

The site incorrectly sets a new location by other means.

tomtomtom777··on Show HN: Sunflower Editor – like adding console.log to every line of your code
Nitpick: Please don't break the back button.
tomtomtom777··on Console Do Not Track – Proposal for a standard environment variable
It's a good idea but it seems to me the name will hurt adoption.

Phoning home with telemetry data does not by definition imply tracking.

Yet a project implementing DO_NOT_TRACK is essentially saying that without it, it is tracking users. This isn't particularly attractive for a project that already has some OPT_OUT_TELEMETRY option.

tomtomtom777··on Useful and useless code comments
I think the most important drawback of the function for used once code is that its definition doesn't really map well to linear files.

There isn't really a proper place to put such function.

In this example, you would like to define add_vertical_scrollbar() right where it is used as this is the proper context where it makes sense to read it. But if you define it where it's used it no longer adds any clarity.

tomtomtom777··on El Salvador to adopt Bitcoin as legal tender
> .. millions of transactions per second, which is what El Salvador will be using?

Why would that be what El Salvador is using? That is such a weird notion, and one of the reasons Bitcoin is often incorrectly called unscalable.

How many financial transactions do you think an average person does per day? I don't know but probably not much more than one, maybe even less.

If you handle special B2B cases like high frequency trading separately, financial transactions ceases to be big data.

tomtomtom777··on Dragon Go Server
KGS was a special place where I've spent many hours not just playing but also kibitzing the pros (and TheCaptain).

This doesn't really happen in the same way on the currently popular Go or Chess servers.

I am not sure whether its closed "Java Applet" form has been its strength, its downlfall or both but it does seem unmatched in its community.

tomtomtom777··on Drunk Post: Things I've Learned as a Sr Engineer
Really? This one aligns pretty well with what I've learned.

It seems that the entire stack of people in software development is tasked with identifying problems and subdividing them in to smaller problems. This goes for coders structuring lines, architects structuring modules as well as managers structuring teams of architects and coders.

The quality of a software engineer shines through all these layers.

tomtomtom777··on The Suez Canal will be widened
> The parts which are single lane allow only transit in one direction at a time currently, so twining it will not solve the current problem.

If there are two directional channels you have the option to use the other for both directions when one channel is blocked.

tomtomtom777··on Commits are snapshots not diffs (2020)
Consider a small commit with spelling error. If I turn this into a patch and apply it to another branch it will be a different commit even it will be the same patch.

As such, the concept of a "commit" in Git refers to a complete state of everything; a snapshot.

tomtomtom777··on GitHub, fuck your name change
> I would agree "slave" seems a weird choice of a word

Can you clarify this? If one machine/repo/system acts only on the orders of another, wouldn't "master" and "slave" be clear, descriptive choices of words?

tomtomtom777··on Nano is what Bitcoin hoped to be
> Bitcoin's big invention is that miners are economically incentivized to work in the best interest of the network.

That sure is a powerful invention, but this does not mean decentralized networks cannot exist without it. Most are running fine without any financial incentive.

There are always incentives to aid the network simply by being a user.

If Nano can provide security with a different model, why would that be "dumb"?

tomtomtom777··on An Atonement of Nano
> Though now I wonder why there isn't a VSCode-equivalent (emphasis on "works out of the box" and "easy to use") for the terminal.

The terminal is effective because you can combine all kinds of tools together. Or as some say, the shell is the IDE.

If you're searching for a single application that performs all these tasks out of the box, there is no longer sufficient benefit in using the terminal. A terminal variant of VSCode would be inferior to the GUI variant.

tomtomtom777··on Tesla buys $1.5B in Bitcoin, may accept it as payment in the future
I am simply pointing out that the usage of Bitcoin or something else is better assessed as comparison to global consumption. Trying to map energy usage per product/category to energy usage per country is not insightful and misleading, as it suggests the product/category is not part of the country's energy consumption.

I am not at all arguing that Bitcoin is useful, or that its energy consumption isn't excessive.

tomtomtom777··on Tesla buys $1.5B in Bitcoin, may accept it as payment in the future
> Countries have millions of people in them, which are doing many things with that energy. It illustrates the waste.

But Bitcoin is something that people are doing with energy in countries. It is 1/2000th of the average person's footprint.

Is doesn't seem reasonable to call, say, people flying around in airplanes doing something with energy while calling Bitcoin "waste".

tomtomtom777··on Tesla buys $1.5B in Bitcoin, may accept it as payment in the future
It seems really weird to compare the energy consumption to that of a country.

"The total energy usage for the production of cars/yachts/fitness machines/musical instruments/toilets equals that of country X"

What does it even mean? How do you interpret it?

It seems more sensible to compare to total worldwide energy consumption of which Bitcoin takes roughly 0.05%

tomtomtom777··on That XOR Trick (2020)
You are correct but using programmers terminology here is confusing.

The opcodes 31 C0 mean "Set EAX register to zero"

The opcodes 31 D8 mean "Set EAX to EAX xor EBX"

The trick part is in the mnemonics used by assemblers and literature that transcribe the first as "XOR EAX, EAX".

It isn't actually implemented as such, so it isn't really an "optimization"

tomtomtom777··on The Fediverse is better than regular social media
In the Fediverse, it would make sense to use government servers whose moderation rules are overseen by the legislative branch.
tomtomtom777··on You might not need jQuery (2014)
There is an additional cost to such a dependency that isn't expressed in bytes.

Javascript/CSS/HTML forms the common basis of web development. You may assume every reader of your code is familiar with it.

If you use a specific library, you are restricting (easy) readability to those that know the specific library.

This has merit if the library provides sufficiently useful abstractions or shortcuts, but it's only a drawback if the library provides merely an alternative way to write something already possible in the base layer.

tomtomtom777··on Next Gen Static Blogging
I like the white-space: pre-line trick and very much like the omission of unnecessary <html> and <head> tags as the parsing of such valid source is neatly prescibed.

But abusing <code>, <h4> and <h5> like that is a horrendous and pointless. Please use the proper tags to keep the web clean.

tomtomtom777··on Tether price manipulation
I still don't quite understand how they can manipulate the price.

The price of a USDT is 1 dollar. They give out new USDT for $1 a piece.

Sure, they may be spending these dollars elsewhere, thus holding a fractional reserve. Sure this may illegal and get them in trouble.

But this doesn't effect the dollar value for which these USDT's and thus Bitcoins are traded.

As long as a USDT is $1, nobody is manipulating the price.

tomtomtom777··on Paleontologists are trying to understand why the fossil record is mostly males
Even in harem species, on average, each male gets exactly the same number of offspring as a female. If say 75% of the specimen would be female, being a male would yield on average thrice as much children compared to a female, so it would be evolutionary beneficial to be male.

The only species where the ratio is different are those where sex is determined with different genetic mechanisms. For example, in hymenoptera (ants and wasps), males are born from unfertilized eggs, which results in a 1:3 ratio between females and males.

tomtomtom777··on A terminal-based workflow for research, writing, and programming
You seem to be using a rather specific meaning of the word "research".

If, for example, I pause coding and spent a few hours comparing and reading about various libraries to aid in a certain task, wouldn't this task be best described as "research" as well?

tomtomtom777··on Biden wins White House, vowing new direction for divided U.S.
True. On that point, let us celebrate that this episode is over.
tomtomtom777··on Biden wins White House, vowing new direction for divided U.S.
I am personally more aligned with ideas more progressive then Biden, so I certainly don't think people rejecting control of the virus and addressing climate change is "cool".

But when people are effectively given a binary choice, they will simply side with whomever aligns against the direction they don't like. It's not cool, but if we claim that all those choosing that direction are endorsing Trump, we're saying that there's no democratic choice whatsoever for those that recognize his failures.

In my opinion, there is something wrong with the two-party system much more so than there is something wrong with "republicans".

tomtomtom777··on Biden wins White House, vowing new direction for divided U.S.
Many of the people that voted for him, "support" him only by means of rejection of the other side.

If you are against one party, you will vote for the other. The feeling of being against something is generally much stronger than the feeling of support.

This is not just a Trump issue but a bipartisan one, as I wager most of the 75 million that voted for Biden, simply voted against Trump and the GOP as well.

← PreviousPage 4 of 7Next →