---
title: "Madhankumar (@madhankumar028) | Hashnode"
description: "Frontend engineer by day, indie maker by night. Read the latest articles by Madhankumar on Hashnode."
url: "https://hashnode.com/@madhankumar028"
---

@madhankumar028

# Madhankumar

@madhankumar028 · Chennai · Joined June 2017

Frontend engineer by day, indie maker by night

[Website](https://madhankumar028.dev/)

## Comments

[Thanks Mohd Shad Mirza for making a design system in React Native and appreciate your efforts. Coming from the web background, I am just curious about how do you scale the font-size, spacing, height and width of an element. I hope even in the mobile also we have to support different media devices like landscape and portrait. In the web, I used to set my base space-unit as 1em and then will calculate the remaining space units. Besides this will change the base unit for different devices. By this way I achieved the scaling.](https://hashnode.com/posts/introducing-react-native-design-system-rnds/5e3bd0418a805c490b5b2bce/comment/5e3d22b8a6039fe8236af6bd)

Comment · Article · Feb 7, 2020 · [Introducing React Native Design System (RNDS) 🎉🎉](https://hashnode.com/posts/introducing-react-native-design-system-rnds/5e3bd0418a805c490b5b2bce)

[Thanks for putting such an effort to improve the codebase. All your suggestions makes sense. But the reason why I replicated the const/let/var gives the readability. Specially in the construct tabs, your changes are made me to write the plain JS for dom manipulation in decent way. I will consider all your changes. I didn't thought of intercepting the standard tabs navigation. The reason I don't want to disturb the keys which they have already familiarised. It may cause some confusion to the user. Is this make sense? Planned to add customising the keyboard shortcut for toggling the list.](https://hashnode.com/posts/tab-switcher-a-productivity-chrome-extension/5bf40443751662927cf61c40/comment/5bf46ae06873695f7bd523fa#reply-5bf55fc0ed2ea68203b7cdb0)

Reply · Article · Nov 21, 2018 · [Tab-switcher, a productivity chrome extension.](https://hashnode.com/posts/tab-switcher-a-productivity-chrome-extension/5bf40443751662927cf61c40)

[Sorry for the inconveniences, actually I didn't added any keys for Linux. Will add it in next release soon.](https://hashnode.com/posts/tab-switcher-a-productivity-chrome-extension/5bf40443751662927cf61c40/comment/5bf4b6fb6873695f7bd52681#reply-5bf4fd5a6873695f7bd527c1)

Reply · Article · Nov 21, 2018 · 1 · [Tab-switcher, a productivity chrome extension.](https://hashnode.com/posts/tab-switcher-a-productivity-chrome-extension/5bf40443751662927cf61c40)

[I hope you might have used Ctrl+p or cmd+p which will list all the opened files in your text editor. And from there you can search and move to your desired file. This extension would be helpful, if you are opening multiple tabs and windows in chrome.](https://hashnode.com/posts/tab-switcher-a-productivity-chrome-extension/5bf40443751662927cf61c40/comment/5bf416c6f0b3f76e0bd52f7c#reply-5bf418bcf867a48c5de53f73)

Reply · Article · Nov 20, 2018 · 1 · [Tab-switcher, a productivity chrome extension.](https://hashnode.com/posts/tab-switcher-a-productivity-chrome-extension/5bf40443751662927cf61c40)

[Your function a() is set in global context. Here global context is window object. console.log(kk) it will look for window.kk, no variable has been set in window. So it gives you undefined. So try to invoke the function a() first and then do your print.](https://hashnode.com/forums/thread/this-keyword-in-javascript/comment/5abb6fd044a6bc5d0de1f522)

Comment · Thread · Mar 28, 2018 · [\`this\` keyword in javascript](https://hashnode.com/forums/thread/this-keyword-in-javascript)

[My Primary goal is to learn RxJS. And I want to build an app, as a reactive application using Rx.js. I planned to learn in-depth advantages of all the operators in RX.js If anyone has a good resource for Rx.js, please do share with me in the comments. Resources I am using are: reactive.how egghead.io videos](https://hashnode.com/forums/thread/what-areas-of-programming-are-you-trying-to-improve-yourself-in/comment/5abb2d8a2f0bd6a1340e8a94)

Comment · Thread · Mar 28, 2018 · [What areas of programming are you trying to improve yourself in?](https://hashnode.com/forums/thread/what-areas-of-programming-are-you-trying-to-improve-yourself-in)

[Craziest feature I have built was social login. It is not a normal social login, here the user has to sign up with social account and then they can login with their social login. I have never ever seen this kind of social login in my internet experience.](https://hashnode.com/forums/thread/what-were-your-craziest-requirements/comment/5ab2832df0dab2bd6a6d9ab3)

Comment · Thread · Mar 21, 2018 · 2 · [What were your craziest requirements?](https://hashnode.com/forums/thread/what-were-your-craziest-requirements)

[In css removing units for 0, if anyone did it already. I won't copy and paste anything inside my code, rather I will write it most of the time. Naming event listener callback as function name + Handler, no matter what it is. Writing lengthy variable and function names.](https://hashnode.com/forums/thread/what-are-some-of-your-weird-coding-habits/comment/5aaddef4ef58f90914d8675b)

Comment · Thread · Mar 18, 2018 · [What are some of your weird coding habits?](https://hashnode.com/forums/thread/what-are-some-of-your-weird-coding-habits)

[While starting the programming career, we should know how to write readable code by proper indentation. If we go with any IDE to make it, definitely we will not get those habits.](https://hashnode.com/forums/thread/whats-the-best-programming-advice-youve-ever-received/comment/5a11d637aa37d87d41143dfc#reply-5aaddd82ef58f90914d86759)

Reply · Thread · Mar 18, 2018 · [What's the best programming advice you've ever received?](https://hashnode.com/forums/thread/whats-the-best-programming-advice-youve-ever-received)

[Recently I have written a function to get the image preview by using file reader. I have written this code block using Typescript. Use case: User can select multiple images for uploading, I will be showing the thumbnail as image preview. The below code block has been wrapped inside a function. I am eagerly waiting for suggestions and feedbacks. if (event.target.files) { let files = event.target.files; var contextArray = this.contextArray; // shallowcopy var contextImageArray = this.contextImageArray; // shallowcopy for (let file of files) { const reader: FileReader = new FileReader(); reader.onload = (function(f) { return function(e) { contextArray.push(f); contextImageArray.push( {'image': e.target.result, 'name': f\['name'\]}); } })(file); reader.readAsDataURL(file); } }](https://hashnode.com/forums/thread/what-are-some-of-your-favoritemost-used-js-code-snippetsfunctions/comment/5a379616a190c99174269d92)

Comment · Thread · Dec 18, 2017 · [What are some of your favorite/most-used JS code snippets/functions?](https://hashnode.com/forums/thread/what-are-some-of-your-favoritemost-used-js-code-snippetsfunctions)
