Tag: JavaScript

  • How to setup SCSS on your computer

    SCSS is a CSS pre-processor. By using a pre-processor like SCSS you can easily write simple and elegant CSS. You also have added advantage of variables, arithmetic operations and more. And overall writing sass can be more productive than writing simple CSS. Even though SCSS is similar to css and even though you can write […]

  • Why JavaScript dialogs (alert/prompt/confirm) are not widely used?

    Recently I started working on a small open-source project side project with Vue, and I wanted to create yes/no dialog (basically a model) which will show a notification with a confirm and cancel button. So users can confirm or cancel an event. However, since I don’t want to reuse my code and repeat the same […]

  • Why textareas can’t grow?

    Textareas are a basic and and an important element in any website UI. You might need textareas for a comment section, chat box, etc. However, textareas have one small problem that you can’t seem to find an answer, that is textareas won’t automatically grow in height, as you would need them to be in a […]

  • Using your browser’s developer tools to find vulnerabilities

    The breakthrough Again looking at the javascript code, just as what they did with the merchant dashboard, I saw that they are checking the authentication from the frontend using javascript. They store a local storage object with name, id, and email, and upon saving the objects in the local storage, they will redirect you to […]

  • How to host your NuxtJS in 10 steps

    I first started using NuxtJS one year ago, when I tried to make a platform for travellers to easily find and book villas online. But unlike other popular booking services, I was targeting villas that did not have an online presence or haven’t signup or don’t know how to use an online booking service. I […]

  • Run GraphQL server with Express in NuxtJS

    Since I use Vue for almost all of my projects, if I’m making an application that requires routing and server side rendering (for SEO), I use NuxtJS. NuxtJS is a framework where you can create a server side rendering app using VueJs. One of the things people struggle with NuxtJS is how to use an […]

  • The framework trap

    When it comes to programming, frameworks are there to make your life easy. React, Vue, Larvel, Bootstrap, I can go on and on to list your favourite frameworks. When it comes to web development, I love to use frameworks because, It helps me to follow best practises. Once I got used to a framework development […]

  • How to sort a list of words? The bucket sorting method

    In the last post I said that I just started my MSc in health informs. The first semester has five modules, one of those modules is about object oriented programming. The object oriented programming module starts with introduction to programming, mathematics in programming, flow charts and pseudo codes. When I was going through past papers […]

  • A TO-DO app that fits in a single tweet

    Sunday morning while I was scrolling through my Twitter feed one tweet caught my eye, #JavaScript Challenge: Can you make a TO-DO app within a single Tweet? (280 chars) The app should be able to add tasks, strike-through finished tasks & clear all tasks. Any general-purpose library is allowed.Starting HTML body should be empty except […]