News for hackers. Stuff that matters.

qw

Re:Triple-A Minesweeper on Friday October 09, 2026 @06:14PM (#50027258)
It's also missing a tutorial.
I have the same experience as you. I have probably worked with a few dozen SOAP services in my time, so perhaps I have been "lucky", but WSDLs have not been an issue for me.

WSDL is in some ways more user-friendly than openapi schemas. They have a rich set of types that mostly just work as expected. When I try to generate models from an OpenAPI JSON file, I often find myself either overriding the models or making scripts/plugins to rewrite the json to fix types. An example of this is using proper decimals instead of doubles, which is crucial in my line of work.

Re:Codes – typed application outcomes for Kotlin and Java on Tuesday September 01, 2026 @08:01AM (#49520783)
From what I can tell it is a library for standardising return values that is independent on the transport medium. A HTTP service may return a particular http code or body, and gRPC would have its own representation.

I think this library maps the different representations into a single representation. The business logic, metrics, logging etc. will use the single representation instead of being tightly coupled to the transport medium

Example from the docs where the "PAYMENT_DECLINED" state is mapped from protocol specific responses:

  PAYMENT_DECLINED
  |
  +-- HTTP 422
  +-- gRPC FAILED_PRECONDITION
  |
  --> logs/metrics keep PAYMENT_DECLINED
Re:Snapchat open-sources Valdi a cross-platform UI framework on Saturday November 08, 2025 @04:50AM (#45855523)
Swipe to go back can be implemented in frontend.

It's been a couple of years since I used it, but I think the Ionic framework has this feature.

https://ionicframework.com/

And to make it more interesting, Sweden also has the letter "å", but it's in the 27th place in the alphabet (followed by "ä" and "ö"). In the Danish/Norwegian alphabet, the letter "å" is the last letter of the alphabet.
Re:RSS Beat Microsoft on Monday September 08, 2025 @11:08AM (#45169271)
> Anyone still feel the pain when Google discontinued its RSS reader?

Yes, but mostly because of a lost opportunity.

I was working on my own web based reader when Google made a significant upgrade to their reader. It was similar to what I had made, so I thought it would be foolish to compete with Google and stopped working on it.

I wonder where RSS would be now if Google had not discouraged potential competitors.

Re:How we made JSON.stringify more than twice as fast on Tuesday August 05, 2025 @08:30AM (#44797213)
Looking at the site it seems to be a (static?) HTML and shared "main.css" and "main.js" files. Both files can be cached by the browser, so it only needs to download a few KB of compressed HTML for each page. I don't think we would notice much of a difference in the navigation from one page to another if they used content preloading

It's how we used to make websites before SPA, and it's refreshing to see that it still makes a noticeable difference even on today's powerful CPUs and high speed networks.

What if FTL is not possible? In that case the attack will take a long time to reach us, and in the meantime we will be much more advanced technologically and could potentially defend ourselves.

In sci-fi we see warp drives, worm hole travel, phasers, photon torpedos and energy shields around ships. But what if none of that is possible? In that case, we might even have the technology to defend ourselves today or at least by the time they reach our solar system.

It's a huge risk for a civilization to attack us. Even if they have capabilities that are beyond our technology, there might still be limitations based on the laws of physics. And if they attack us, they risk a response.

Re:Visual History of the Latin Alphabet on Friday June 20, 2025 @07:09AM (#44326628)
Originally, the "o" on top of the letter "Å" was a lower case "a", because the sound could be written as "AA". Over time it transformed into a circle.

Some names today still use the double a, like the Norwegian football player Martin Ødegaard. In that case it is pronounced the same as the "å" sound. (not too far from how an American might pronounce the "o" sound in "for")

https://en.m.wikipedia.org/wiki/Ship_of_Theseus

> The Ship of Theseus, also known as Theseus's Paradox, is a paradox and a common thought experiment about whether an object is the same object after having all of its original components replaced over time, typically one after the other.

Yes, it's #176 on his list of countries:

https://www.onceuponasaga.dk/journey

> The client then searches through the list to see if the desired email is in the list or not.

The initial prefix check would probably reduce the amount of lookups necessary, as it would only be necessary to do a deeper search if the prefix matches.

Re:SerenityOS is a love letter to '90s user interfaces on Tuesday April 22, 2025 @10:59AM (#43763019)
It is my recollection as well. Most applications used VB, Delphi, MFC etc. that all had the "native" OS look and feel. There were some exceptions like WinAmp and others, but from what I can remember most applications were more consistent than today.
Re:Which year: guess which year each photo was taken on Sunday April 20, 2025 @05:53AM (#43742747)
It doesn't work for me either (Android+Chrome)
Re:YAML: The Norway Problem (2022) on Sunday April 13, 2025 @12:22PM (#43673905)
I often prefer enums over booleans for this. It seems more readable for most cases, and can be extended with new values.

This:

    isRegistered: true
could be replaced with

    accountStatus: "UNREGISTRED"
Re:How to Make a Longbow on Friday April 11, 2025 @12:35PM (#43655722)
My guess is that he wants to be compensated for the time he spent. There's a lot of content on that site, and making a bit of money is a good motivation to keep updating the site
Re:Default styles for h1 elements are changing on Friday April 11, 2025 @04:10AM (#43651512)
I would prefer to use a neutral <h> tag, that was proposed in the xhtml2 specs. It always made more sense to let the browser infer the place in the hierarchy.
Re:A love letter to the CSV format on Wednesday March 26, 2025 @06:46PM (#43488339)
It's related to how older versions of Windows/Office handled Unicode in general.

From what I have heard, it's still an issue with Excel, although I assume that Windows may handle plain text better these days (I haven't used it in a while)

You need to write an UTF-8 BOM at the beginning (0xEF, 0xBB, 0xBF), if you want to make sure it's recognized as UTF-8.

The same location (Andøya, Norway) has also launched over 1,200 sounding and sub-orbital rockets of various configurations since 1962.

As others have explained, the news here is a rocket reaching orbit

My guess is that it was hosted on a physical server on campus, and they didn't want to pay IT to support it during winter break.

It is probably easier to just close it down to avoid handling all the angry phone calls if it would happen to have an issue during the break.

Re:Anno 1800: Shadows of Beauty on Monday February 17, 2025 @08:56AM (#43079049)
I liked Settlers, but I was much more invested in the Caesar/Zeus/Pharaoh series of games. Maybe it was due to the historical context.
I subscribed to "CU Amiga" and "Amiga Format". I kept them for a long time, but had to throw them away when I moved a few years ago.
Re:Show HN: The Atlas of Space on Friday January 10, 2025 @09:12AM (#42655697)
It's also the official name in several non-English countries, including variants like the French "soleil"

https://idiot.vitebsk.net/i43/sun_english.htm

Re:When Norway Got Internet on Friday January 10, 2025 @09:00AM (#42655628)
Another link with more information about Arpanet (1973)

https://www.norsar.no/about-us/history/arpanet

Re:How Britain got its first internet connection (2018) on Friday January 10, 2025 @08:54AM (#42655571)
I think knowledge was more localised to certain universities or researchers.

Norway was the first country outside of USA to be connected to Arpanet in 1973 to share seismic data, but the universities did not gain general access until 1983.

I posted submitted a link to a story here: https://news.ycombinator.com/item?id=42655568

Re:Cognitive load is what matters on Thursday December 26, 2024 @09:53AM (#42515536)
> Things that you know and have internalised don't occupy your brainspace

Some "10x" developers are extremely productive because they know the software stack inside and out.

There are also "10x" teams where they share an institutional knowledge of the software stack and are constantly improving and finding more efficient ways of solving a problem. When someone finds a better library, more efficient CI/CD or establish new code practices it is easy to apply it when they have a single stack to focus on.

It's hard to replicate this in teams where they are responsible for 10 micro services, each written in their own language and using different software stacks that are more "optimal" for some use case.

Older »