Profile for blog

Header for blog: Flat gray background (default header).
Display name
urmaul.com blog
Username
@blog@gts.urmaul.com

About blog

Fields

Author
@urmaul

Bio

Notifications about new posts on the urmaul.com blog.

Stats

Joined
Posts
30
Followed by
2
Following
0

Recent public and unlisted posts

New blog post: Tagless Final is Functional Programming Theater

For years I thought that tagless final is a pinnacle of functional programming. And now, after actually working with it for more than two days, I think it’s like a lawn. Kinda cool, but takes a lot of effort to maintain and you’re better off without it.

https://urmaul.com/blog/tagless-final-is-functional-programming-theater/

#Scala #TaglessFinal #FunctionalProgramming

New blog post: SilverBullet macros I use

#SilverBullet is a note-taking tool that can be as simple or complex as you want. You can use it as a single editable Markdown page, or as a some kind of a content management system with a built-in relational database.

I mostly do simple pages linking to each other but there are some macros I keep reusing. Let me share them.

https://urmaul.com/blog/silverbullet-macros/

New blog post: Can we have "Public Money, Public Code"?

Free Software Foundation Europe is promoting the idea of “Public Money, Public Code”. It is simple: if everyone paid for the software, it should benefit everyone. To enforce it, we need a law that allows spending the taxpayers’ money only on the open-source software.

This post is me trying to understand, how realistic it is to have this law.

https://urmaul.com/blog/public-money-public-code/

#PublicMoneyPublicCode #FOSS #OpenSource

New blog post: Replacing Mocks with In-Memory Implementations in Scala Tests

Recently I worked on migrating a service to Scala3 and one of the major blockers for this was the test code using mockito-scala that works only on Scala2. It was possible to use another mocking library but I use this opportunity to replace mocks with in-memory implementations. This post contains notes on how to do that.

https://urmaul.com/blog/in-memory-implementations/

#Scala #Testing #Mocking

New blog post: How To Structure Generators in Scala Property-based Tests

With property-based tests, you end up writing many generators for random data. I saw people coming up with different patterns for defining generators and some of them worked better than others. In this post I'll describe what worked best.

https://urmaul.com/blog/scala-generators/

#Scala #PropertyBasedTests #Testing

New blog post: How Not to Resize EFI Partition

I have a Framework laptop with Fedora Linux and at some point I couldn’t install firmware updates. The error was not enough free space in my 100MB /boot/efi partition so I had to resize it somehow. None of the guides I could find helped me completely so here’s another one. I also wrote down what didn’t work because those parts of existing forum discussions turned out to be most useful for me.

https://urmaul.com/blog/resize-efi-partition/

#EFI #FrameworkLaptop #Fedora