Sign Up Now!

Sign up and get personalized intelligence briefing delivered daily.


Sign Up

Articles related to "webdev"


#showdevCopying Javascript Objects in an efficient way

  • Copying Javascript objects can be tricky.
  • Most of the time, we will do shallow copy of an object in javascript.
  • But, there are few problems associated with that approach.
  • But getting into that topic, we will see what is shallow and deep copy in javsacript.
  • In javascript, shallow copy only clones the top level of an object.
  • if an object contains the nested or reference object.
  • it will copy only the reference to it.
  • To solve this problem, deep copying is used in javascript.
  • Meanwhile, deep copying in javascript clones the nested objects too and stores it in the different memory location.
  • So, changing the original object doesn't affect the cloned object.
  • Install lodash in your machine to use it.
  • After that, there is a method called clonedeep in lodash which is used to achieve the deep copying in javascript.

save | comments | report | share on


Create Your First React Desktop Application in Electron with Hot-Reload

  • When we're surrounded by a constantly changing environment in the JavaScript ecosystem that is mostly involved with apps in the web, we might even question whether desktop applications are even worth to get into.
  • Running that will create the electron-react-typescript-app folder and install the necessary dependencies listed in package.json.
  • This means that we won't be using the browser anymore since we are building a desktop application and that electron can load up content into each of its windows by giving them URLs. So we can instead use the electron windows (which will have access to node.js modules and the local file system).
  • We get the benefits of hot reloading from CRA right into the electron window along with node.js modules and the local file system environment right into the "web" page.
  • Lets now make the main electron process restart when we make changes to start.js, because currently we only have hot-reloading enabled for the web page UI.

save | comments | report | share on


My Top Youtube Channels to Learn Web Development and Programming

  • Sorry Guys, I didn't post an article for a month and a half because I didn't have the time because I quit my job and there are requirements that I have to do before leaving the company.
  • Sometimes learning Programming is hard, understanding the concepts and memorizing the syntax, so we need help from other people or sources that can solve our problem.
  • So these are my best Youtube Channels to Learn Web Development and Programming.
  • Shaun is one of the best guys to explain Core Concepts and Fundamentals of a certain technology.
  • He has tutorials for JavaScript, React and Redux, Vuejs, Git and Github and many more.
  • Brad teaches new Programming Languages and New technologies or frameworks and also he shares his experiences in his life and work and being a Software Developer.
  • He has tutorials for NextJS, HTML, CSS, JavaScript, Laravel, NodeJS and many more.

save | comments | report | share on


Useful sites and apps I've come across while studying web frontend development and web server configuration

  • Their web UI is more than enough to get a basic site hosted and they offer some really nice tooling around configuring Continuous Integration among some other great scaling options, and there is a free tier.
  • In fact, coming at setting up a web server with almost no knowledge of how to do it led me to using Digital Ocean for several sites I've done so far specifically because I wanted to learn more about how this is done.
  • I found this tool useful after a first pass on a site as it helps identify issues that I found fixes easy to learn and implement.
  • In my brief time learning about how to configure web servers Nginx has been fairly straightforward to use.
  • That's my set of sites and tools I've come across so far while learning web development.

save | comments | report | share on


#discussHow are you handling User Authentication?

  • I currently use passport.js, but I don't like it, and adding in social logins is complicated and annoying.
  • I'm currently shopping for a better solve for this problem.
  • I use three levels depending on the user / customer.
  • Its not an enterprise app, so Okta is a bit of overkill, but it is a nice solution.
  • Have a look at fusionauth, its a free fullblown auth solution.
  • Gives you all the benefits of a full blown auth system without a price tag.
  • We use it at $dayJob. For hosted solutions, Auth0 or Okta.
  • While okta appeals to enterprises, they have an auth product for your consumer apps similar to Auth0.
  • Firebase has some UI libraries you get on npm.
  • But I don't think they are officially supported by Firebase or anything they're just community libraries.

save | comments | report | share on


Improving CSS performance and file size - an in-depth guide

  • Minification removes formatting characters inside the CSS file (whitespaces, line breaks, etc.) which are only useful to us (makes the code readable).
  • Replacing the position CSS properties with transform and using transition on it, we are updating Composite step only, resulting in smooth animation.
  • CSS offers quite a few ways of "promoting" an element into a composite layer to tell the browser that this element will have its Paint CSS properties updated often.
  • In most cases, these properties won't affect your element in any way (if they don't override anything), but they will make the browser move the element into Composite layer, significantly improving animation performance.
  • Additionally, some CDN services offer basic minification and optimization options, so you can easily get a performance boost if your code is not minified already.

save | comments | report | share on


5 JavaScript functions to add to your utilities library

  • We all have our own utilities - dealing with date/time, validating common forms, etc, or maybe you use a third-party utility library like lodash or underscore.
  • Either way, below is a collection of useful JavaScript functions that you can use to create or expand your utilities library!
  • Enjoy and leave your own utility functions below in the comments.
  • It allows us to have jQuery-like functionality for adding and removing classes to multiple objects that have been selected on the DOM using querySelectorAll().
  • Also works on async functions as long as you use async/await.
  • If you prefer creating DOM elements dynamically, this may be useful to you.
  • It's a way to create div elements by passing in attributes as an object.
  • Utilities are an excellent way to reuse miscellaneous functions like the above.
  • What are some utility functions that you use all the time?

save | comments | report | share on


Learning NGINX Web Server from Zero to Hero

  • NGINX offers speed unmatched by competitors like Apache, on top of bonus features such as load balancing and HTTP caching.
  • Its rising popularity makes NGINX an indispensable skills for web developers, system administrators, and web technologists of all kinds.
  • you will learn how to install and configure NGINX on a Linux machine, and set up the rest of the pieces you need for the complete LEMP web development stack also explores the security features of NGINX, such as password authentication, HTTPS, and SSL certificates, and its capabilities as a reverse proxy and load balancer.
  • Sore eyes?

save | comments | report | share on


Improving CSS performance and file size - an in-depth guide

  • Minification removes formatting characters inside the CSS file (whitespaces, line breaks, etc.) which are only useful to us (makes the code readable).
  • Replacing the position CSS properties with transform and using transition on it, we are updating Composite step only, resulting in smooth animation.
  • CSS offers quite a few ways of "promoting" an element into a composite layer to tell the browser that this element will have its Paint CSS properties updated often.
  • In most cases, these properties won't affect your element in any way (if they don't override anything), but they will make the browser move the element into Composite layer, significantly improving animation performance.
  • Additionally, some CDN services offer basic minification and optimization options, so you can easily get a performance boost if your code is not minified already.

save | comments | report | share on


#showdev3 ways of strengthening your GraphQL API

  • GraphQL is really about collaboration, and the teams that get furthest are those who work closely together on their GraphQL API.
  • This idea is very true but collaboration becomes a very tricky part of any development project where there are multiple teams involved.
  • So a question arises, is there any way to make collaboration on a GraphQL API easier & more pleasant experience?
  • Let me introduce you three ways of strengthening your GraphQL API which might save your teams from jumping at each other's throats.
  • Autocomplete for Queries - Create an auto-complete library for JavaScript or TypeScript with a built-in GraphQL Zeus feature.
  • Schema Libraries (Schema stitching done right) - built-in GraphQL libraries allow you to create new GraphQL schemas from multiple underlying GraphQL APIs. Fake backend - allowing you to run a GraphQL Server with faked data available for testing with a single click.

save | comments | report | share on