EXCEPTION HANDLING IN C#
I have been busy with my classes in school lately. It has been awhile since I have been able to write in my blog. Some things that I have been stuck on is how to write the logic for handling exceptions in my C# program. I have a Swimming Temperature program that has a SwimmingWaterTemperature class. In the class there is a public static bool CheckComfort(int temp) method that takes in an int sent from the users input and checks the temperature (returns true or false).
Read moreSQL SERVER + VISUAL STUDIO
I have been learning more about C# and Visual Studio now that school has started back up. I started working on a ASP.Net Web app which I needed to connect to a database. Since it is .NET I decided to use SQL Server + SQL Server Studio, because that is what is recommended in the documentation for building a ASP.Net application. I was able to get the server setup, create a database model in my app, and pull data from the database and display it on the webpage.
Read moreFILTER FUNCTION
Today I learned about the filter function in JavaScript. This really is a super useful tool to use. Say I have an array of companies. const companies = [ { name: "Company One", category: "Finance", start: 1981, end: 2003 }, { name: "Company Two", category: "Retail", start: 1992, end: 2008 }, { name: "Company Three", category: "Auto", start: 1999, end: 2007 }, { name: "Company Four", category: "Retail", start: 1989, end: 2010 }, { name: "Company Five", category: "Technology", start: 2009, end: 2014 }, { name: "Company Six", category: "Finance", start: 1987, end: 2010 }, { name: "Company Seven", category: "Auto", start: 1986, end: 1996 }, { name: "Company Eight", category: "Technology", start: 2011, end: 2016 }, { name: "Company Nine", category: "Retail", start: 1981, end: 1989 } ]; I would like to get all the companies which category is Auto.
Read morePROTECTING PASSWORDS IN A REPOSITORY
Today I finished watching a tutorial on php and learned how to setup a database and server with xampp. I had to figure out on my own how to change ports on the database because port 3306 was already in use. I was able to go into the config file and make my changes and successfully connect to the database. I was also able to take the advice of my mentor and create a .
Read moreJAVASCRIPT AND SECURITY FUNDAMENTALS
Today in my security fundamentals class, I learned about Organizational Units in Active Directory. I learned how to create groups of users and limit how long and what computer on the network they was able to use. This utilizes the Principle of Least Privledge approach. Only letting users have access to what is needed to complete the job. I also learned how to use the XMLHttpRequest() method in JavaScript to pull data in from an API.
Read moreJAVASCRIPT MAP() FUNCTION
Today I learned about the JavaScript map() function. The map function is an important concept to learn if you want to master JavaScript. The map function works by mapping all elements in an array to a callback function and returns the results in an array. Here is an example of the map function: const numbers = [1, 2, 3, 4, 5]; const doubled = numbers.map(x => x * 2); console.log(doubled); // returns [2, 4, 6, 8, 10]
JAVASCRIPT OBJECTS & PROTOTYPES
Today I learned about JavaScript Objects & Prototypes. For intance if I create an object constructor like this: function Student(firstName, lastName, id, scores){ *** constructor body goes here *** } I can create a method and add it to the objects prototype, so any object of that type would be able to use that method like so: Student.prototype.getAverage = function(){ *** Function body goes here *** } I really like learning JavaScript, although I know I have just scratched the surface with what the language is capable of.
Read moreHELPING OTHERS
I recently have been more active on Discord and what all the developers on twitter call “tech twitter”. I found a Discord server for my school. Some students on there were asking for help with their programs and web pages. I decided to reach out to them and offer help. It really opened my eyes and helped me realize just how far I have come in my coding journey. One person had their paragraph element inside their description topic elements like this <dt><p>Topic Here</p></dt> and the lab would not accept the code.
Read moreSALES TRANSACTION C#, WRITING 101
I was able to get finally get the lab to accept my code. I learned how to create classes in C#, overload operators, and to have overloaded constructors. So far this chapter and set of labs have been the hardest and most challenging ones I have had. I have been working with Carol on editing my essay for my writing 101 class which is due on 9/10/22, writing is not one of my strengths.
Read moreC# PROBLEMS AND WRITING 101
I have been working on my essay in my writing 101 class, and Carol has been helping me alot on editing. I really have a long way to go on getting good at writing. My C# class has really gotten difficult all the sudden. I am having trouble with implementing operator overloading in one of my problems. For some reason I just can not get solve this problem. Hopefully after a good nights sleep it will come to me.
Read more