Best of Logging2021

  1. 1
    Article
    Avatar of hashnodeHashnode·5y

    7 console.log() alternatives

    console.count() is used to check how many times this line has been called. console.assert() is Used to assert that something is truthy. If not, it will log a message to the console.console.group() and console.groupEnd() are used for grouping similar (or different ;) logs together.

  2. 2
    Article
    Avatar of freecodecampfreeCodeCamp·5y

    Git Cheat Sheet – 50 Git Commands You Should Know

    Git Cheat Sheet – 50 Git Commands You Should Know. Git Cheat Sheets – How To Use The Git Cheatsheets. How to Use the Git Components. How To Utilise The Git Compressors. What Do You Do With Git? Let us know.

  3. 3
    Article
    Avatar of thisdotThis Dot·4y

    Clean Up Your Code With Design Patterns in Javascript

    Design patterns are a bit of a controversial topic in the dev community. Some developers believe they are overly complicated, others are dogmatic about using them. Let's unpack a few commonly-used JavaScript design patterns together, and discuss how they can make your code cleaner and easier to maintain.

  4. 4
    Article
    Avatar of devtoDEV·5y

    Essential Concepts in JS

    Javascript is a language that can do almost anything you want it to do today with much ease. It is different from C/C++ in that it is interpreted line-by-line, rather than a program being read at once. It can only perform one single task at a time. It queues different tasks into different queues based on type.

  5. 5
    Article
    Avatar of hashnodeHashnode·5y

    100 most asked JavaScript Interview Questions and Answers - Part 1

    JavaScript is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions. It is most well-known as the scripting language for Web pages, but many non-browser environments also use it, such as Node.js, Apache CouchDB, and Adobe Acrobat.

  6. 6
    Article
    Avatar of devtoDEV·5y

    5 useful javascript tricks

    In this post, I will show you 5 awesome javascript tricks which will make your life more easier. So if you are interested, continue reading. Tricks include removing duplicates from an Array and turning a Decimal Number to an integer. Trick-4: Get a random index value from an array. Trick-5: Detect the most lengthy word in an array

  7. 7
    Article
    Avatar of hnHacker News·4y

    Ten Years of Logging My Life

    Chronofile is an Android app that tracks a person's daily activities. The app is open source and available on GitHub. Over the past four years, it has logged 85,000+ activities over the span of a decade. The data is endlessly fascinating to sift through, but it also tells a personal story.

  8. 8
    Article
    Avatar of gcgitconnected·5y

    Secret JavaScript tricks to compete with your fellow super fast senior dev’s debugging speed

    Secret JavaScript tricks to compete with your fellow super fast senior dev’s debugging speed. Using the Debugger Instead of Logging it Every Time. Logging an Array using console table and sorting the values. Live Expressions in Chrome Dev tool to value your JavaScript expressions real time.

  9. 9
    Article
    Avatar of hnHacker News·5y

    Firefox Relay

    Firefox Relay will no longer forward messages sent to ⁨⁩. Once you delete this alias, it cannot be recovered. If you recreate a deleted alias, emails sent to the original alias will continue to be forwarded. You should update your login with a different email address before youdelete this one.

  10. 10
    Article
    Avatar of hashnodeHashnode·5y

    What's new in Javascript 21 - ES12

    This year javascript is bringing 4 new features, which are almost in production rollout. I won't be wasting much more time and directly jump to code with easy to understand examples. Use the latest node version, if you want to play around with these features. Once the compatible node version is available, simply create a new JS file, and let's get started.

  11. 11
    Article
    Avatar of hnHacker News·5y

    Developer Tools secrets that shouldn’t be secrets

    Microsoft Edge’s Console is the most used part of the browser developer tools. There are a few problems with that, and there are better ways to debug scripts. This is a talk that I’ve given at CityJS this September. These are things I encountered during working on the tools and going through user feedback.

  12. 12
    Article
    Avatar of hashnodeHashnode·5y

    What is Typescript and why should you be using it?🤔

    TypeScript is a superset of JavaScript. All the concepts of JavaScript are combined with TypeScript's own concepts that make the language increasingly powerful. It converts your JavaScript which can be run on the web, on a phone, or on Node.js. TypeScript is widely used and loved by developers around the world.

  13. 13
    Article
    Avatar of asayerasayer·5y

    3 Design Patterns in TypeScript for Frontend Developers

  14. 14
    Article
    Avatar of devtoDEV·5y

    ✨ 7 Tips & tricks to make your console.log() output stand out

    The console.count() method can be useful if you'd like to know how many times a component was rendered. Organize the output of an object of array by using the console.group() method. For styling the consolelog yes, but for other cases you can use template literals.

  15. 15
    Article
    Avatar of devtoDEV·5y

    JavaScript Hoisting

    JavaScript hoisting refers to the process where the compiler allocates memory for variable and function declarations prior to execution of code [1]. That means that declarations are moved to the top of their scope before code execution regardless of whether its scope is global or local. The code snippets below show hoisting in action: declare the function first and use/invoke it after.

  16. 16
    Article
    Avatar of devtoDEV·4y

    Kickass VS Code Extensions To Make Your Life Easy

    These extensions can drastically improve your workflow and make your IDE more attractive. Here is a list of some of the extensions that could be useful for primarily front-end developers who want to get the most out of their VS Code. Live Server: A live reload feature reflected on a local server with whatever it is you’re coding.

  17. 17
    Article
    Avatar of gcgitconnected·5y

    Dependency Injection in TypeScript

    Dependency Injection in TypeScript is a way to separate domain and persistence layers in Node apps. We can use TypeScript decorators to create our own DI service with help of the Dependency Manager. We have Logger classes we want to inject and DependencyManager which stores all needed mappings.

  18. 18
    Article
    Avatar of devtoDEV·5y

    8 JavaScript Tips & Tricks That No One Teaches 🚀

    JavaScript is one of the coolest languages in the world and is gaining more and more popularity day by day. So the developer community has found some tricks and tips after using JS for quite a while now. Today I will share 8 Tips & Tricks With You!Functional Inheritance is the process of receiving features by applying an augmenting function to an object.

  19. 19
    Article
    Avatar of devtoDEV·5y

    7 interesting deprecated JavaScript features

    JavaScript has come a long way since its birth 26 years ago at Netscape. Some of these can still be used but it’s highly discouraged. There is no place for optimization inside it, since you can’t predict if variable will refer to a property or an outside variable. It violates lexical scope, making program analysis very hard or even infeasible.

  20. 20
    Article
    Avatar of hashnodeHashnode·5y

    🔥 Top 7 JavaScript Array sort() Method Use Cases

    The sort() method sorts the elements of an array and returns the sorted array, and no copy is made. The default sort order is ascending. In this article, we will see how we can utilise its power to the fullest. We can sort a simple array of strings using a functionless array sort()method like this.

  21. 21
    Article
    Avatar of devtoDEV·5y

    JavaScript's Forgotten Keyword (with)

    The "with" keyword can be used to inject arbitrary objects into a scope chain. It can also introduce security vulnerabilities. It is forbidden in strict mode for a reason. It adds some interesting capabilities to the language, but ultimately it is not a must-use keyword.

  22. 22
    Article
    Avatar of sitepointSitePoint·5y

    Beyond Console.log() – Level up Your Debugging Skills

    A common developer workflow is to write code in an editor, save it, then switch to the browser and load the product to see if everything works. We only use a small percentage of the tools at our disposal, and we may miss out on opportunities to work better. We’ll look at a few features of freely available developer tools you probably use but don’t know about.

  23. 23
    Article
    Avatar of devtoDEV·5y

    Some Javascript Methods you should know

    In this article, we are gonna look at some javascript methods that you should know. You might know some as well if yes then feel free to skip that particular section. We are just taking a string and splitting it into an array then we use the reverse() and join() back together. Let's see how we can implement it.

  24. 24
    Article
    Avatar of devtoDEV·5y

    5 Git Tricks Every Developer Should Know

    In this article we will discuss 5 git tips and tricks that will enhance your productivity, better your workflow and make you an overall git ninja. Let’s dive in: Remove all your local git branches but keep master. A better git log visualization on terminal. How to delete a git branch locally and from remote.

  25. 25
    Article
    Avatar of devtoDEV·5y

    Making your console log statements stand out

    console.time() and console.timeEnd() can be used to show how much time a particular block of code takes to run. You can group a set of console logs having a particular meaning apart from the rest using this method. Using various format specifiers inside them, you can also log objects as such: console.group andconsole.groupEnd. Using console.collapsed() to have the logs closed by default.