Skip to content

ipeglin/DCST1007

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DCST1007

This repository contains assignments from the course DCST1007 at NTNU, Trondheim.

The content of this repo is not intended as a copy/paste solution for others, but instead serves as a log of my own work. It may also in some cases serve as an example of a solution for those who struggle with the intuition on how a problem could be solved. I do not condone plagiarism, and will not be help responsible if others copy my work, resulting in negative consequences.

Previous exams

Assignments

OOP1 - Introduction to OOP with JavaScript

Experimenting with the pure basics of Object Oriented Programming in JavaScript. Some of the variable names and such is in Norwegian since some of the points required it.

OOP2 - Continuation of OOP with JavaScript

Further exploring the posibilities that opens up when using OOP. Experimenting a bit with inheritance and class extentions. Also probably gonna start up a bank in the foreseeable future. Kappa.

OOP3 - Drawing bubbles with canvas

Learning to take use of the canvas element in HTML and how it can be manipulatet with JavaScript. When it comes the the OOP aspect of this assignment, there were very little difference in difficulty and pure code, as compared to the previous assignments.

OOP4 - Promises

Exploring the world of promises and what they can be used for. Created simple functions for validating and sizing up a number compared to 10, as well as a function that makes a "shouting" array and sorts it alphabetaically. Both of the functions will reject and provide a new error message in the console if the input is something unexpected.

OOP5 - JSON

Once again trying to use JSON as a database such as previously done in one of last years DCST1003 Assignments. In this assignment, the array containing informations with the highest mountains in every norwegian county, was to be declared in the JS file and then stored locally using setItem. As we still don't have much experience with JSON this improved some of my understanding of it's abilities.

OOP6 - Static applications

Getting started with the React framework. The assignment was to make a resume with static pages using the framework and running it in electron.

OOP7 - Dynamic applications with database communication

Implementing the use of databases to create dynamic applications that writes out the information from the databases. This assignment is also created with the use of the React framework.

OOP8 - User input, component preferances and service classes

Creating even more dynamic applications which allows the user to directly change the informastion in the database from the app. Methods that allow this are stored in a separate JavaScript file and exported. There are some problems with this solution, and it could definitely be improved, but seeing as I do not have prior knowledge of databases this is has to be good enough.

OOP9 - Reusable components and splitted conditional objects

Using widgets and glasses for regular HTML element. By taking advantage of bootstrap the code is easier to produce and you can bypass some basic (and terrifying) CSS scripting. This means that you can easily make a basic GUI for database interaction with just JS which is GREAT! I don't like CSS if you hadn't guessed it already...

OOP10 - Static type checking

Converting the OOP9 code to use typescript to make sure that all variables in the code are run with the intended type. No functionality was deleted or appended, but I removed the stores.js file and implemented the two methods into studentService and groupService in services.js

About

Object Oriented Programming

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published