Best of daily.devNovember 2022

  1. 1
    Article
    Avatar of communityCommunity Picks·4y

    Advanced TypeScript

    Mapped types are a great way of transforming existing types into new types. We create the helper type that takes a type and maps all properties to be of return type.

  2. 2
    Article
    Avatar of medium_jsMedium·3y

    Say bye bye to bad javascript practices

    Some small practices in programming can have a continuously negative impact on the code we write and the product we create as the end result. It’s important to share what they are and why you should avoid them at all costs. Here are a few tips and reminders to help you write code comments like a pro.

  3. 3
    Article
    Avatar of joshwcomeauJosh W Comeau·3y

    An Interactive Guide to Flexbox

    Flexbox is a remarkably powerful layout mode. It uses fluid principles to create a layout that flows seamlessly. When we truly understand how it works, we can build dynamic layouts that respond automatically. We'll build an intuition for how the Flexbox algorithm works, by learning about each of these properties.

  4. 4
    Article
    Avatar of devtoDEV·4y

    An animated guide for Node.js event loop

    Node.js is single-threaded, but what does it mean in practical terms? We will explore it by following this piece of code step by step. The V8 JavaScript engine manages a call stack, an essential piece that tracks which part of our program is running. The event loop connects the queue with the call stack.

  5. 5
    Article
    Avatar of communityCommunity Picks·4y

    The Full-stack Software Design & Architecture Map

    The Full-stack Software Design & Architecture Map. How to Learn Software Design and Architecture is taken from Solid Book - The Software Architecture & Design Handbook w/ TypeScript + Node.js. The map is a little bit more detailed, and as a result, the map is more useful.

  6. 6
    Article
    Avatar of communityCommunity Picks·3y

    React - Best Practices

    In JavaScript, you can adopt ES6 syntax to make your code cleaner. Don't Forget key Prop With map in JSX Always assign a unique value to the prop to every JSX element while mapping from an array. Use Ternary Operator instead of if/else if Statements makes your code bulky.

  7. 7
    Article
    Avatar of communityCommunity Picks·4y

    5 websites to learn Frontend-web development faster

    In this article, I have curated 5 resourceful sites that will help you better you web development skills really fast. Exercism gives you the same path of study with extra challenges to help you grow faster. Below is a roadmap to master the fundamentals of JavaScript using this site.

  8. 8
    Article
    Avatar of communityCommunity Picks·4y

    JavaScript Under The Hood: Advanced Concepts Developers Should Know

    In JavaScript, the scope goes from outer to inner. This means that variables declared in the outer scope can be accessed in all inner scope, not vice versa. When console.log (sport) was run, it attempted to locate the variable declaration in the favoriteSport function. The external reference point is determined by where your function is lexically positioned. For example, favoriteSport() is Lexically positioned not within function otherSport.

  9. 9
    Article
    Avatar of gcgitconnected·3y

    Javascript Design Patterns

    Singleton design pattern exposes a single instance that can be used by multiple components. Singleton Pattern can be considered the basics of global state management libraries such as Redux or React Context. The factory pattern is preferred in cases where the object creation process depends on dynamic factors.

  10. 10
    Article
    Avatar of communityCommunity Picks·3y

    Fun with console.log() 💿

    The method prints objects/ arrays as a neatly formatted tables. Sections can be collapsed and expanded in the console, but you can also have a section collapsed by default, by using instead of.

  11. 11
    Article
    Avatar of medium_jsMedium·4y

    Clean Code in TypeScript

    Code smells or bad code doesn't mean that the code is not usable, but as a programmer, I think we should produce reusable, readable, and refactorable software. I will not repeat the mistakes in the last article, if you haven’t read it, please check it out.

  12. 12
    Article
    Avatar of bytebytegoByteByteGo·3y

    Twitter Architecture 2022 vs 2012

    The diagram below shows how data is encapsulated and de-encapsulated when transmitting over the network. Each layer can rely on the headers for processing instructions and does not need to know the meaning of the data from the last layer.

  13. 13
    Article
    Avatar of anavidAnalytics Vidhya·4y

    Creating a Music Streaming Backend Like Spotify Using MongoDB

    Creating a Music Streaming Backend like Spotify using MongoDB. This article was published as a part of the Data Science Blogathon. In this article, I will show you how to handle uploading songs to the database, streaming music, user authentication, the ability to choose your favorite songs, and a recommendation engine. We will add our code in a new file named ‘auth.ts’ in a new file.ts.

  14. 14
    Article
    Avatar of torquemagTorque·3y

    CSS Best Practices: 16 Ways to Improve Your CSS Skills Quickly

    By adhering to basic guidelines for writing CSS, you can make sure you produce clean, legible, and easily supportable code. Make your code readable and make it more comfortable to understand, maintain, and work with. If there is an existing style guide, stick with that.

  15. 15
    Article
    Avatar of communityCommunity Picks·3y

    HTML Cheat Sheet

    HTML Cheat Sheet contains useful code examples and web developer tools, markup generators and more on a single page. These pages were created as a quick guide for those who already know how to work with these languages. The page was created in 2020 with the latest HTML5 rules and will be updated regularly.

  16. 16
    Article
    Avatar of communityCommunity Picks·3y

    Is React going anywhere?

    React will be 10 years old on the 29th of May 2023 (finally recruiters are able to ask for 10 years of experience, without being a laughing stock) React is getting old, and when applications start to get old, you start finding issues, loads of them.

  17. 17
    Article
    Avatar of pointerPointer·4y

    A Visual Guide to SSH Tunnels (with labs)

    SSH is yet another example of an ancient technology that is still in wide use today. With nothing but standard tools, you can achieve the following: Access internal VPC endpoints through a public-facing EC2 instance. Expose any local server from a home/private network to the outside First, we need to prepare the server - a machine with the SSH daemon and a simple web service listening on 127.0.1:80. The web service is a simple online service.

  18. 18
    Article
    Avatar of communityCommunity Picks·4y

    Why you should never use px to set font-size in CSS

    CSS Tricks: Why you should never use px to set font-size in CSS is an important, and poorly understood topic. If you pick the wrong unit, you risk overriding your users’ preferences, making it stands for “root em,” and the root of a webpage is the tag.

  19. 19
    Article
    Avatar of pointerPointer·4y

    yangshun/tech-interview-handbook: 💯 Curated coding interview preparation materials for busy software engineers

    Over 500,000 people have benefitted from this handbook. Best practice questions for coding interviews - Grind 75 - the next evolution of Blind 75, bigger and better. How to prepare for coding interview best practices.

  20. 20
    Article
    Avatar of communityCommunity Picks·4y

    Moving Letters

    Text animated with JavaScript & anime and anime. Text animated with CNN & anime. Use this to help you with reading comprehension and vocabulary. Use the weekly Newsquiz to test your knowledge of stories you saw on CNN.com and iReport.

  21. 21
    Article
    Avatar of devtoDEV·3y

    The Difference Between the Shell and the Terminal

    The shell and the terminal are different from each other but are often used interchangeably. When using a command line interface, we use text commands to make our programs work instead of a Graphical User Interface. The shell is a program that takes commands from the keyboard and gives them to the kernel to perform.

  22. 22
    Article
    Avatar of bytebytegoByteByteGo·3y

    EP34: Session, cookie, JWT, token, SSO, and OAuth

    The Black Friday sale is now up! Use code BF2022 at checkout for 30% off my system design interview online course. This week’s system design refresher: System design interview course (Black Friday Sale) Token, Cookie, Session What is CDN?

  23. 23
    Article
    Avatar of communityCommunity Picks·4y

    Is Flutter better than React Native?

    Flutter and React Native are natural competitors as two of the most used multi-platform mobile app frameworks. The answer lies not in the technical aspects of React Native and Flutter at all. Hiring developers is famously difficult right now, but the pool of developers to draw from is far larger than Flutter's.

  24. 24
    Article
    Avatar of communityCommunity Picks·3y

    The Math Behind Nesting Rounded Corners

    The Math Behind Nesting Rounded Corners is the math behind nesting rounded corners. To nest one circle inside of another, the inner circle needs a smaller radius than the outer circle.

  25. 25
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    TypeScript for React Developers – Why TypeScript is Useful and How it Works

    The idea behind this article is to go through the basics of TS and understand the benefits of TypeScript. In the second section of this article, I will cover the specifics of TS with React. This should help you decide if you want those benefits or not.