HNHacker News
TopNewBestAskShowJobs

tored

1,022 karma · joined October 29, 2020

submissionscomments
tored··on Should I use JWTs for authentication tokens?
One huge benefit of using a non-randomized token is that you can verify that you created it.
tored··on Big data is dead (2023)
I think more like, how would you prepare and cook the best five course gala dinner for only $10. That requires true skill.
tored··on Big data is dead (2023)
Former prime minister of Sweden Stefan Löfven got wind about Big data buzzword back in 2015 and used it in one of his speeches, that this is the future, however he used the Swedish translation of Big data, stordata. That generated some funny quips about where is lilldata.

https://www.aftonbladet.se/senastenytt/ttnyheter/inrikes/a/8...

tored··on ICQ will stop working from June 26
Official ICQ client got bloated for every release. Security issues and lots of spam.

Miranda IM, open source plugin based architecture, was the best client for ICQ.

There was a fun plugin that notified you if anyone read your away message. Good trolling potential.

tored··on Doom didn't kill the Amiga. Wolfenstein 3D did [video]
I had a Commodore 64 that I had bought with my own money, but my friend (rather his dad) had a Commodore 128 with a floppy drive. I was so impressed but also extremely jealous. My brother though bought a PC.
tored··on jQuery UI 1.13.3 Released
JQuery UI is a widgets library like datepicker, autocomplete input and progress bar but also has UI controls to make things draggable and such.
tored··on Google made me ruin a perfectly good website (2023)
Assume this is doable, but who would legislate that? US congress that is already bought and paid for by the very same companies?
tored··on Hardest problem in computer science: centering things
They are still supported and works perfectly fine still. Remember that browsers supports different DOCTYPEs (HTML5, XML, HTML4 strict and non strict etc) and they are not going away anytime soon, probably thousands and thousands web sites out there that doesn't implement HTML5 and never will.

Frameset is deprecated in HTML5, but your index page can be of the older frameset DOCTYPE and each frame valid HTML5 page with a <!DOCTYPE html> declaration. This is why frames (and iframes) are actually great because you can mix old an new.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" 
      "http://www.w3.org/TR/html4/frameset.dtd">
    <html>
    <head>
        <title>My page</title>
    </head>
    <frameset cols="100%" rows="10%,*,10%">
        <frame name="header" src="header.html">
        <frameset cols="20%,80%" rows="100%">
            <frame name="sidebar" src="sidebar.html">
            <frame name="main" src="main.html">
        </frameset>
        <frame name="footer" src="footer.html">
    </frameset>
    </html>

e.g main.html

    <!DOCTYPE html>
    <html>
        <head>
            <title>main</title>
        </head>
        <body>
            main
        </body>
    </html>
tored··on Hardest problem in computer science: centering things
Funny thing is that it still easier, even today, to use a frameset rather for header, sidebar and main area rather than fiddle with the new grid system.
tored··on Interview with Yanis Varoufakis on Technofeudalism
It was me that was doing that comparison, agree it is not a perfect one because of many reasons, one is that communism is a political system that has an economic system (typically planned economy) and capitalism is an economic system only. Thus you can run a brutal dictatorship, like the communistic China, or benevolent democracy with capitalism.

And this is what I don't agree with the reasoning in this thread, it is a comparison of apples with oranges. Many proponents of capitalism does this error, they assume that capitalism gives political rights somehow, and they typically talk about things like freedom and such. But all of those political freedoms stem from somewhere.

And an continuation on that argument is that private companies a free to do what they want, when in reality private stock companies (in the West at least) has a separate legal entity and reduced liability as a guarantee from the state. Is that true capitalism?

Why I made the comparison between capitalism and communism is that both proponents of those systems usually reply "That is not real communism/capitalism!" about any flaw in these systems (which of course happened in this thread as well). But if every flaw is always theorized away, does it then only exist in theory?

If we look specifically at China for instance we can notice other things that has helped it, one is that greedy capitalist from the West moved industries there, China is also doing industrial espionage on Western companies, China as also aggressively spikes its currency, and it balloons it's GDP numbers by building ghost cities.

tored··on Interview with Yanis Varoufakis on Technofeudalism
China and Poland has definitely got it better with less communism, but what is "more or less capitalist"?

I also notice that you completely ignored my reply.

tored··on Interview with Yanis Varoufakis on Technofeudalism
Sure, if we two meet in the forest and I swap my piece of fur for some dried meat it is a win. But the problem with capitalism is that in the long run it starts to centralize in a similar manner as communism for efficiency and thus goes against the "Local knowledge problem"[1]

As a result what typically happens is that general quality goes down and that is what we observe can right now.

Please also read my other response in this thread.

https://news.ycombinator.com/item?id=39978645

[1] https://en.wikipedia.org/wiki/Local_knowledge_problem

tored··on Interview with Yanis Varoufakis on Technofeudalism
Market economy is not necessary the same as capitalism, China is capitalist in some parts but it also a heavy state subsidized economy with a regulated market and public ownership.

