locxter.net

Embracing Rust and Svelte in 2023

2022-12-31

As I am a big fan of the KISS principle, I am currently using good old C++ as my primary programming language and vanilla HTML/CSS/JS for web stuff (which I only do whenever there is no way around it by the way). For 2023, I plan to switch gears a bit and learn/use Rust as well as Svelte . In this article we are taking a look at why I am changing my mind and why I selected these new tools...

Honestly, I really enjoy the speed as well as freedom C++ provides. You can write code that is as high- or low-level as you want and be pretty sure that it will be as fast as it gets (as most "comfort features" are really well optimized and not expensive). Furthermore, C++ was the first programming language I learned and therefore has a special place in my heart. Nevertheless, I have found this choice to be quite exhausting and tedious lately, as the C++ ecosystem is very much behind in terms of libraries and tooling. Additionally, I find many advanced syntax features really hard to get behind as well as most compilers errors cryptic and not helpful (they mostly make me want to smash my head against the wall).

For the native web stack I am using right now it is basically the same story. The tools themself are pretty nice, but it is just tedious to implement functionality youself that others already did a better job at. Additionally, browser compatibility checks are a huge pain point that you can get around by using frameworks, so lets talk about my new choices.

My proposed replacement for C++ is Rust , because it is just as fast and low-level-capable, but has a much newer toolset (from what I heard cargo and rustc are your friends instead of worst enemies) and very vibrant community. Futhermore, the documentation is really nice and they provide a detailed tutorial book , which is awesome for learning and understanding the language.

Instead of writing everything web related from the ground up myself, I want to utilize the amazing framework Svelte in the future. I have used it during my work placement at the KDO earlier this year and really enjoyed working with it, because of its intuitive design, but never worked with it in-depth. This will change next year, where I plan to relearn it and also start using SvelteKit .

Yeah, that is my plan for 2023 and I am really looking forward to how this will go...

RSS feed