HNHacker News
TopNewBestAskShowJobs

loldot_

110 karma · joined November 30, 2018

submissionscomments
loldot_··on Norway Shrugged (2024)
What all these people fail to mention is that at about the same time as the increase in wealth tax, another tax rule was made stricter. Before nov. 29 2022, you could take your unrealized profits abroad for five years to reset your cost basis for the realized gains tax. Meaning you could essentially spend five years to get rid of your tax burden. This tax amount is significantly larger than the wealth tax. And many of these 100 people moved before that.
loldot_··on Ask HN: By what percentage has AI changed your output as a software engineer?
I don’t know, it still feels like a productivity lottery to me. The simpler the task, the higher the odds of a big productivity gain, and it can be probably an order of magnitude quicker, especially if the output is very verbose, like frontend tends to be.

But I still haven’t dialed exactly what is too complicated for the LLM to handle (and that goalpost seems to still be moving, but slower now). Because it is almost always very close, I often end up trying to fix the prompt a few times before giving up and just doing it from scratch myself. I think in total the productivity gain for me is probably a lot less than 100%, but more than 0%.

loldot_··on .NET 10
It is no coincidence that C# and TS are similar. They are created by the same person, Anders Hejlsberg. The C# language may have some baggage from back in the day, but at least it has a very good, non-fragmented ecosystem. While Typescript may have learned from some of C#'s mistakes, the js/ts ecosystem is a dumpster fire imho.
loldot_··on .NET 10
One of the big features in .net 10 is the ability to do `dotnet file.cs` to run an application, with package import and assembly attributes directly in the file.
loldot_··on The least amount of CSS for a decent looking site (2023)
I use github pages with jekyll. It took a bit of time to make a custom theme and setup the custom domain, but its really simple now to just add markdown file and push to github.

https://github.com/loldot/loldot.github.io

loldot_··on Best practices can slow your application down
Allocations are pretty cheap, but GC can be quite expensive under high load/big heap. It is probably not the first optimization you would need to make, but allocaitons have been a huge focus by the .net core team, and is part of the reason why it is so much faster than the .net full framework. See for example the post on improvements in dotnet 5: https://devblogs.microsoft.com/dotnet/performance-improvemen...

https://docs.microsoft.com/en-us/aspnet/core/performance/per... https://docs.microsoft.com/en-us/dotnet/standard/garbage-col...

loldot_··on Best practices can slow your application down
While they do not provide any benchmarks in the summarizing article, I can guarantee that they have done some (read: alot) profiling. I follow both Nick Craver and Marc Gravell on Twitter, and they regularly post benchmarks for optimizations done at SO, in the .net world they are some of the most knowledgable people on performance optimizations.
loldot_··on Where does the plastic in oceans come from?
The ban is not negative; pretending it has lead to a meaningful reduction in plastic ocean waste is. I think the reason most people are negative to the ban is that a great deal of resources has been spent on something that tries to solve a minuscule problem (0.03% of plastic waste) while at the same time inconveniencing people with disabilities for example. These resources could have been allocated to for instance a small financial reward for turning in broken/abandoned fishing nets.
loldot_··on Event Sourcing (2005)
From my experience, definitely go with the second approach. Try to spend a lot of time initially defining the events with domain experts. Designing events that map well to the domain in the first place is the hardest, but also the most important criteria for success with event sourcing. Usually that means very specific event types. A simplified example from my career: an event EquityPurchased { Portfolio, Symbol, Quantity, Price } can be used when the customer says: "Our portfolio should calculate cost FIFO rather than average". Very specific events are also easier to version, because often something in the past version has been implicit. In the example the customer may say: "we are going to purchase some equities on the Oslo Stock Exchange, we didn't really care about currency and currency rates since we only bought US stocks before." So now we can make a new verison of EquityPurchased { Portfolio, Symbol, Quantity, Price, Currency = "USD", ExchRate = 1 }
loldot_··on Microsoft patent: Creating a conversational chat bot of a specific person
Sounds a bit like this article: https://www.theverge.com/a/luka-artificial-intelligence-memo...

haven't had the time to read all of it again and can't recall all of it, so might not be the one.

loldot_··on Insulation: First the body, then the home (2011)
Wool. A wool undershirt, thick wool sweater and wind-proof, water-proof jacket has kept me comfortable down to about -15C. You can pickup some really nice gear on the cheap from army surplus sales in Norway at least, but I think it's the same in most NATO countries.
loldot_··on Stored Procedures as a Back End
Exactly! If you're writing a C compiler, it would probably be a bad idea to have that logic in a database, though it could be fun to try. On the other hand if your application is summarizing a lot data by different dimensions, it would probably be a bad idea to transfer all that data over the network only to summarize it in an application layer. Most applications have a little bit of both though and so will need both an application layer and database layer.
loldot_··on Stored Procedures as a Back End
What I've found being the problem with this approach is that sql does not lend itself very well to composability. Sure, you can make functions, views and stored procedures and compose them. But when you start actually composing queries of these parts the could lead to different execution plans having wildly different performance characteristics.

Also tooling around SQL, i.e. refactoring tools and debuggers, is not great - if even available at all.

loldot_··on Has GitHub been down more since its acquisition by Microsoft?
Which commit would you roll back to if the integer id of your comments table overflows? There are many bugs that are more complex than a buggy commit.
loldot_··on A small DIY air purifier
I don't know how effective they are compared to these devices, but I much prefer to keep plants with air purifying qualities. NASA did a study on a variety of air purifying plants in 1989: https://ntrs.nasa.gov/search.jsp?R=19930073077
loldot_··on The most copied StackOverflow snippet of all time is flawed
The simple, readable, loop-based snippet mentioned in the article also works for the edge cases. Sometimes it's better to not be so clever.
loldot_··on Eat less meat: UN climate change report calls for change to human diet
I think most people willing to change their diet for the sake of the environment already are well aware of the consequences of meat eating. In my opinion it would be more beneficial to focus campaigns on the problem of food waste which I am sure more people would be willing to give up.
loldot_··on CNIL imposes a financial penalty of 50M euros against Google
Its ironic that cnil has “accept all” as the default choice for 3rd party cookies on its site
loldot_··on Retail Arbitrage at Walmart [video]
I'd say selling stuff to idiots is a pretty scalable business idea.