Entity Framework, EF, is incredibly popular in the .NET community, for better or worse. There are many opinions on why you could use it and many why you shoulnd't use it. I'm not going to go into any reasoning around that now, though. What I want to highlight is something called cartesian explosion . When making queries with EF, you can include related data through navigation properties…
When I get to name things, I like to give those projects, group chats, etc, a name that has some reasoning or thought behind it. Sometimes it might be humorous by elevating something casual with a name using formal language, and sometimes it's through some convoluted steps of random thoughts and trivia. One such time was when I had to come up with a name for a group chat for me and two other…
I watched Apple's Wonderlust event and they had a lot of focus on being carbon neutral. From their offices and stores, to their data centers and partners, everything is running on renewable energy. Very good! They also introduced their first Carbon Neutral ™ products. These products use recycled materials to prevent mining for more, and remaining emissions are offset by planting trees and…
I see people complaining about video games not boing what they used to be: They were finished at launch, they tried new things, they weren't full of micro transactions and/or game passes. The thing is though, those games still exist! They're just not made by the large game development studios. If you want to play a good Battlefield, play Battlebit Remastered . It's not only…
Dette er en respons til Kode24s artikkel NRK om podcast-spredning: - Ikke dette vi ønsker oss , og generelt om NRKs nedlåsing av podkaster. NRK har siden august 2021 flyttet flere og flere av sine podkaster fra distribusjonsplattformer, og inn i deres egen app. I appen er det bare NRKs innhold som er tilgjengelig, og det blir også det eneste stedet en kan finne en kan finne podkastene. De påstår…
I've been an Audible subscriber for a decade and have built up a sizable library over that time. I want to be able to back that library up in case it should become unavailable... for some reason. Audible audio books are distributed with DRM, making them useless without the official app. To preserve the books, you need to break them out of this jail. A tool for doing that is Book Lib Connect .…
I've been using DuckDuckGo for years, and I've been happy with the search results. However, I recently tried to search for places that sold the Sami flag, but DuckDuckGo was stumped. Google however found 2 places immediately. This coincided with a discussion at work about search engines and which ones people were using. Long story short, after some browsing I landed on trying out Kagi .…
This is a prediciton, and I'm writing it down here for possible future reference. Something got me thinking of the future potential of D&D Beyond (DDB). It's the premier online tool for managing Dungeons & Dragons characters, and the official way to get digital versions of the source books. They started out as a third party, but were bought by Wizards of the Coast (Wizards), owners of…
When deploying applications using containers, it's usually a goal to minimize the size of the container image. Achieving a small container size varies a lot between different languages and technologies. There is no single solution that will work for everyone, as usual, but there’s a pretty interesting alternative if you’re deploying Rust, D, Go, Java or node.js applications. Google maintains…
As what may come as a shock to absolutely no one, in addition to being a programmer nerd, I also play Dungeons & Dragons - and this is about that. Me and a couple of the people I play with regularly have been discussing D&D 5th Edition’s rules and what kind of gameplay they encourage. My argument is basically that it’s a game system - a rule set - built for combat, and the rest is tacked on. The…
I watch a lot of talks and technical videos in my spare time. It’s my way to keep up with trends. Some of the videos are noise, but here are some of the ones that are signals. The Art of Code https://youtu.be/6avJHaC3C2U What if you use code to make art? What if the code itself is art? What if it’s both? This talk is not your regular coding talk - it's an experience well worth…
We're at a point where many businesses are opening their offices and to some extent demanding that their employees return to the office. While some employees are welcoming this return to the familiar, some are more content with the working from home situation. How people recharge I don't remember where I first heard it, but someone explained a philosophy they had regarding why some…
CSS variables is a built-in way to define values which can be reused throughout your CSS styles. They also provide a performant way to dynamically set values in CSS from Javascript. This, paired with the reactive nature of Svelte makes for some fantastic oppertunities. What better way to demonstrate this than by providing a contrived example? CSS variables Let's just take a quick primer on…
I watch a lot of talks and technical videos in my spare time. It’s my way to keep up with trends. Some of the videos are noice, but here are some of the ones that are signals. Light Years Ahead https://youtu.be/B1J2RMorJXM Robert Wills explains the guiding system used in the 1969 Apollo 11 moon landing. He covers some of the challenges and genius workarounds implemented in the small…
If you work in an open office, I'm your worst enemy. When I speak, it's solely on volume eleven. My baritone voice carries better than a worker ant. My laughter makes the walls vibrate. I'm not alone; every open office has one of me. If you work in an open office, sickness is your worst enemy. Bacteria and viruses spreading freely as everyone breathes. Airconditioning pushing air…
NRK has visited Kryptovault in Hønefoss in Norway. Krytpovault claims that it’s better that they mine Bitcoin in Norway using green energy. Kryptovault claim that if they aren’t mining Bitcoin, someone else will, and they probably won’t use the same green envergy. Except, that’s not how Bitcoin mining works. Someone else isn’t going to not mine Bitcoin just because Kryptovault is doing it in…
I recently watched a talk called Growing a Language by Guy Steele , a productive fellow involved in writing specifications for multiple programming languages - including Java. In the talk he makes the case that you can’t design an extensive language from the start, but must start simple and expand over time. By expanding as needed, users are able to give feedback and field suggestions on what’s…
I use an Ultimate Hacking Keyboard as my main keyboard. I lug it from home to work and back again to be able to use it whenever I’m at a computer. Also, despite being Norwegian and using a Norwegian keyboard layout for the first 20 years I’ve used a computer, switched to US International as my main keyboard layout in 2020. I use fish as my shell of choice, and I’ve set up a few aliases and…
Code formatting and style is a subject programmers love to argue over discuss. Personally I think the details of the formatting and style is secondary to consistency . Consistency is for more important. Whenever I work in a language, I prefer using the official style. A lot of newer langauges, like Go or Rust , even come with their own formatter enforcing these styles. I like when there's an…
I recently tried to explain to a friend how the useState hook works in React. I thought my analogy was quite a good one, so here goes! Imagine React has a large warehouse where it can store information you don't want to reset every time React updates the view. We'll call this warehouse Central Storage . To be able to store information in Central Storage, we'll have to reserve shelf…