Ruby's early returns can be harmful
Introduction I鈥檝e been using Ruby for a some time now and I鈥檝e noticed that early returns can be over used. I鈥檒l review at one example with enums where I think some early returns can be harmful. Note: I am not saying early returns are bad, but in this specific example they can be harmful. Enums Ruby does not natively support enums, but they still do exist in business and other domains....
Conway's Game of Life
Introduction The game of life is a cellular automation devised by John Conway. This simulation has only a few rules, but it is Turing complete [0] and incredibly interesting to watch. With recent news about Conway, I thought it鈥檚 time to give it a go. In one programming kata, I had encountered this problem, but never went to fully complete this simulation. This time, I鈥檒l use my favorite programming language, Scala, and my current favorite library, ZIO [1]....
Backtracking: 8 Queens
Introduction Recently I started reading a book about evolutionary computing. As you can guess - its about problem solving using evolution concepts. One of the first examples in the book is about 8 queens puzzle. Its a puzzle in constraint satisfaction problem space and my guess is that it is solved with evolutionary computing later on. I think it would be interesting to look into more common algorithm for this puzzle before proceeding with the book....
Let's code: CRUD in Angular with unit tests
Introduction CRUD application we are going to implement will have some additional complexity you might expect: import/export data save/load chunks data lazy data processing pagination tests This project鈥檚 source code is in github - https://github.com/benetis/angular-advanced-crud p.s some of code parts are not in sync going down - so I advise to also fork github repo and check code yourself Requirements & Task itself Aside of the stuff we mentioned above - we obviously will be implementing CRUD operations....
Let's code: Authentication in Angular #1 - creating login form
Introduction Login form - a gate though which user logs into application. If it is working well - you don鈥檛 notice it - if it is bad - it will always annoy you. Of course it is not only UX/UI problem - there are security implications on server side also. But we will keep these concerns beyond this post scope. We will have few blog posts on authenticating Angular application. This one will focus on login form....