Welcome to curated list of handpicked free online resources related to IT, cloud, Big Data, programming languages, Devops. Fresh news and community maintained list of links updated daily. Like what you see? [ Join our newsletter ]

Writing lighter, faster JavaScript functions

Categories

Tags software-engineering frontend-and-mobile backend-development

Nick Gard sweet article about making your JavaScript functions faster. He relies on 3 simple rules to guide him.

When it comes to JavaScript performance, there are really only three strategies for improvement: Do less, Do it less often, Do it faster

Author takes small function with an unchanging object created within the function body. While it is a small object, it is created every time the function runs. That means with every call, the function reallocates memory for an array of three items, uses it once, and then leaves it for garbage collection.

function isStooge(name) {
  const STOOGES = ['Larry', 'Curly', 'Moe'];
  return STOOGES.includes(name);
};

For static values, it would be best if they were declared once and merely referenced each time they were needed. This is not a memory leak, but it is still an unnecessary expense.

Author then suggests to use:

  • Define variable in a Closure (close to the point of use)
  • Declare variable in a Module
  • And declare variable in a Class Static Property

Author concludes that the most useful pattern of declaring an unchanging variable is in an ES6 module. The syntax is so understandable and predictable, it is almost boring. Great read!

[Read More]

CSS debugging and optimization: browser-based developer tools

Categories

Tags frontend-and-mobile backend-development

Tiffany Brown article in which she delves into the browser-based developer tools for Chrome, Safari, Firefox, and Microsoft Edge. This article is very helpful for anybody on road to become a CSS master.

She then describes how to use element inspector. Most desktop browsers include an element inspector feature that you can use to troubleshoot your CSS. Start using this feature by right-clicking and selecting Inspect Element from the menu.

In Firefox, Chrome and Safari you can also press Ctrl + Shift + I (Windows/Linux) or Cmd + Option + I (macOS) to open the developer tools panel. While in Microsoft Edge, open developer tools by pressing the F12 key.

In Safari, you may have to enable the Develop menu first by going to Safari > Preferences… > Advanced and checking the box next to Show Develop menu in menu bar.

Sometimes an element isn’t styled as expected. Maybe a typographical change failed to take, or there’s less padding around a paragraph than you wanted. You can determine which rules are affecting an element by using the Styles panel of the Web Inspector.

You find more info in the article, including:

  • the ways how to identify cascade and inheritance problems
  • spotting invalid properties and values
  • debugging responsive layouts

Very useful for anybody new to web development.

[Read More]

PHP encryption methods for passwords and other sensitive data

Categories

Tags backend-development security-and-privacy business-and-emerging-tech

Ashley Rich published this article about various methods of protecting sensitive data in PHP. There is a range of different encryption methods in use today, the most common being hashing, secret key encryption and public key encryption. Also in PHP 7.2+ you have cryptography extension Sodium which should simplify vastly complicated cryptography landscape.

Each encryption method has multiple algorithms or ciphers to choose from (each with their own strengths and weaknesses). The article then dives into hashing and secret key encryption:

A hashing algorithm takes an input value and transforms it to a message digest.

It’s worth noting that hashing isn’t a bulletproof solution and not all hashing algorithms are equal. At the time of publishing this hashing algorithms such as bcrypt or Argon2 are recommended.

Find how to use Sodium for Secret Key Encryption, or what Envelope Encryption is. You will get code examples and links to further reading, too. Stay safe!

[Read More]

Deep Learning with Python for beginners

Categories

Tags backend-development ai-and-machine-learning software-engineering data-and-analytics

An article by Shailna Patidar in which she takes a look at Deep Learning with Python for beginners and explore the definition of Deep Learning as well as its main characteristics. Moreover, this article will go through Artificial Neural Networks and Deep Neural Networks, along with Deep Learning applications.

An Artificial Neural Network is nothing but a collection of artificial neurons that resemble biological ones.

Deep Learning uses networks where data transforms through a number of layers before producing the output. A Deep Neural Network is an Artificial Neural Network with multiple layers between the input and the output. At each layer, the network calculates how probable each output is. A Deep Neural Network will model complex non-linear relationships when it needs to.

You will get intro information on:

  • Deep Neural Networks
    • Recurrent Neural Networks
    • Convolutional Deep Neural Networks:
  • Deep Learning Applications

Short article which points you in right direction if you need refresher in terminology used in Deep Learning and Artificial Intelligence field. Links to more resources provided. Nice!

[Read More]

Encrypting vs. signing with OpenPGP. What's the difference?

Categories

Tags security-and-privacy business-and-emerging-tech data-and-analytics

Brad Wyro thoughts on encryption versus signing with OpenPGP. OpenPGP is the most widely used email encryption standard. PGP stands for Pretty Good Privacy. In the article author helps to answer following question: how can you ensure confidential data transmitted via email is kept private?

