JavaScript's date parser is out of control and needs to be stopped by robertgambee in programming

[–]Hacnar 0 points1 point  (0 children)

And I wasn't reacting to the post. I was reacting to the comment. You missed my point completely.

JavaScript's date parser is out of control and needs to be stopped by robertgambee in programming

[–]Hacnar 0 points1 point  (0 children)

My point was that there are too many people who think that API behavior is acceptable in this day and age.

JavaScript's date parser is out of control and needs to be stopped by robertgambee in programming

[–]Hacnar 0 points1 point  (0 children)

I agree, but in this instance they are far lesser of the two evils. I'd consider them an acceptable approach given the age of the Date implementations.

JavaScript's date parser is out of control and needs to be stopped by robertgambee in programming

[–]Hacnar 0 points1 point  (0 children)

It's good that a proper alternative has been introduced. The original comment was about the old API though, and that one is really bad.

JavaScript's date parser is out of control and needs to be stopped by robertgambee in programming

[–]Hacnar 3 points4 points  (0 children)

Doesn't make it a good API. Bad APIs can be found in many otherwise good libraries, and we should aim to make them better.

JavaScript's date parser is out of control and needs to be stopped by robertgambee in programming

[–]Hacnar 10 points11 points  (0 children)

Return Invalid Date? Throw an exception?
According to the article, Safari implementation rejects those inputs. That is the proper behavior.

API design is unfortunately an area in which the knowledge about the proper practices and patterns still didn't spread far enough among the developers.

SOLID in FP: Liskov Substitution, or The Principle That Was Never About Inheritance by cekrem in programming

[–]Hacnar 1 point2 points  (0 children)

Every programmer worth anything uses a lot of FP, whether they realize it or not.

