HNHacker News
TopNewBestAskShowJobs

jussij

2,569 karma · joined March 20, 2009

Jussi Jumppanen Author: Zeus IDE https://www.zeusedit.com/
submissionscomments
jussij··on Notice of termination of Twitter merger agreement
So what damage has been done to Elon by him not buying Twitter?

Now if Elon wins might be able to claim costs, but they would be minimal by comparison to the original $44B deal.

jussij··on One-night stands will be illegal at the 2022 World Cup in Qatar
Technically, while these acts may well be deemed illegal in that country, throughout the World Cup authorities will be turning a blind eye to these indiscretions.

The whole Qatar bid has already been tainted with accusations of FIFA corruption, so they both can't afford for this World Cup to be anything but a complete success.

Countries like France, Germany, Holland, USA or any of the major football nations that qualify for this World Cup are not going allow their citizens to be sent to prison for seven years over a one-night stand.

jussij··on The computers are fast, but you don't know it
But for most system you don't want performance to get worse. You want to make performance get better.

The ping is just being used to measure of the foundations of the system and the OP is pointing out don't expect to see a 'high performing' system when the ping has identified the foundations are broken.

If you fix the ping and then system is automatically fixed.

jussij··on The computers are fast, but you don't know it
The phrase "goes downhill" means things only get worse. The OP is suggesting that since the ping is already slow, a function that does something is going to be much worse.
jussij··on A way to torture an interviewer (C++, FizzBuzz)
Not always. Consider this 'test.cpp' example:

    #include <stdio.h>
    #include <string.h>
    
    struct a_struct {
      char a[1];
      char b[2];
    
      a_struct() {
         strcpy(a, "");
         strcpy(b, "b");
      }
    } x;
    
    int main() {
       printf("before:\n");
       printf("a : '%s'\n", x.a);
       printf("b : '%s'\n", x.b);
    
       char *c = &1[x.a];
       *c = 'c';
    
       printf("after:\n");
       printf("a : '%s'\n", x.a);
       printf("b : '%s'\n", x.b);   //b is now corrupt
    }
Compile and running this code:

    C:\temp>g++ test.cpp
    C:\temp>a.exe
    before:
    a : ''
    b : 'b'
    after:
    a : ''
    b : 'c'
jussij··on A way to torture an interviewer (C++, FizzBuzz)
The "" will define a null terminated char array to represent the string. But as it string contains no text it's a char array that only requires one byte (i.e. it contains nothing but the null termination character).

Now the first character of that char array is found here: ""[0]

The second character is found here: ""[1]

So the address of the second character is found here: &""[1]

But as the string was represented by one byte char array that second address is past the end of the string.

So it's actually an undefined address.

jussij··on In defense of coding interviews
> I've had plenty of people crush the theory portion of the interview and be poor performers on the job (slow coding, low volume output)

I think the reason for that observation relates to why these interview tests are generally a waste of time.

Based on the tests that I've seen, they are 'recall lots of useless information' tests. That means it's actually possible to study for these interview tests (if you have the desire) and if you can ace the test by just spending time memorizing answers.

However, 'slow coding' has very little to do with coding and everything to do with problem solving. You only learn how to problem solve through lived experience and many people never learn that skill.

These interview tests generally fail only because they're not actually testing for the skills needed to do the job.

jussij··on Microsoft 3D Movie Maker Source Code
That describes most software design and development to a T. The reality is you'll hardly ever get the design right the first time around.
jussij··on John Roach has died
In the early 80's Australia also had the Microbee: https://physicsmuseum.uq.edu.au/microbee-computer
jussij··on Windows 11 getting basics right with better UI/UX
> The old UI is still present in some dialogs

That might be fine for the operating system.

But Windows native applications come in many flavors including Win32, WinForms, WPF and UWP.

Then you have the Electron applications like VSCode.

All of those flavors have their own look and feel so at the application level the Windows UI/UX is all over the place.

jussij··on .NET Myths Dispelled
> OH BOY, does it take a while to unravel and understand that decoupled OOP wet dream.

If you are referring to ASP.NET then I think you might be describing DI and IoC more than OOP in general.

The evolution of ASP.NET has definitely be one of embracing DI and IoC design patterns.

With ASP.Net Core the conversion is complete as the foundations of that framework are built on DI and IoC design principles.

However, the trouble with DI for newcomers is it can be very hard to understanding what's going, only because of much of the action happens in code that is not visible.

It also means anyone using the framework really has little choice but to also adopt DI and IoC design principles, otherwise they'll just find themselves fighting the framework.

