Blog

Notes on Algorithms 1, Binary Search

Algorithms are recipes to come up with a solution. Large algorithms are actually a collection of lots of smaller algorithms. When it comes to working with lots of data, making an efficient algorithm becomes important. The study of algorithms is needed to build big systems. This could result in the saving of computer time which translates into money saved. There are bunch of popular algorithms in the computer science land. Since computers like to work with a lot of data, it makes sense to come up with better ways to sort and search all these data. Data structures and algorithms …

Read More

React Redux Notes

Redux is not just for React, it’s a store system available for other frameworks like Angular, Jquery, Ember or vanilla JS. redux is the main package and react-redux is a supporting package for binding with react. Installation Store Create a store.js file to store all the state items in it. I did it on src/redux/store.js Import createStore which is a function from redux: Create a default state object to hold all of your state info: Create a reducer function which takes a state and an action object. Always return the default state from the reducer function. Destructure the type and …

Read More

How to Share Passwords With Your Developer

Sharing your password can put you in a lot of anxiety when working with a developer from sites like Fiverr and Upwork. Sharing passwords with a technical person is a common practice when it comes to outsourcing. But if done incorrectly, your passwords can be exposed to a third party or a hacker. To prevent this, I am going to outline some of the best practices when it comes to sharing passwords with your designer/developer. Especially when you are hiring them on a marketplace such as Fiverr or Upwork. Give your developer access to your site without sharing the password …

Read More

JavaScript Closure Quickly Explained

A closure happens when one function is inside another function, and the inner function wants to access a variable which belongs to the outer function. In JavaScript every function creates its own scope. We may not realize it just by looking at the code, it will help if we visualize it like this: The floor is like the main function scope or the global scope. Every time you create a new function, it will be like a bucket. All the variables you create inside that bucket (function) will only be accessible within that bucket only. You can create a function …

Read More

How To Properly Handle Your User’s Passwords

What do you do with your user’s password? Do you store it into the database? You don’t! You should never store the raw password into your application. Some badly coded websites store the raw password into their database. They store the actual password and even send you via email: This means your password is at risk. (by the way, I didn’t code that website, I used a plugin called DAP in WordPress) As an app developer, you should not store the actual password into your database. And, as a user you should stay away from such sites and inform the …

Read More

Understanding React, My Talk at React Con Dhaka

So last week I had the chance to talk at my very first React and JavaScript event. In this talk I shared my journey of learning React + some of the inner workings of this JavaScript framework. If you would like to know more about this event, you can read my post on Medium (Opens in a new tab) I posted the live recording over at YouTube, you can check it out (The language is Bangla) For those who are reading my blog, I am going to share a few pointers which I discussed about Understanding React: My React Story …

Read More