Encryption is used to make business sensitive data unreadable to unauthorized parties.

Businesses need to protect sensitive data and preserve confidentiality and privacy. Whether you work in healthcare, finance, legal, HR or education, chances are you’re familiar with the terms GDPR, HIPAA or FERPA (among others).

In addition to data privacy, businesses may need to ensure that a message was not altered during transit, and that it actually came from the purported sender. This is accomplished with message signing.

Read more in the article to learn what is the difference. Explanation charts also available. Nice!

[Read More]

4 edge computing technologies enabling IoT ready network infrastructure

Categories

Tags business-and-emerging-tech data-and-analytics ai-and-machine-learning architecture-and-apis

A quick intro into IoT networking. Networks around the world are going through a massive transformation in which edge computing devices and edge infrastructure development hold a key role. This edge revolution is to leverage the potential of IoT that will be unleashed on the back of 5G roll out in future not so far.

Article then briefly explains:

  • Multi-Access Edge Computing
  • Fog computing
  • Cloudlets
  • Micro Data Centers

Fog computing, fog networking or merely “fogging”, is a term used to described a decentralized computing infrastructure which both extends cloud computing to the edge of a network. It is also an attempt to reduce the data transported to the cloud for processing, analysis and/or storage.

Learn more in this short article.

[Read More]

Intuitive explanation of Convolutional Neural Networks

Categories

Tags miscellaneous data-and-analytics ai-and-machine-learning

An older article by jjwalkarn about Convolutional Neural Networks. Convolutional Neural Networks (ConvNets or CNNs) are a category of Neural Networks that have proven very effective in areas such as image recognition and classification.

ConvNets have been successful in identifying faces, objects and traffic signs apart from powering vision in robots and self driving cars.

The LeNet Architecture is few decades old. LeNet was one of the very first convolutional neural networks which helped propel the field of Deep Learning. This pioneering work by Yann LeCun was named LeNet5 after many previous successful iterations since the year 1988.

The article then explain in detail main operations in the ConvNet:

  • Convolution
  • Non Linearity (ReLU)
  • Pooling or Sub Sampling
  • Classification (Fully Connected Layer)

In the article you get the main concepts behind Convolutional Neural Networks in simple terms. Plus, added is a treasure of links to further reading. Excellent read!

[Read More]

Building a scalable promise based Node.js library

Categories

Tags frontend-and-mobile backend-development software-engineering

Ross Bulat wrote a tutorial about building a scalable Node.js library based on Promises. In it he explains how to tackle large async / await Promise based libraries.

With the goal of supporting medium to large scale applications, libraries need to be coherent and manageable, yet be flexible and usable in your promise based execution.

The author covers on an example of MongoDB based API:

  • Explaining requirements in terms of
    • scalability, economics, Promise based (with links to more resources)
  • Importing MongoDB Promises as database client
  • Structuring your exports
  • Promise example: auth token valid?
  • Extending the API call with more Promises

Useful for any developer struggling with Promises. Good read!

[Read More]

Learn how to create a Python GUI with PyQt5

Categories

Tags backend-development miscellaneous software-engineering cloud-and-infrastructure product-and-design

Tutorial by Michael Herrmann explains how you can use PyQt5 to build a desktop app with Python. It covers everything from the best way to set up PyQt in 2018, to compiling your app and distributing it to other people’s computers.

In essence it explains:

  • What is PyQt5?
  • How to install PyQt
  • How to create a GUI
  • What are widgets
  • How to build layouts
  • How to implement custom styles

… and much more. Sweet and to the point tutorial which gives you basic understanding of PyQt and introduce you into desktop apps development with Python 3.

As a bonus you will also learn how to create a standalone version of your app. That is, a binary executable that other people can run on their systems without having to install anything. Great!

[Read More]

Client side performance monitoring with InfluxDB

Categories

Tags devops-and-ci-cd frontend-and-mobile architecture-and-apis

Interesting reading from Mike Bell about efficient applications monitoring in Agile environment with daily deploys of hundreds of code changes to the web application for customer-facing websites. Each change has the potential to impact performance for better or worse. They carefully monitor KPIs such as page load times to catch regressions, identify opportunities for speedups, and to verify that improvements work in the real world.

RUM systems use JavaScript and standard browser APIs like PerformanceTiming to record load times experienced by real customers.

Client-side monitoring of page load times in the browser is known as Real User Monitoring, or RUM. RUM systems use JavaScript and standard browser APIs like PerformanceTiming to record load times experienced by real customers. In the article you will get information on:

  • What is RUM?
  • How was RUM implemented in Wayfair’s engineering team
  • Introduction into InfluxDB
  • InfluxDB schema for RUM and how to optimize schema
  • Dashboards
  • How team got visibility into the experience of real customers

Measuring performance on high-traffic e-commerce web sites is challenging. Excellent read!

[Read More]