Making the first steps might be hard, but it’s totally worth it.

When working on a complex project in Python that has many parameters, it helps to keep all parameters in one place. Read this to learn why, when, and how to best implement it.

My philosophy in writing code (and in other facets of life, but that’s for another post) is that I prefer to do some extra work now in order to do much less work later.
This is the motivation for creating a class that holds all my parameters in one place.

Do I Need This?

Not every function you ever write will have its own Params class. The time is right when you have multiple parameters in your project, and when your architecture is non-trivial.

Let's ask ourselves two questions to understand if we need this new feature in our project:

  1. Is my project more…

A proven method from an experienced job-search mentor. With the Covid-19 outbreak sending so many talented people home, now is the perfect time to share it.

This is not a post about acing job interviews or writing an impressive CV. It surely isn’t a post about how to be great at your job. I assume you are already great. I assume the only thing standing between you and your dream job is that you don’t know where it exists. The goal of this post is to overcome precisely that.

I find Git to be somewhat like coffee.
Once I’ve found a method that works for me - I stick to it.

Today I want to share with you my method for merging Git branches (no, this is not another post about merge vs. rebase).
Like the first espresso of the day, let’s start by cutting straight to the chase:

After several years of writing code in Matlab and Python, I honestly didn’t think writing a “Hello World” program in C++ would take me more than two hours to complete. But life is full of surprises, right?

My goal in this post is to help the next person have a smoother transition to C++ by troubleshooting some of the surprises.

Note: my OS is Ubuntu 18.04, but from the research I conducted for this post, I suspect that everything here is relevant for other OSs as well.

The steps we are going to cover in this post are:

  1. Install Visual…

Don’t be that person. Read this post and log your experiments properly.

When your head is so busy thinking of clever solutions, you forget which clever solution you are trying out now.

Researching solutions for a hard problem is a task that holds many challenges. The goal of this post is to eliminate one of those challenges — keeping track of where the heck we are amid all this research.

In this post, I assume you are working on a piece of code that is under construction, that this code is a standalone piece you run from start to finish (what we call “an experiment”), and that your goal is to keep track of the progress of your research.

To that end, we will enrich our code with a few useful logs…

Photo Credit: spockthedog

The post you were looking for — if you already know some python logging, but lost your favorite logging scheme somewhere in the universe of code.

You are here because:

  1. You want to log your Python module.
  2. You are already somewhat acquainted with Python logging (if not, I recommend you browse the first half of this great intro).
  3. You are looking for a quick copy-pastable snippet to jumpstart your logging.

And why am I here?
Because for the gazillionth time I discovered I left an important code snippet somewhere unknown… Therefore, today I have decided that this will be the very last time I will be reinventing the logging wheel.

Well then, let’s get right to it!

Read this post to find out why it’s actually not such a bad thing...

Spring 2017.
I just received my MSc. in math.
Knew nothing of the Real World.

The meetup scene I discovered that spring changed the way I see the industry, and has tremendously contributed to the professional and personal growth I experienced since.

The speaker in me was born with one crazy idea. I was working on my first personal project, and on one inspirational moment I decided to give a talk about this project, thinking that’s how I’m going to find my Dream Job.

Two months later, I indeed finished the project, talked about it in a meetup, and…

Starting a new job is an exciting phase for me, but it also led me to the following sad realization - I left all my best copy-pastable code snippets behind!

Photo by Amador Loureiro on Unsplash

Or: 6 Principles for a Winning Technical Talk or Blog Post.
And Also: Why Should You?

1. Why am I Here?

It was the evening train ride home. I was haunted by a question that kept bothering me: “Why am I putting so much effort into my many tech-related extracurricular activities?”.

I decided to take my mind off this existential crisis, and instead dedicate the time to learn a new tool that would assist me in my job. Half an hour later, I was angry at the useless and condescending internet, where all the resources I could find assumed I already knew what I actually came to learn.

Determined to not let the internet beat me — I pledged to learn…

Because There Is More Than One Place to Get Bread

The Traveling Salesperson Problem (TSP) poses a simple dilemma: you would like to visit a set of places, for example, your errands around town, and would like to do so in the most efficient manner. This problem has been solved in countless different ways, both to optimality and heuristically.

So what are we doing here today, you ask? Well, the fact of life is, there is more than one place to get bread, or pasta, or whatever is on your errands list. …

Dalya Gartzman

Mathematician, Algorithmatician, gives meaningful names to variables.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store