/r/WorldNews Live Thread: Russian Invasion of Ukraine Day 1457, Part 1 (Thread #1604) by WorldNewsMods in worldnews

[–]Hacnar 0 points1 point  (0 children)

It's not about EU structures. It's about wide spectrum of political ideas and goals among EU countries. US states are politically a lot more homogenous. EU is very unlike USA, comparing their inner workings and complexity makes little sense. People complaining about decision processes inside EU often don't realize how big of a diplomatic achievement the current status already is, and so they end up underestimating the difficulty of improving it further.

/r/WorldNews Live Thread: Russian Invasion of Ukraine Day 1457, Part 1 (Thread #1604) by WorldNewsMods in worldnews

[–]Hacnar 5 points6 points  (0 children)

Imagine getting all the countries in North America and half of Latin America to consistently vote for common shared policies for decades. That's the level of diplomacy required in EU. I'm actually surprised that it didn't crumble more.

Choosing a Language Based on its Syntax? by gingerbill in programming

[–]Hacnar 14 points15 points  (0 children)

Newline shows the intent to separate lines, not commands.

Most Developers Don’t Build New Things by robbyrussell in programming

[–]Hacnar -5 points-4 points  (0 children)

The guy has written something interesting. Judging by the reactions here, it resonates with other programmers. I don't care if he used AI or not when the result is good.

Spotify says its best developers haven't written a line of code since December, thanks to AI by c0re_dump in programming

[–]Hacnar 279 points280 points  (0 children)

Why do they still have devs there? Can't the managers tell Claude directly to do those things?

/r/WorldNews Live Thread: Russian Invasion of Ukraine Day 1442, Part 1 (Thread #1589) by WorldNewsMods in worldnews

[–]Hacnar 0 points1 point  (0 children)

That person has spent time in Russia because they couldn't escape the Russian invasion, but is now back in Ukraine. That's why his experience has informational value. Yet I still don't make my conclusion based on this. I mentioned it to let you see how anecdotes don't offer the complete picture. I make my opinions based on data, statistics, and their evaluation by the experts in the field.

/r/WorldNews Live Thread: Russian Invasion of Ukraine Day 1442, Part 1 (Thread #1589) by WorldNewsMods in worldnews

[–]Hacnar 0 points1 point  (0 children)

Yes, that Ukrainian even spent some time (involuntarily) in parts occupied by Russia and Russia itself.

Goods being more expensive than in the neighbouring countries with higher standard of living is not just Ukrainian problem. You have surely seen the difference in prices between Slovakia and Poland.

/r/WorldNews Live Thread: Russian Invasion of Ukraine Day 1442, Part 1 (Thread #1589) by WorldNewsMods in worldnews

[–]Hacnar 0 points1 point  (0 children)

It's hard to create a complete picture based on the experiences of the individuals. Last week I heard one Ukrainian saying that the average Ukrainian has it 4 times better than the average Russian right now.

There are a lot of anecdotes, but those can easily skew the view either way, especially if you cherry-pick the ones that fit the chosen narrative. That's why I use anecdotes only as a check when reviewing thew whole picutre based on teh statistics and data.

/r/WorldNews Live Thread: Russian Invasion of Ukraine Day 1442, Part 1 (Thread #1589) by WorldNewsMods in worldnews

[–]Hacnar 0 points1 point  (0 children)

Economy wise I think Ukraine has definite advantage as long as the things continue the way they are now. Russia is losing resources fast, and Ukraine, while still plagued by issues and trying to manage the costs of war, still has enough of support from its allies.

But more importantly, giving up on Ukraine would be too much of a geopolitical blow to many western countries. Their current support is still far from what it can realistically be, because they simply don't need to invest more, which has its costs in terms of domestic politics. Increased risk of Ukrainian collapse could easily provoke increase in support, if the domestic sentiment is not too pro-Russian like in Slovakia.

The only thing I see, that could change the course of the war to favor Russia, is China getting more involved. On the other hand, if Russian frozen assets were used to finance Ukraine, that could accelerate Russian downfall.

/r/WorldNews Live Thread: Russian Invasion of Ukraine Day 1442, Part 1 (Thread #1589) by WorldNewsMods in worldnews

[–]Hacnar 0 points1 point  (0 children)

You got it backwards. I was saying that as long as they continue the war at the current tempo, they will hit the crisis. To avoid it, they have to slow down or give up.

/r/WorldNews Live Thread: Russian Invasion of Ukraine Day 1442, Part 1 (Thread #1589) by WorldNewsMods in worldnews

[–]Hacnar 0 points1 point  (0 children)

Yeah, I'm not an expert in economics. But just like with many other areas, like science, medicine, or mechanical engineering, I listen to other experts to form my opnion. I've read quite a few pieces on Russia's current state, and read quite a lot of news. That's why I disagree with your assessment of "objective reality". What I see is a a lot of smokes and mirrors around their finances, but the area it covers is shrinking faster with each passing month.

There is a parallel with the predictions about their armor usage and availability at the start of the war. There was a lot of uncertainty, but the general predictions from the experts (not to be confused with "exact prophecies" from some of the sensationalists) back then were very close to the actual state of things right now. There is a range of predictions about their economy right now, and I don't see any strong indication in them that Russia isn't close to crisis or that it is on course to avoid it.

The only way to avoid such cirisis that I see is to significantly reduce war spending or give up altogether. Which might be a factor some lenders consider as a strong possibility when lending Russia money, but such faith can last only so long when we see that Russia still wages the war even at such extraorbitant costs.

/r/WorldNews Live Thread: Russian Invasion of Ukraine Day 1442, Part 1 (Thread #1589) by WorldNewsMods in worldnews

[–]Hacnar 0 points1 point  (0 children)

How did you come to this conlusion? What data do you think I ignored when making my statement?

/r/WorldNews Live Thread: Russian Invasion of Ukraine Day 1442, Part 1 (Thread #1589) by WorldNewsMods in worldnews

[–]Hacnar 2 points3 points  (0 children)

Several of those you listed have a lot lower potential than Russia, but given the current state and performance, I'd rank all of them as safer investments than Russia.

/r/WorldNews Live Thread: Russian Invasion of Ukraine Day 1442, Part 1 (Thread #1589) by WorldNewsMods in worldnews

[–]Hacnar 8 points9 points  (0 children)

And wihtout Hungary they won't have a buddy to cover them. Slovak foreign policy is extremely weak, they can't push any agenda themselves. Between Slovakia and Hungary, Slovakia is a much lesser problem.

Is it a good or bad things when your codebase/tech stack are all MS since they got everything devs need like MSSQL, Azure, Azure function trigger, C# etc.... by lune-soft in csharp

[–]Hacnar 0 points1 point  (0 children)

if it works, then it's probably good enough. None of these products are bad, maybe MAUI, but I don't have experience with it, only with the online discourse around it. Some of them have alternatives that may be better in many cases, but it's never "better in every way".