jussij··on Russian central bank confirms block on foreign bids to sell Russian securities
So if this is the case (and I don't doubt what you are saying) then that means Russia has decided to turn it's functioning market into something that is no longer a market.

Only because we now have a situation where any foreigner holding a Russian security can no longer sell that security.

That action has instantly made the security worthless (i.e. value of zero) to the foreigner.

So while these actions might stop the price drop in the short term, it will never last only because the market created is no longer reflecting the true value of the security.

They are now only being held artificially high because no one can buy and sell them.

jussij··on Ask HN: Moscow Exchange
I would have though a simple HTML web response suggesting "The market is currently closed until tomorrow." would have worked well as their current server response.

I'm generally curious as to what's going on here, only because I went to their web site expecting to find the MOEX was closed, but instead found their site appeared to be down.

jussij··on Russian central bank confirms block on foreign bids to sell Russian securities
A "security" is something that has a notional value. You can buy and sell the different types of securities on an exchange.

So it's synonymous to an asset (i.e. something of value that you are prepared to buy or sell).

The exchange does nothing more that manage the buying and selling of these securities to guarantee no one gets ripped off.

One party hands over the security, the other party hands over the cash and the exchange manages the deal on behalf of both parties (for a small fee).

Now the exchange can call a halt to trading (i.e. stops all buying and selling) when it see the market is in trouble. The exchange just calls a halt in an attempt to slow the fall of the market.

These halts are used to try and smooth out extreme fluctuations in the market.

So in this case it looks like the price of Russian securities has collapsed (i.e they are becoming dramatically worth less than they were a few days ago) and the exchange has been temporarily blocked the buying and selling Russian securities in the hope their value stabilises.

Currently the exchange is just seeing a collapse in price of the Russian securities and they want to slow that fall.

jussij··on The U.S. Air Force Has Doubts About the F-35
Here in Australia the ABC raised doubts about the F-35 back in 2013.

Here's their analysis of that aircraft:

https://www.abc.net.au/4corners/reach-for-the-sky/4526982

In particular they ask is fairly obvious question:

It's billed as the smartest jet fighter on the planet, but could the JSF be a massive waste of money?

The Australian Government purchased these massively expensive F-35s even when basic logic told us they would be duds.

I would say this analysis shows governments are not good at making simple decisions as they struggle with basic logic.

jussij··on Redesigned Notepad for Windows 11
Just take a look at the last 25+ years of GUI development.

In all that time, as computers have got blindingly fast, the one and only constant is the guarantee GUIs continue to get get slower.

jussij··on Redesigned Notepad for Windows 11
Does this mean Microsoft have re-written Notepad to use something like Electron?

As the original Notepad was written in Win32 app, doesn't that also signed the death sentence for Win32 on Windows?

jussij··on Things I’ve learned in my 20 years as a software engineer
That is not how quotation marks are designed to work.

The words offered up as a quote are meant to represent the views of the person being quoted. In this instance that is clearly not the case.

This is a perfect example of how quotes can be used to misrepresented a view.

jussij··on IBM says all US employees must be vaccinated by Dec 8 or face unpaid suspension
The concept of governments and societies enforcing vaccination is nothing new.

For example a child going to school in most development countries will need to be vaccinated against Measles, Mumps, Rubella and Whooping Cough.

And the world only managed to eliminate the scourge of Polio thanks to government led mass vaccination programs.

jussij··on Government asks German residents to drive lorries even if they never have before
This problem was created because the UK government kick out the European drivers as part of their Brexit plan.

That make this current problem rather more difficult as the UK government can't just start importing foreign truck drivers to fix this issue, as that would then be a back flip on that original Brexit plan.

jussij··on Government asks German residents to drive lorries even if they never have before
The difference is the UK government is being disingenuous, if not outright deceitful.

There may well be driver shortages in Europe, but it doesn't compare to the 'critical driver shortages' facing the UK.

And it is clear these shortages are 'critical', only because in the UK some supermarket shelves are empty and the supply of petrol is under heavy stress.

jussij··on Government asks German residents to drive lorries even if they never have before
> and complaints about UK and Brexit.

I don't see a 'complaint about Brexit' in his response.

In fact, being a German citizen I'm sure he didn't even get a vote on the subject.

jussij··on U.S. declares more than 20 species extinct after exhaustive searches
Firstly I was only pointing out your assertion that the USSR was a good model of socialism is wrong.

As to being 'competitive in free markets', I would suggest that is more of a measure of capitalism than socialism.

Socialism is about equality and a better measure of equality would be something like 'standard of living'.

When you look at which countries lead the world on that measure it should come as no surprise Social Democratic nations dominate:

https://worldpopulationreview.com/country-rankings/standard-...

jussij··on U.S. declares more than 20 species extinct after exhaustive searches
The USSR was a communists country.

There is a world of difference between Social Democratic (i.e. socialism) countries like Finland, Sweden, Norway for example and the USSR.

The hint is right there in the title, democratic.

The USSR never had a functioning democracy.

jussij··on Ford to invest in EV and battery plants in Tennessee and Kentucky [pdf]
I also suspect regions like the EU will force Tesla to comply with a standard plug, not unlike how the EU is currently in the process of forcing Apple to standardize on it's iPhone charger connector.
jussij··on Why Google, Facebook, & Microsoft Were Born on College Campuses
Microsoft was created by high school friends, Bill Gates and Paul Allen.

At the time Bill Gates was at Harvard and Paul Allen was a programmer at Honeywell.

Once Microsoft was created Gates dropped out of Harvard.

So I'm not sure the college campus had a lot to do with the birth of Microsoft.

jussij··on Apple threatened Facebook ban over slavery posts on Instagram
Unfortunately money has always spoken louder than morals and given enough money almost anything can be justified.
jussij··on Apple threatened Facebook ban over slavery posts on Instagram
When big companies, institutes and political parties use the word 'proactive' it generally means find a way to limit the damage and then find a way to hide the problem.
jussij··on New Zealand cricket team abandon Pakistan tour after 'government security alert'
Back in 2009 while on tour in Pakistan, the bus holding the touring Sri Lankan cricket team was ambushed by a gunman and sprayed with bullets in a targeted attack.

Fortunately, while some of the players where injured in the attack, no one was killed.

Given the instability in the region at this time, I'd say it would take a brave cricketing team to tour Pakistan at this moment in time.

jussij··on Windows 11: Just say no
> Applications also have to listen for messages that indicate a dpi change

That is how a well behaved 'DPI Aware' application should work.

However, even for those badly written DPI applications that don't listen for those changes, the work around is to first make the required DPI changes and then restart those badly written DPI applications, as they will then pick up those DPI changes on startup.

← PreviousPage 3 of 34Next →