Is this MOOC good for me?

Posted on Wed, 05 Apr 2017 in Other • Tagged with mooc, coursera, stepic

There are a lot of massive open online courses (MOOCs) today. Some of them are free, other paid. Such courses were all hype couple years ago. Now when we all come down to earth, there are some questions about that courses: how to add them to my education plan and how to choose the best one.


Continue reading

Modern Operating Systems 4th edition Review

Posted on Sun, 19 Mar 2017 in Reviews • Tagged with book, operating systems

If you want to know how modern operating systems work, you should read Modern Operating Systems written by Tanenbaum and Bos. It is a well-written book full of actual information about its topic.


Continue reading

Enums in Python

Posted on Fri, 17 Feb 2017 in Python • Tagged with enums, python

Enums are less used feature in Python. We as programmers prefer to use weird dicts or lists where enum should be used. Why? Because it is rather new feature and you have to install back port library if you use Python 2.7. However, it's better to use them in many cases.


Continue reading

Why I Use Plain Text Everywhere

Posted on Tue, 31 Jan 2017 in Other • Tagged with plain text, orgmode

A week ago I tried to migrate the blog to Wordpress again. I decided to give it another chance because I had plans to add more images to posts. It's quite difficult to do it using Pelican. Wordpress has a great tool for image managing. I thought that its WYSIWYG editor was good too. I installed it and I even converted a couple of posts to it. But then I decided to stop. It took me 20 minutes to format properly that posts.


Continue reading

Effective Java 2nd edition Book Review

Posted on Fri, 30 Dec 2016 in Reviews • Tagged with java, book

If you ask what Java book you must read, everyone says Effective Java. This book is in all lists of recommended Java books except the lists witch author sells own books. There are several reasons why this quite old book is so popular.


Continue reading

How to set up HTTPS for S3 static site

Posted on Mon, 12 Dec 2016 in Other • Tagged with pelican, https, amazon

Google is using HTTPS as a ranking signal since August 2016. Amazon lets their users free certificates. This two factors forces me to find out how to set up HTTPS for my S3 blogs. The solution is to place an S3 bucket behind CloudFront.


Continue reading

Java-like Optional in Python

Posted on Wed, 23 Nov 2016 in Python • Tagged with python, java

Sometimes using None makes a mess of a code. For example, if you want to separate some "empty" value and "no data" value for integer input where 0 isn't "empty" value, it's very hard to do with None only. Possible solution is to use something like Optional in Java.


Continue reading

Backtracing without Recusion in Python

Posted on Thu, 03 Nov 2016 in Python • Tagged with python, backtracking, recursion

As you know there is no tail recursion optimization in Python. Moreover it has a very low recursion limit. It can be a problem if you are trying to solve the problem using the backtracking algorithm. Recursion limit is big enough to solve sudoku, but an exception will raise if the problem has more possible solutions.


Continue reading

Functional Programming Principles in Scala Course Review

Posted on Mon, 24 Oct 2016 in Reviews • Tagged with scala, coursera, functional programming

This fall I finished "Functional Programming Principles in Scala" Coursera course. This course is a part of specialization "Functional Programming in Scala." It's 6 weeks long introduction to Scala and functional programming.


Continue reading

Want to add type annotation to a variable? Do refactoring!

Posted on Thu, 06 Oct 2016 in Python • Tagged with python, type hinting

There is the PEP 526 implemented in Python 3.6 that adds optional type annotations for variables. It's replacement for type comments. There is one pitfall: adding type annotations for local variables can hide problems with code.


Continue reading