And the massive increase in living standard can be attributed to multiple factors that was all needed to make it possible, superposition as it is called in physics, e.g. a proper contracting framework, a literate and educated public, technological advances, deregulating markets from the old estates system, etc.

We can take Sweden as a good example, yes the legislative change in 1864[1] that anyone could operate a business was crucial, but where did all the talent come from that actually created all those famous Swedish companies and inventions? Many came from the Swedish Army because Sweden was an old Great Power and the army needed many engineers to be able to build fortifications and such. Two of the most famous ones would be Nils Ericson[2] and his younger brother John Ericsson[3]

But you also need qualified workers and it happens that Sweden had at the time one of the most literate population in the world because of the Swedish state church. In the old days Sweden was quite strict religiously and the Swedish state church had conducted Household Examinations since 1686[4] about general knowledge in the Bible and Luther's Small Catechism. You can't really run a modern industry with an illiterate public.

Thus attributing everything to "capitalism" is gross simplification of history.

[1] https://en.wikipedia.org/wiki/Decree_of_Extended_Freedom_of_...

[2] https://en.wikipedia.org/wiki/Nils_Ericson

[3] https://en.wikipedia.org/wiki/John_Ericsson

[4] https://sv.wikipedia.org/wiki/Husf%C3%B6rh%C3%B6r

tored··on Interview with Yanis Varoufakis on Technofeudalism
But I get no protection from these tech overlords, they can close me down at anytime or give my data away to third party or the government without my knowledge.
tored··on Interview with Yanis Varoufakis on Technofeudalism
> You can only do that if you have cornered the market.

Which happens over and over because we humans are flawed, thus every system we create will also be flawed.

If capitalisms only works in theory then it is as good as communism.

tored··on Interview with Yanis Varoufakis on Technofeudalism
I would rather say it is a synergi between technology and capitalism, both are needed to create the current state.

Technology has always been a double edged sword thru human history, it is just that the sword keeps getting bigger and bigger.

Capitalism can then take that sword and use one of the edges and make money out of it and that in turn wields political power.

tored··on Facebook let Netflix see user DMs, quit streaming to keep Netflix happy
Never use Facebook or any other of the big ones as a login provider. Always use a separate account for each cloud service.
tored··on The C++ Killers (Not You, Rust)
Some dynamic languages do have type constraints these days, e.g. PHP.
tored··on Fonts are still a Helvetica of a Problem
Retvrn to New Roman Times.
tored··on How can C Programs be so Reliable? (2008)
Many years ago I started to dislike exception handling, probably because working in large software projects with many exceptions floating around.

Then a few years ago I started to write code in a primitive language without exception handling. I miss exceptions now.

tored··on How can C Programs be so Reliable? (2008)
This text doesn’t make much sense, on the one hand the author argues that software written in C is robust, on the other hand the author admits that he has unknown bugs lurking in his own project.

One bug took several months to track down. This is cognitive dissonance at its finest.

tored··on How can C Programs be so Reliable? (2008)
Probably even better to pick PHP then, large standard library included, open foo.php to code, no main function required, just start writing, no build step, can output to stdout or http without effort
tored··on How can C Programs be so Reliable? (2008)
Who is stressing you to refactor when doing exploratory programming? Yourself? OOP languages? Society?
tored··on How can C Programs be so Reliable? (2008)
What is stopping you from only using functions and structures in any language?
tored··on How can C Programs be so Reliable? (2008)
I built a house by only using a broken hammer, that made the house better because I needed to spend more time to handle the broken hammer correctly.
tored··on JPEG XL Is a Stupid Name
The websites uses a 3D library called three.js https://threejs.org/

If you go the main page of the blog, it is the background

https://www.mark-pekala.dev/

tored··on JPEG XL Is a Stupid Name
Funny coincidence in Scandinavian, XL "extra liten" (extra small), also works for XS "extra stor" (extra large).
tored··on Ada 95: The Craft of Object-Oriented Programming
Not only in one line but also you don't need to wrap your function argument with a class instantiation, you can just pass the integer into the function you are calling and the compiler takes care of the rest.

And that is a problem with many class based languages, that a class can't work as a primitive, compare Java's int vs Integer.

    program TestType;
    type age = 0..150;
    
    procedure test(age:age);
    begin
      writeln(age);
    end;
    
    begin
     test(100);
     test(200);
    end.
tored··on It's 29—Delphi, I mean
> Pascal seems like a mature language but looks like it's got its warts and being a language of the 80/90s may not offer the niceties of languages that came after it.

My recommendation is to ignore language design, I spent a lot of time trying to find the best way to create cross platform desktop applications in a "nice" language. This was just time wasted.

What you should look at is how productive you can be and how much of the problem space the language and framework solves for you.

By changing to this perspective you will notice that your number of options increases drastically.

tored··on Oink: An API for PHP in a single file
Yes, and I view this a strength of PHP, that you can write your own mini framework with a few lines. And as result we have many reliable frameworks to pick from for PHP.

Other languages typically only have one dominant web framework, like Java Spring, which typically leads to a stagnating community.

← PreviousPage 4 of 26Next →