RSSAmplifier

Blog

Christian Mayer's Weblog

blog.fox21.atRSS feed ↗10 posts

Latest posts

Rust Alternatives

However, this same feature can pose challenges for beginners. Rust is definitely not the most suitable programming language for those just starting their coding journey. As a beginner I want to have fast results, not a compiler telling me what I am doing wrong. Its syntax can be particularly complex, especially when it involves lifetime annotations . So, there must be a good alternative to Rust.…

Mastodon

I’ve recently become active on social media again. From around 2009 to 2018, I was actively using Twitter (now X), years before Elon Musk took over. Many people, including myself, left Twitter and switched to Mastodon. Since 2019, I have not been active on Twitter. However, about a week ago, I started using Mastodon actively. I created an account in 2023 but wasn’t active at first. Now, I’m really…

Project Outlines

Most of my GitHub projects now have a Project Outlines section in the README file. Not detailed. At least a minimal version, while with time a detailed picture of the outlines will follow for each project. With outlines I mean which features and functions a project can have. The main purpose of a software. The initial idea why a project was born at all. A list of needed features and features a…

CraftCMS Rant

Popular software does not always has to be well-written. Maybe that’s exactly why a software project is successful at the first place, because programmers do not only focus on well-written code, but rather getting stuff done. As a programmer who works for a company which has time pressure, I understand that. Focusing more on getting features done, even if this means the software has bugs. A common…

Open Source Software Collaboration

Recently I got worried about the quality of my open source projects . Especially for the projects I got collaborators. For some of my open source projects on GitHub I accepted code from other people. But some of the code is not the standard I use. I do not want to reject people on GitHub. When someone wants to collaborate on an open source project of mine I always feel special. The person maybe…

2018 Year in Review

Projects which I founded this year Parameters WalletCpp Nagios Plugins And 5 other projects that are not listed public. Projects which I continued this year fox21.at and Blog Flickr CLI Intel 8086 CPU Emulator IMAPd SMTPd PHP Network Library PHP Utilities One Shall Pass for Command-line Persons Wallet And one project that is not listed public. Notable Events I contributed to 11 different…

Docker Network

I’m using Docker since around Oktober 2017. Since I started using it I’m constantly searching for a way to get access to the host via the host’s IP address. I want a solution without any dependencies. This means using as less as possible extra software. The goal is not to rely on tools or scripts other than Docker. It doesn’t matter what you do with Docker Network , it’s always a mess. For a…

Avoid Dynamic Data structures in PHP

In the PHP world it’s very common to use build-in arrays ( [] or array() ) for every purpose. It’s PHP’s Swiss Army Knife . But doesn’t look as nice as your wife. Let’s jump into the code. Consider you have a very long and complex code block. For the purpose of this blog post I’ll make it only 2 levels deep: foreach ( /* ... */ ) { foreach ( /* ... */ ) { // Collect Data } } Outside of this block…

Parameters

I am using Symfony 4 now for awhile. It’s a really cool webframework . I like it. Since version 3 (or so), Symfony is using the Dotenv Component to manage parameters for database connection, mail server access, etc. The kind of parameter which you do not want in your Git history. We put our environment variables into GitLab’s CI variables. (This is how the variables look like for my blog. Top…

C++ Factory Class

As I wrote in my previous blog post , I’m about to rewrite my Ruby Wallet project in C++17. See WalletCpp on my GitHub profile. I want to use best practice and the latest standard C++17. So no raw pointers anymore. You should get rid of your raw pointers in your C++ code. You can do almost everything the same way using smart pointers . Let’s assume you want to create a Command Factory to produce…