DEV Community

xtofl profile picture

xtofl

C++, python software engineer with a passion for design that improves teamwork and maintainability.

Location Belgium Joined Joined on  github website

All 86 comments

18 Python one-liners that will speed up your coding process.

Worse: everybody coming after you has to be. Of course, OP w...

5 Underrated resources to learn Git and Github

And there's learngitbranching.js.org for some fearless sandbo...

How to break outer ones of nested loops in Python?

Most of the time when I encounter a nested loop, it can be re...

If-Else or Switch-Case: Which One to Pick?

Now that, I can appreciate: the great artist-inventor's role ...

If-Else or Switch-Case: Which One to Pick?

Totally agree: syntax alone won't convey all your intent. Li...

If-Else or Switch-Case: Which One to Pick?

The entire premise of the switch statement is to compare th...

5 Python Tricks in one line. Beginner vs Professional

If you replace the nested for loops (plain or in a generator ...

My opinion on Lua

In the embedded world, Lua is quite popular for its tiny VM f...

Learning Python- Intermediate course: Day 37, File handling in Python

You're welcome. I appreciate the effort you put into this, b...

Want To Learn Programming? Learn How To Track Changes First

Can't agree more: SCM is essential to collaborate (even with...

Learning Python- Intermediate course: Day 37, File handling in Python

Now we've seen the basic ingredients, it's time to abandon th...

Python map() Function: How to use map in python ?

Thanks for marketing map. Yes, map rocks. It is very idioma...

Zero: A fast and high performance Python RPC like framework to make microservices

Wow - that's not an easy treat. It looks quite slim. What g...

Stop abusing .map()!

I can imagine a Javascript optimizer looking at { xs.map(f) }...

Stop abusing .map()!

That's condescending. You probably meant 'they have a lot to...

tips for python short code part-1

Also, when you'd need to append 'a lot' to the same list, you...

Time traveling with Git Reflog

Thanks for writing about this! I to use it very often, becau...

How long is your Maximum Line Length for PEP 8?

When I was young, I loved tweaking all my tools. I gave up: ...

tips for python short code part-1

Does that code run? map takes a function and an iterable; di...

The Unknown Features of Python's Operator Module

Thanks for this post! I noticed that itemgetter("x")(dict(x=...

Python map() function

Nice! Higher order functions make for very expressive code w...

🔥Machine Learning Complete Roadmap🔥

I don't get it. These links point to pages with table of con...

What was the hardest concept for you to grasp when learning Object-Oriented Programming?

It took me 10 years and 3 to 4 exploded class hierarchies to ...

Parsers - ironical situation

Yes! It was actually Markus Völter that I followed an MPS in...

Parsers - ironical situation

jetbrains.com/mps/ does more or less that: define your langua...

Parsers - ironical situation

Since you mentioned projectional editing, did you ever play w...

Copyright Clutter Everywhere!

After some poking around, our Intellectual Property attorney ...

Don’t comment your code

Thanks for this! Since many objections raise about the title...

Some notes about naming conventions

Thanks a lot!

Some notes about naming conventions

I have naming compulsive disorder. This means I can spend a ...

DAY 2 of building the Higher Order Functions in javascript. the filter Higher Order Function.

In e.g. python, haskell, c#, ..., filter is conceived as a ...

DAY 2 of building the Higher Order Functions in javascript. the filter Higher Order Function.

I always wondered why one would force the client code to rece...

5 ways to refactor if/else statements in JS functions

Fyi . The c++ tool mentioned would be godboldt.org.

It’s Okay to be An Average Developer

Reassuring advice, thank you! Very sure a lot of us need tha...

Software design principles: DRY

Single Point of Truth, really.

Software design principles: DRY

Yes! This makes me realize that DRY is SPOT as seen by a de...

ShellPipe.py | A Hacky Remedy to Overkill Shell Scripting

Lovely! Maybe the pipeline processes could be constructed b...

Your bash scripts are rubbish, use another language

I have noticed that in most circles I have communicate with (...

Someone Stole My DEV Article! How To Build a Python Script to Detect Stolen Content

Very nice to integrate these apis into a neat tool. Btw, did...

μgit - Learn Git Internals by Building Git in Python

Great job! It's super snappy, and even the page itself looks...

I want my Bash Pipe

Thanks! Cross references are always a help. I get his newsl...

Your bash scripts are rubbish, use another language

Somehow, I have hit the 'publish' button on dev.to/xtofl/i-wa...

Your bash scripts are rubbish, use another language

"Returning" is indeed an abstract concept. Each platform mak...

The code review we deserve

So true, all of this. Somewhere, I found a number of tips fo...

Your bash scripts are rubbish, use another language

Can you put a date on that? "Historically", that must mean p...

Your bash scripts are rubbish, use another language

Sorry, I keep finding counterarguments to your statement, unl...

Your bash scripts are rubbish, use another language

Not debating language superiority. But I'm truly dazzled you...

Your bash scripts are rubbish, use another language

I am very confused now. It's off topic here, but what does 6...

Your bash scripts are rubbish, use another language

I'm sure the assembler does emit low level stuff like that. ...

Your bash scripts are rubbish, use another language

That is wrong indeed. C functions return typed values. Inde...

Your bash scripts are rubbish, use another language

I'll expand it in a full fledged post :) Or 'leave it as an ...

Your bash scripts are rubbish, use another language

I think so, too. You can make a nice 'fluent' DSL out of it,...

Your bash scripts are rubbish, use another language

Absolutely right if you're going in and out of Python to crea...

Your bash scripts are rubbish, use another language

Most modern languages allow function composition (pipes betwe...

What I Learned About Attitude and Mindset in Coding Bootcamp Pt. 2

Thanks for sharing! During corona lockdown, I was finally ab...

Introduction to TDD: What it is and why it is important

I even used to push the failing test, to have the CI prove I ...

Complete Introduction to the 30 Most Essential Data Structures & Algorithms

A gigantic work. Being a C++ nerd, I have to correct: std::m...

Understanding Memoization In JavaScript

Conclusion: this particular, naive approach works best for ...

Understanding Memoization In JavaScript

Maybe an edge case... but for such generic higher order funct...

Who is Uncle Bob?

Dammit! But... he's so convincing!

Who is Uncle Bob?

You are right. The user is pushed into a corner. Being futu...

Poor Man's Tools that are actually awesome! 💪

Did you know tac?

Who is Uncle Bob?

Especially when designing bigger systems, dependency manageme...

Who is Uncle Bob?

Disagreed: final indicates that the design was not intended f...

Who is Uncle Bob?

Think before you speak, boy ;P. github.com/unclebob/fitnesse

What the heck is Currying anyway?

Fantastic that you emphasize this. While FP code constructs ...

What is the ideal length of a code for you?

I like it terribly short (under 10 lines); preferrably zero (...

The Programming Language That Changed My Life!

Erlang (and OTP!) is nice indeed. But the paradigm is diff...

How To Make A Makefile

You're absolutely not alone in that. But make isn't intend...

Type System FAQ

Maybe, in the set of all type systems, we can define a weak...

How To Make A Makefile

I have the impression that the more 'powerful' my recipes g...

5 Programming Patterns I Like

These patterns are so useful in day to day work! In the 'o...

If you could change one thing about learning to code, what would it be?

Add 'learning to grow existing code' to my curriculum. And...

money for computers

It totally does indeed. Not flawlessly.

money for computers

I totally understand that. So how can we get off the bandw...

To comment or not to comment?

Can you reverse the question: when do you read comments? ...

How to Breakthrough the Old Monolith Using the Strangler Pattern

This is a clear explanation! Thanks! I've seen the Big Ba...

Async + Await refactor, which do you like best?

i think, as a matter of fact, that you can do all error han...

I don't know how to create a website

You put the finger on a real problem. Seems like enough so...

I was billed for 14k USD on Amazon Web Services 😱

So you know that for a fact? Or are you guessing?

Avoid getters and setters whenever possible

I must say you have a point: we lack a vast body of "how to...

Welcome Thread - v13

Hi there, I'm xtofl, been coding for what feels like ages,...

Strings Are Evil

"no memory allocation ... until you materialize the results...

Strings Are Evil

What parser libraries would you use?

loading...