Open in app

Sign In

Write

Sign In

Daniel Liu
Daniel Liu

24 Followers

Home

About

Published in

Dev Genius

·Dec 10, 2020

Business Delegate Design Pattern

Overview The business delegate is used to separate the business side and presentation side. The business side is made up of 4 parts: Client — The presentation code to display the data Business Delegate — Provides access to the business service methods which the client uses LookUp Service — Responsible to…

Design Patterns

2 min read

Business Delegate Design Pattern
Business Delegate Design Pattern
Design Patterns

2 min read


Published in

Dev Genius

·Dec 9, 2020

Pass By Reference vs. Pass By Value

Overview When using variables in code there are 2 different ways the data can be used. When you pass a variable to a function it is either a pass by reference or a pass by value. Pass By Reference Pass by reference is when the memory address is passed to the function. This means…

Programming

2 min read

Pass By Reference vs. Pass By Value
Pass By Reference vs. Pass By Value
Programming

2 min read


Published in

Dev Genius

·Dec 3, 2020

Transfer Object Pattern

Overview The main use of the Transfer Object Pattern is to pass data with multiple attributes at once. It is made up of 3 parts: Transfer Object — Simple Plain Old Java Object(POJO) which just has getters and setters Business Object — Contains the logic that manipulates the transfer object. Client…

Java

2 min read

Transfer Object Pattern
Transfer Object Pattern
Java

2 min read


Published in

Dev Genius

·Dec 1, 2020

Python Inheritance

Overview Inheritance is one of the four pillars of Object Oriented Programming(OOP). Inheritance allows classes to inherit all methods and properties from another class. The parent class is the class that is being inherited from also known as the base class. …

Python

3 min read

Python Inheritance
Python Inheritance
Python

3 min read


Published in

Dev Genius

·Nov 26, 2020

Javascript Arrow Function

Overview Arrow functions are similar to Java and Pythons lambda function. Arrow functions can be used instead of Javascript traditional function definition. Arrow functions are more compact but there are some limitations: No bindings to this or super so it should not be used inside object if they are to be…

JavaScript

2 min read

Javascript Arrow Function
Javascript Arrow Function
JavaScript

2 min read


Published in

Dev Genius

·Nov 24, 2020

Java Lambda

Lambda is a short block of code that is a function do not have a name — Overview Lambda was added to Java in version 8. Similar to Python lambda is a short block of code that is a function do not have a name. Like functions they can take in arguments and returns a value. Unlike Pythons lambda Java has its own way of using lambda. …

Java

2 min read

Java Lambda
Java Lambda
Java

2 min read


Published in

Dev Genius

·Nov 20, 2020

Python Lambda

Overview Lambda is a single line function with no name that can have multiple arguments but only one expression. This is useful for writing functions that will only be run once. Implementation Normal Implementation def add(x, y): return x + y Lambda Implementation lambda a, b : a +b As you can see in order to…

Python

2 min read

Python Lambda
Python Lambda
Python

2 min read


Published in

Dev Genius

·Nov 17, 2020

Binary and Hexadecimal

Overview Normally we use numbers from 0–9 which a base 10 system called decimal. Binary is a number system using base 2 system. This means it just uses 2 numbers 0 and 1. Computers use binary to store data and each bit is represented by a 1 or 0. Each bit…

Binary

3 min read

Binary and Hexadecimal
Binary and Hexadecimal
Binary

3 min read


Published in

Dev Genius

·Nov 12, 2020

Model View Control(MVC) Design Pattern

Overview As the name suggests MVC design patterns involves 3 parts: Model — The object that contains the data. It should contain no logic to display data. View — Presents the data to the user. …

Mvc Frameworks

3 min read

Model View Control(MVC) Design Pattern
Model View Control(MVC) Design Pattern
Mvc Frameworks

3 min read


Published in

Dev Genius

·Nov 10, 2020

Facade Design Pattern

Overview The main idea for the facade design is hiding the complexities of the application. The user would use an interface/facade instead to access any methods. Implementation Interface // Animal.java public interface Animal { void species(); } Interface for concrete class. Class Implementation // Dog.java public class Dog implements Animal { @Override…

Facade Pattern

2 min read

Facade Design Pattern
Facade Design Pattern
Facade Pattern

2 min read

Daniel Liu

Daniel Liu

24 Followers

Hi

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams