Now that we understand the main components of Angular, lets talk functionality. We will be creating a new component, this one will be for having the date and time appear on a page. Create a new component called date-time (ng generate date-time). Once thats created, go into the date-time.component.ts file and add the following code.Continue reading “Functionality in Angular”
Author Archives: dmurtagh14
Breaking Down Angular components
So how does Angular work? Whats the structure of Angular? To better show this, lets create a new folder. On the command line (make sure youre in the project directory) type ng generate hello-world. This command will generate a new component for us. Angular automatically creates this folder with these files included once we runContinue reading “Breaking Down Angular components”
How to setup Angular
In this post, I will demonstrate how to set up Angular and create a simple web application. The very first step you need to do is make sure you have node.js installed. To check to see if you have it, open up command prompt and type npm -v If its not installed, just type inContinue reading “How to setup Angular”
Welcome to Angular!
This topic will act as an introduction to Angular (as Im still currently learning how it works). But to simplify it, Angular is Javascript front-end framework for web development. Its maintained by none other than Google, and its one of the most popular Java frameworks to come out. The official site has tons of documentationContinue reading “Welcome to Angular!”
Strategy Design Pattern
Strategy is great for run time polymorphism, because thats essentially what it is! We are taking a group of algorithms and changing their behavior when they are called. This gives the user plenty of options on whether or not a class will behave a certain way. This UML (taken from Derrick Bansas’s video: ( https://www.youtube.com/watch?v=-NCgRD9-C6o&list=PLF206E906175C7E07&index=3Continue reading “Strategy Design Pattern”
Factory Design Pattern
When creating classes, it can be a lot to build each class hand by hand, line by line. Its too much code, too messy, and there are better methods to approach the creation of many different object. Enter the Factory Design Pattern. This pattern is the solution to the creation of many objects. By definition:Continue reading “Factory Design Pattern”
Keys in Databases
In databases, we want to uniquely identify a certain attribute so when we pull information off the database, we only need to see that one attribute to get all the information we need. In this case, the unique attribute of a database is know as the primary key. Primary keys must have no null valuesContinue reading “Keys in Databases”
Git Commands: git stash
Have you ever worked on a bit of code that was really messy and you needed a break from it? You dont want to delete all the progress you made but you cant upload the work on git hub because its either unfinished or problematic. So what can you do? Imagine if there was aContinue reading “Git Commands: git stash”
More Java interview questions
Its that time again, where we go over some more java interview questions! Same as before, questions and answers will be posted here. How would you mark an entity package private in Java? By default, package private is the modifier. There is no explicit modifier for package private. If a class has no modifier (theContinue reading “More Java interview questions”
Abstract vs. Interface
When talking about Abstract classes VS. Interface classes, things can admittedly become confusing. On the surface level, it seems as if they both do exactly the same thing without any differences. However, there are plenty of key differences between the two. One of the key differences between Abstract & Interface classes is how they areContinue reading “Abstract vs. Interface”