jlelse’s Blog

Thoughts, stories and ideas

Tags: Programming


The Shapes of Code

Published on in 🔗 Links

It is interesting to look at code not only from the content aspect, but also from the appearance. The appearance of code can give hints how to refactor it.

View

Published on in 💬 Micro
Reply to: A note by Beko Pharm

regex101.com is my favorite tool for testing and debugging regular expressions too. It can even generate code. 🤓 Very nice tool! 👍

View

Published on in 💬 Micro

I admit it is the first time I am writing code that is almost 100% covered by unit tests. But it’s such a good feeling to have small, concise methods whose functionality you can rely on. Even before I have a running application, I know that what is already written will work. And unit testing with Go is really fun.

View

Coding

Published on in 💭 Thoughts

When I write code, it often serves the purpose it is supposed to serve. However, it is often not the most elegant. Especially when I compare my code with other implementations, I sometimes find mine somewhat ugly. I think I’m thinking too chaotic, start writing the code immediately and while I’m writing it, I think of things I could do differently and in the end it’s a big mess. Maybe I should first sketch my code on paper and then type it into the computer without thinking much about it? Or are these just feelings of inferiority and my code is not so bad after all?

View

Go and Java

Published on in 💭 Thoughts
Updated on

While I need to use Java for university projects (currently that are one Spring and one Java EE project) and work, I use Go on some personal projects (Hugo backend and KISSS). While I’m getting more familiar with Go (I do Java for many years), I also experience cases where I actually miss language features from Java. Oh and it’s not generics, I’m currently (still) fine without generics.

View

Published on in 💬 Micro

Codecademy was once a great source to learn new programming languages, but it seems in the last year, they started to push harder to increase revenue. After login you get presented a page to buy Pro access (and you need to find that small “Back” link), Pro banners everywhere and popular courses like the one to learn Python 3 are Pro-only anymore. Seems like I need to find another source to learn some Python basics for my seminar paper about Falcon.

View

The Value in Go’s Simplicity

Published on in 🔗 Links

Benjaming Congdon shares in an article, why he appreciates Go’s simplicity. To summarize: Its great forward / backward compatibility, dependencies (stable, fewer dependencies needed), included functionality (testing, http, …) and formatting (because Go has an integrated formatter, although every project has its own way to do things, all code follows the same formatting conventions).

View

Happy Birthday, Go!

Published on in 🔗 Links

I develop code in Go for just a few months now, but I learned to like it. It’s fast, simple and can produce static binaries. In contrast to Java (the language I have to use for a lot of university and work stuff) it does many things much simpler. And I think Go is really easy to learn, also thanks to its good documentation.

View

kis3: Why I’m writing my own website statistics tool

Published on in 💭 Thoughts
Updated on

When you host your static website on a service like Netlify, it’s not that easy to get statistics of your website visitors without violating their privacy by using tools like Google Analytics. Because it’s a static website you can’t use some statistics plugins the way you can in WordPress and it’s also not possible to view which pages the server is serving, because Netlify doesn’t give you access to it’s logs.

View

Previous

Jan-Lukas Else