Skip to main content

Posts

Showing posts from September, 2018

Machine Learning Series ( Part 1 )

Machine Learning is Fun! The world’s easiest introduction to Machine Learning Update: This article is part of a series. Check out the full series: Part 1 , Part 2 , Part 3 , Part 4 , Part 5 , Part 6 , Part 7 and Part 8 !  Bigger update: The content of this article is now available as a full-length video course that walks you through every step of the code . You can take the course for free (and access everything else on Lynda: Online Courses, Classes, Training, Tutorials free for 30 days) if you sign up with this link . Have you heard people talking about machine learning but only have a fuzzy idea of what that means? Are you tired of nodding your way through conversations with co-workers? Let’s change that! This guide is for anyone who is curious about machine learning but has no idea where to start. I imagine there are a lot of people who tried reading the wikipedia article , got frustrated and gave up wishing someone would just give them a high-level explanation. That’s

Android MVP for Beginners

We have a video player application that we developed as a weekend hobby project which does a few things like slow motion, reverse and zoom . Having done the video listing part of the application with very little emphasis on design and maintainability of the code, soon after adding new features the code became an “embarrassment”. Kept getting crashes and the only solution for those crashes we could come up with was adding a try catch :(. Needed to make the video listing part of my application crash free, easy to maintain and extend. I had to turn to a design pattern and it was the MODEL VIEW PRESENTER . I have never professionally written code in Android, so all the explanations below would be from a beginners perspective. This article is implementation of the ideas I learned from the below article. Please go through the below article to better understand the concepts https://www.techyourchance.com/mvp-mvc-android-1/ Blueprint for MVP Application blueprint for mvp applica

Demystifying React ’s Virtual DOM

React has become one of the most popular Javascript UI libraries and today we are going to see one of the most important reasons behind it — its efficiency in updating the DOM. That’s where React ’s Virtual DOM comes into play. What is Virtual DOM? Virtual DOM is in-memory representation of the Real DOM. It is a lightweight JavaScript object which is a copy of the Real DOM. If it’s a copy of the real DOM, why do we say it makes the update faster? For that we first see… Why is real DOM update slow? Or is it really? Updating real DOM is not slow.Its merely updating a javascript object. Let’s now look at what actually makes the update process slower. Rendering engine which is responsible for displaying or rendering the web page on the browser screen parses the HTML page to create the DOM. It also parses the CSS and applies the CSS to the HTML creating a render tree, this process is called as attachment . Layout process give exact coordinates to each node of the render tree, whe

Beginners guide to Competitive Programming

Beginners guide to Competitive Programming In this blog I will be sharing my experience and provide some tips to those who want to start competitive programming or has already started it but don’t know how to proceed. Before we begin, I want to clarify that I don’t consider myself a great coder but since I am coding for almost a year I have gathered some experience and have also made some mistakes in the beginning which I want to share so that no one repeats them. Let’s begin then. So the first question that comes to everyone’s mind is Why Competitive Programming? Because it’s FUN . That adrenaline rush when you see ‘Running’ written on the screen and you wait to see whether you solved the problem correctly or not. Seeing your name climb up the leaderboard with each problem you solve. Being first to solve a problem that your friends are desperately trying to solve. Frustration after repeatedly getting ‘Wrong Answer’ . It’s a mix of different feelings and more of a journey in