Posts

Showing posts from November, 2019

Checking if string is numeric in Typescript and Javascript

Image
I came across a problem of converting a char value to a number when I was working with Javascript. The interesting thing was that the solution just wasn’t as obvious as I initially thought. In this post, I will talk about how I solved the problem and why did I come across it in the first place. Background In a  previous post , I mentioned how I was solving a bunch of recursive problems on CodingBat.com! Well…I had a bit too much fun with it and I decided to extend the fun by solving  string problems  as well. Solving the string problems was good easy fun, until I came across a minor issue. Issue The problem I was trying to solve was  sumDigits . It’s a simple problem i.e. As I mentioned in my previous post and as you can see, CodingBat is focused on Java. However, the problem description is fairly generic and can be solved in any language. When writing the code for this problem the first thing that I thought of was  Math.abs . For anyone who’s wo...

Ubisoft games like Far Cry, Assassin's creed etc and smart software engineering (coding)

Image
I am a big fan of Ubisoft games. Especially the Far Cry games. I have played 6 out of 8 of those games. There’s something about the big open-world that these games puts you in. It feels great to wreck havoc and cause chaos in them; great escapism! Ohh and it applies to the Assassin’s Creed games too. However as I kept playing through Ubisoft games, I soon realised that they all have very similar qualities, in some cases it feels like same game. I have thought about writing a post on their games from a software engineering perspective for a while now. Hence, since I am dealing with some personal problems (relationship) right now, the timing couldn’t be any better for this i.e. it’s a great pass time. In this post, I will talk about my theory on Ubisoft engineers and how they maybe creating these open-world games. My theory involves them using some ingenious template for open-world games that cuts their development time by at least 30%. Getting into Far Cry Ubisoft (and their g...