Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please type your username.

Please type your E-Mail.

Please choose an appropriate title for the post.

Please choose the appropriate section so your post can be easily searched.

Please choose suitable Keywords Ex: post, video.

Browse

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Navigation

  • Home
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Contact Us
Home/ Questions/Q 1953

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Latest Questions

Author
  • 61k
Author
Asked: November 26, 20242024-11-26T12:55:09+00:00 2024-11-26T12:55:09+00:00

Absorb Knowledge in 30 Seconds | Brain Bytes #4

  • 61k

Recap 🧠

Brain Bytes is a knowledge platform where you can learn new things about software development in less than 30 seconds.

Bytes of the Week

Monolithic vs. Microservices Architecture

With monolithic architectures, all processes are tightly coupled and run as a single service. This means that if one process of the application experiences a spike in demand, the entire architecture must be scaled.

Monolithic architectures add risk for application availability because many dependent and tightly coupled processes increase the impact of a single process failure.

With a microservices architecture, an application is built as independent components that run each application process as a service. These services communicate via a well-defined interface using lightweight APIs. Because they are independently run, each service can be updated, deployed, and scaled to meet demand for specific functions of an application.

Javascript hoisting

JavaScript Hoisting refers to the process whereby the compiler allocates memory for variable and function declarations prior to the execution of the code. In other words, the compiler moves the variables declaration to the top of the code.

In the below example, the catName function is called before it is written and the code still works.

catName("Chloe");  function catName(name) {   console.log("My cat's name is " + name); }  // "My cat's name is Chloe" 
Enter fullscreen mode Exit fullscreen mode

Read more

IIFE (Immediately Invoked Function Expression)

An IIFE is a JavaScript function that runs as soon as it is defined.

  (function(value){     const greet = 'Hello ';     console.log(greet + value);   })('world');  // "Hello world" 
Enter fullscreen mode Exit fullscreen mode

A use case for IIFE is to avoid polluting the namespace. If you have some initiation code that you don't need to use again, you could use the IIFE pattern.

Javascript Generator Functions

The function* declaration (function keyword followed by an asterisk) defines a generator function, which returns a Generator object.

Generators are functions that can be exited and later re-entered.

They can be useful for example for creating infinite loops (such as an id generator) or solving problems with Callback Hell and Inversion Control.

function* generator(i) {   yield i;   yield i + 10; }  const gen = generator(10);  console.log(gen.next().value); // expected output: 10  console.log(gen.next().value); // expected output: 20 
Enter fullscreen mode Exit fullscreen mode

Great explanation video here.

Imperative vs Declarative Programming

The imperative paradigm is focused on HOW to do things. The declarative paradigm is focused on WHAT we want to achieve.

Imperative code example

function double(array) {   let results = [];   for (let i = 0; i < array.length; i++) {     results.push(array[i] * 2)   }   return results } 
Enter fullscreen mode Exit fullscreen mode

Declarative code example

function double(array) {   return array.map((item) => item * 2) } 
Enter fullscreen mode Exit fullscreen mode

Scripting language

A scripting language is a series of commands that are able to be executed without the need for compiling.

Scripting languages use a program known as an interpreter to translate commands and are directly interpreted from source code, not requiring a compilation step. Other programming languages, on the other hand, may require a compiler to translate commands into machine code before it can execute those commands.

JavaScript, Python, and Ruby are all examples of scripting languages.

Read more

Compiler

A compiler is a computer program that translates code written in one programming language (the source language) into another language (the target language).

The name “compiler” is primarily used for programs that translate source code from a high-level programming language to a lower level language (e.g. assembly language, object code, or machine code) to create an executable program.

High-level programming language

A high-level programming language is a programming language with strong abstraction from the details of the computer.

In contrast to low-level programming languages, it may use natural language elements, be easier to use, or may automate (or even hide entirely) significant areas of computing systems (e.g. memory management), making the process of developing a program simpler and more understandable than when using a lower-level language.

Python, Visual Basic, PHP, Javascript, Ruby, C#, and Java are examples of high-level programming languages.

Come and participate!

Brain Bytes is an open source project, so reach out to me to participate in its development! There is plenty to do!

Come now and share your knowledge!

Thanks for reading 🙏 ❤️

beginnerscomputerscienceprogrammingwebdev
  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question

Stats

  • Questions 4k
  • Answers 0
  • Best Answers 0
  • Users 1k
  • Popular
  • Answers
  • Author

    How to ensure that all the routes on my Symfony ...

    • 0 Answers
  • Author

    Insights into Forms in Flask

    • 0 Answers
  • Author

    Kick Start Your Next Project With Holo Theme

    • 0 Answers

Top Members

Samantha Carter

Samantha Carter

  • 0 Questions
  • 20 Points
Begginer
Ella Lewis

Ella Lewis

  • 0 Questions
  • 20 Points
Begginer
Isaac Anderson

Isaac Anderson

  • 0 Questions
  • 20 Points
Begginer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help

Footer

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore, ask, and connect. Join our vibrant Q&A community today!

About Us

  • About Us
  • Contact Us
  • All Users

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Help

  • Knowledge Base
  • Support

Follow

© 2022 Querify Question. All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.