My improved version of bubble sort algorithm

Published on Mon 16 October 2017 in Software Engineering • Tagged with algorithms

My little brain gave birth to an improved version of the classic bubble sort algorithm. Here it is.


Continue reading

selenium.common.exceptions.WebDriverException

Published on Sun 15 October 2017 in Software Engineering • Tagged with python, selenium-framework

Here is a common exception raised when trying to invoke selenium’s webriver component for browser automation launching. Here is how to fix it.


Continue reading

Do not make a direct use of function parameters

Published on Mon 04 September 2017 in Software Engineering • Tagged with functions, parameters

Today, I have answered a question on Code Review website. The OP’s code sample itself was simple, but a user commented my answer stating that he never heard about function’s parameters should not be used directly.


Continue reading

Dihya theme

Published on Thu 03 August 2017 in Software Engineering • Tagged with bootstrap4, css3, html5, javascript, jinja2

I decided to develop a new theme for my website. As time goes on, this article will be lengthy as the work is in progress and some sections will be re-written.


Continue reading

Tkinter best practices

Published on Tue 27 June 2017 in Software Engineering • Tagged with python, tkinter

Tkinter is the standard Python interface to Tk/Tcl GUI toolkit. Programmers often wonder how to structure their tkinter program. In this article, I am going to answer to a question posted on StackOverflow which contributions drift away from some of software engineering fundamentals.


Continue reading

How to contribute to Flask

Published on Sat 13 May 2017 in Software Engineering • Tagged with flask, framework, python

I am an opensource advocate. I want to contribute to Flask microframework. So I followed the official documentation on GitHub where I stumbled on 6 issues. The problem is that the documentation itself is misleading and that can be a good starting point.


Continue reading

Introduction to Flask

Published on Mon 08 May 2017 in Software Engineering • Tagged with python, flask, framework

This articles shakes hands with Python web development. It introduces the Flask microframework. It is rather a light and soft introduction in that it tells the newbies only what they need to know at this stage. It is intentionally kept short, simple and without confusing terminology.


Continue reading

Python singleton design pattern

Published on Sat 08 April 2017 in Software Engineering • Tagged with python, design patterns

This article describes the main strategies to implement the Singleton design pattern in Python. I am going to skip the whole very subjective "use and do not use singleton" conundrum.


Continue reading

tkinter: the SaYa idiom

Published on Sun 19 March 2017 in Software Engineering • Tagged with python, tkinter

Python is a paramount programming languages. The same is to be said about user graphical interfaces. SaYa is an idiom I devised for tkinter developers to help them build less error-prone applications.


Continue reading

Python unit testing

Published on Mon 13 March 2017 in Software Engineering • Tagged with python, unittest, unit testing

Python unit testing simplified with few anti patterns to avoid.


Continue reading