Best of Logging2022

  1. 1
    Article
    Avatar of slackSlack engineering·4y

    Recommend API

    Recommend API allows us to quickly bootstrap new recommendation use cases behind an API which is easily accessible to engineers at Slack. These recommenders reuse a common set of infrastructure for every part of the recommendation engine. This has allowed us to deliver a number of different recommendation models across the product, driving improved customer experience.

  2. 2
    Article
    Avatar of hnHacker News·4y

    Who wrote this shit?

    It is a beautiful rite of passage for a junior developer to join a team, take some tasks full of enthusiasm, and have the life and joy sucked out of them one sprint at a time. Trashing legacy software is fun. It creates camaraderie. Who wrote this? What were they thinking? Looking at the commit log showed names that meant nothing to me.

  3. 3
    Article
    Avatar of communityCommunity Picks·4y

    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.

  4. 4
    Article
    Avatar of devtoDEV·4y

    What's new in ES2022? 🤔

    The new version of ECMA Script will become standard in few months. Let's take a glimpse at the features that will be part of ES2022. Features include method .at() of indexable values. RegExp match indices. Top-level await modules. New members of classes via public fields.

  5. 5
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    Best Practices for Scaling Your Node.js REST APIs

    Use throttling at the first junction point between your application and the News Feed Service. Use the ELK stack for setting up a good logging and alerting pipeline. If a request goes through multiple services during the lifecycle, you can pass along a unique ID in the logs to capture a particular request across all the services.

  6. 6
    Article
    Avatar of devtoDEV·4y

    8 techniques to write cleaner JavaScript code

    In this article, we're going to look at 8 different techniques to help you write cleaner JavaScript code. Pure Functions are a function that always returns the same output, given the same input(s) Fewer or Named parameters are a good way to make your code cleaner.

  7. 7
    Article
    Avatar of webtoolsweeklyWeb Tools Weekly·4y

    CSS Tools, Databases, JSON, SVG

    There are a number of different ways to remove empty items from an array in JavaScript. To remove blank values alone is something more specific, but there are a few ways to do it. You can find all the above examples in this CodePen. Now on to this week's tools!

  8. 8
    Article
    Avatar of hashnodeHashnode·4y

    How To Solve Coding Problems Like A Pro

    According to Indeed, an American worldwide employment website for job listings, problem-solving skills are the 4th most important skill required as a programmer. In this article, I'll work you through 4 step framework on how to solve problems like a professional. We'll also solve a real problem to solidify our understanding.

  9. 9
    Article
    Avatar of bitBits and Pieces·4y

    9 JavaScript Console Tips That Will Improve Your Debugging Skills

    There’s more to using console.log() to debug code. Learn more about the different JS console methods available. Take your CSS skills using them in the console to add styling to any log statement. 9 JavaScript Console Tips That Will Improve Your Debugging Skills.

  10. 10
    Article
    Avatar of quastorQuastor Daily·4y

    How to Design Better APIs

    Ronald Blüthl wrote a great blog post on how to design better REST APIs with 15 language-agnostic tips. We’ll go through a couple here Use ISO 8601 UTC dates Version the API Pagination Provide a health check endpointPlus some tech snippets on How Netflix tests for performance regressions.

  11. 11
    Article
    Avatar of devtoDEV·4y

    JavaScript Proxy the Fetch API

    The Fetch API is a native wrapper to efficiently perform requests to URLs. We can use Proxy to extend any object, array, or function, so it is logical. Let's say our app has a file that handles all API calls, and they all use the F fetch API.

  12. 12
    Article
    Avatar of quastorQuastor Daily·4y

    How to Design Better APIs

    Ronald Blüthl wrote a great blog post on how to design better REST APIs with 15 language-agnostic tips. Use ISO 8601 UTC dates Version the API Pagination Provide a health check endpointPlus some tech snippets on How Netflix tests for performance regressions How gifs work How Medium does code review

  13. 13
    Article
    Avatar of appsignalAppSignal·4y

    Patterns and Anti-patterns in Node.js

    There are two ways to declare variables in JavaScript: var and let. var declares a function-scoped variable (when declared within a function) Let and const declare block- scoped variables. With let and const, you won't be able to use a variable that has not been declared.

  14. 14
    Article
    Avatar of gcgitconnected·4y

    Production code: Top 5 Best practices

    Make your objects immutable. Enums for well-defined values should be used. Choose the correct logging level. Never sensitive data like passwords or other personal information. Use standard loggers in any language, but this should be taken care of. Try to ensure that messages are in top-parsable format.

  15. 15
    Article
    Avatar of flaviocopesFlavio Copes·4y

    Debugging JavaScript

    Bugs are part of our day to day as developers, but our job is to minimize them as much as possible. The hardest part is always identifying where the bug comes from. Debugging is one of those skills that’s core to the activity of a programmer.

  16. 16
    Article
    Avatar of hashnodeHashnode·4y

    5 Secret features of JSON you didn't know about 🤯

    The default stringifier also minifies the JSON, which looks ugly. It can do cool stuff like revive data, use a custom format to encode/decode data, hide certain properties in stringified data, and format your data. Let's dive into some of the cool features.

  17. 17
    Article
    Avatar of keycdnkeycdn·4y

    API Security: The Complete Guide

    API security is a crucial consideration when developing and designing APIs. As serverless architectures and microservices are getting more popular, most enterprise applications depend on the API. This attack is detected when a malicious attacker changes or tries to change parameters across a series of API calls to request sensitive data that only authorized personnel are allowed to access.

  18. 18
    Article
    Avatar of hashnodeHashnode·4y

    How to build a CLI using NodeJS 💻

    The command line interface (CLI) is one of the most basic and powerful applications ever created by mankind. We are going to be building a CLI which would generate starter templates with TailwindCSS, and Prettier pre-installed. We will be using a NodeJS framework called Tailwind CSS.

  19. 19
    Article
    Avatar of towardsdevTowards Dev·4y

    Visual Studio Code — Quokka. What is Quokka?

    Quokka lets you test your code without using console.log() or identifier expressions. You can start a new file or start using Quo k ka once installed. Quokka can also be used with TypeScript. Do note, that Boolean, Number, and Function data types are not supported when using sequence expressions.

  20. 20
    Article
    Avatar of devtoDEV·4y

    Asynchronous loops in Javascript - using forEach, map and for loop

    Asynchronous operations are crucial when working with web applications. In this post, we are going to see how to use loops with async/await. The forEach loop executes all of the iterations simultaneously. The map function behaves exactly the same as forEach in terms of async operations.

  21. 21
    Article
    Avatar of hnHacker News·4y

    Logging in Python like a PRO 🐍🌴

    Most people don't know what to log, so they decide to log anything thinking it might be better than nothing, and end up creating just noise. I'll try to give meaningful examples, and provide a flexible rule of thumb that should be used when logging for ANY application you're ever going to build.

  22. 22
    Article
    Avatar of medium_jsMedium·3y

    The power of TypeScript decorators: real cases. Decorating class methods.

    The power of TypeScript decorators: real cases. Decorating class methods. The technology itself can be classified as metaprogramming or declarative programming. Using decorators, we can avoid code duplication by encapsulating a cross-cutting concern in a standalone module.

  23. 23
    Article
    Avatar of bitBits and Pieces·4y

    Currying for JavaScript Developers with Examples

    Currying is a way to transform functions that accept multiple parameters into a sequential list of functions that take only one parameter each. The aim of using currying is to give us some syntactic sugar when it comes to calling our logging function. Currying in this case provides several benefits: It helps us make our code more readable by abstracting some of the less important and repeatable values.

  24. 24
    Article
    Avatar of devgeniusDev Genius·4y

    Docker security: Risks and Best Practices

    The Docker daemon generates and manages your Docker objects, such as images, containers, networks, and volumes. By default, the process inside a container is run as root (id=0) To enforce the principle of least privilege, you should set a default user. Testing should be a part of every development project that considers security.

  25. 25
    Article
    Avatar of infoqInfoQ·3y

    Uber Reduces Logging Costs by 169x Using Compressed Log Processor (CLP)

    Uber recently published how it dramatically reduced its logging costs using Compressed Log Processor (CLP) CLP is a tool capable of losslessly compressing text logs and searching them without decompression. It achieved a 169x compression ratio on Uber's log data, saving storage, memory, and disk/network bandwidth.