Categoría Uncategorized

Autowiring By Name

Autowiring by Name is an approach, while creating an bean, the dependency is injected by matching the name of the reference variable to the bean name. This means that the developer has to ensure that the variable name is the same as its bean.

Creation of a Spring Project

Building a Spring project from the scratch can be a very challenging process. This is because the developers need to decide which dependencies the project will use, and then they need to build and set up the application infrastructure, such as the configuring the XML configuration file, install and configure Java, install an application server such as Tomcat, Weblogic, WebSphere, etc. This is the nightmare of the configuration because if we miss or configure something incorrectly, we will encounter numerous errors that will require a significant amount of time and effort to correct.

Spring Architecture

Besides of the Spring terminology, when we start with Spring we start to hearing about Spring boot, Spring Cloud, Spring MVC, Spring AOP, etc. and then we don't know how to start and in the worst of the case we drop it to learn it. So, we can continue explaining those modules, project, etc. so let's begin with the Spring Architecture.

Spring Terminology

When we start the Spring Framework, we start listening terms like Beans, Autowiring, Dependency Injection, IoC Factory, Inversion of Control, Application Context, etc. Before the go in full with Spring we need to understand them before.

Protocol Buffer aka (Protobuf)

Protocol Buffers (Protobuf) is a data serialization system developed by Google that allows you to define the structure of messages in a .proto file and generate code to efficiently serialize and deserialize data in multiple programming languages.

Java Class Structure

In Java, the basic building blocks are the Classes, when you define a class you will describe all the parts and characteristics of one of those building blocks. The use of the classes is to instantiate/create Objects. An object is a runtime instance of a class in memory.
A class has two primary elements the fields and methods that provides the functionality to the objects.
Als the class structure has the comments that plays a crucial role in describing the functionality of methods or the class itself, making them valuable for understanding and maintaining the code

Inmutability

Immutability refers to the property or characteristic of an object, value, or state that cannot change once it has been created or established.

Scala Vs Java

Scala and Java share many similarities, including compiling to .class files, being object-oriented, and supporting lambdas and higher-order functions.
Scala has a concise but readable syntax and is more flexible and dynamic in certain situations, making it feel like a dynamic language even though it is statically typed.
Scala is also a pure OOP and FP language that encourages a fusion of both, with everything in Scala being an expression.

Scala

Scala is a programming language, most programmers say that is Java without semicolons, and is true but also Scala simplifies Java removing all the boilerplate of Java.