What is “Failing Fast”? You may have heard about “Failing Fast” before! Well, it simply means exactly what you are reading. If you have to fail in something, you better fail fast, so you can correct your path. In different fields, “Failing Fast” will take a different cosmetic form; but, the concepts stays the same….
Category: Programming
Migrating To Python From Java
I have always said that: if you know how to program, you can code in any language. Well, while I still stay by the above statement, I want to add something to it though. Yes, you can absolutely code in any language, but make sure that you learn about the peculiarity of each coding language….
To comment, or not to comment, that shouldn’t be even a question!
What’s the story about commenting? Recently, there was a discussion on LinkedIn around comments, again! As usual, it appears that people either fall on the side of comment everything in this code or the side of avoid comments at all costs, even if there is a gun to your head. Moderation?!! any one?!! This is…
Piecewise-Linear Functions: Part II
In Part I (here), we discussed what are Piecewise-Linear Functions (PLFs). In Part II, this document, we are going to discuss how to estimate the coefficients. As it was mentioned in Part I, if we do not need to guarantee the continuity, all you need to do is to just fit a line to each…
Piecewise-Linear Functions: Part I
We are going to divide this document in two parts. The first part, this document, we are going to discuss piecewise linear functions (PLFs) and how to implement one in Python. The second part, Part II, we will discuss how to fit the coefficients, detect the break-points locations, and even optimize the number of the…
Can I Directly Translate A Math Equation To A Code?
If you have answered yes, then you are betting on being lucky. If you are saying: “I always have done so and never had any issue!!!“, well, (1) you are lucky that you never executed your code with numbers that would cause problem, (2) you are using a library that handles these things under the…
Learning SQL
I see a lot of SQL posts in my feed, getting the impression that SQL is making a comeback and becoming a hot topic again. Indeed, SQL could be a very handy language for many systems/projects and if you are in Data Science and/or analytic positions knowing SQL not only doesn’t do any harm, but…