Predrag Nastic·Oct 11, 2023Implementing the Observer Pattern: Real-World ExampleDefinition: The Observer pattern is a behavioral design pattern that fosters a one-to-many relationship between objects. In this pattern…
Predrag Nastic·Mar 14, 2023Javascript show/hide elementsThe intention is that the showing and hiding of elements in the application are controlled by a single class.
Predrag Nastic·Feb 1, 2023Form validationForm validation for any project based on custom implementation
Predrag Nastic·Jan 26, 2023HOC (higher-order component) VueJSDefinition what is HOC (higher-order component): It can be described as a method used to share common functionality between components…
Predrag Nastic·Jan 23, 2023Design patterns: MediatorThe Mediator class encapsulates and controls how objects communicate with each other.
Predrag Nastic·Jan 18, 2023Webpack 5 + TS + EJSAs the title says this starter contains Webpack 5, TypeScript (JS), and EJS as a template language for HTML.
Predrag Nastic·Jan 12, 2023String with dot notation to nested objectA useful thing that we can use to create objects. Formatting the object according to the desired structure.
Predrag Nastic·Jan 11, 2023Javascript design patterns: PubSub patternPublish–subscribe is an architectural design pattern that enables publishers and subscribers to communicate with one another.
Predrag Nastic·Jan 5, 2023How to build a carouselImplement different type of carouseles/sliders like Swiper, Tiny slider or any other plugin in one class using Typescript