Analysis for building algorithms

8/6-23: first draft This post is about methods for analysing a problems that can be solved with algorithms. As a part of making my project Personal Budget 2 (link), i am making some tools for migrating the database up and down between versions, and also resetting the database entirely, without sacrificing the data stored atContinue reading “Analysis for building algorithms”

PB2/CR #1: Register expenses

30/5-23: First draft. Need technical analysis and test design. 31/5-23: Add technical analysis and solution. Draft test design. Need refinement of test design. Registering expenses: Continuously tracking expenses can be a tedious task. In reality, no matter how much I’d like to say that I keep a 100% log of all transactions, I also missContinue reading “PB2/CR #1: Register expenses”

Making migrations on a local PostgreSQL database with psql and bash scripts

Budget 2 project, i want to be able to develop the database model over time. This results in a series of changes to the model – migrations to be more specific. In order to work with this in a more structured way, where it is possible to revisit earlier versions etc., i want to executeContinue reading “Making migrations on a local PostgreSQL database with psql and bash scripts”

Working analytic and structured with development

Change requests. A brief description of the problem, the business needs, the context. Then a section analysing the changes – what will happen on the user interface, how will the code in the backend change. What parts will be affected. Finally a section on testing. How will we ensure, that the new parts of codeContinue reading “Working analytic and structured with development”

Project: Personal Budget “2”

A project based on Codecademy’s Back End Engineer Career Path Vision Keeping track of my personal finance dispositions is central to reach long standing financial goals. Wether it is for investing in stocks and other assets, or saving up for something bigger – like a car, kitchen or maybe even a new home. The applicationContinue reading “Project: Personal Budget “2””

System design study

Curriculum A framework for learning systems design for large scaleable applications. Domain Name System Load Balancers Databases Key-values Store Content Delivery Network (CDN) Sequencer Destributed Monitoring Monitor Server-side Errors Monitor Client-side Errors Distributed Cache Distributed Messaging Queue Pub-sub Rate limiter Blob store Distributed search Distributed logging Distributed Task Scheduler Sharded Counters Authentication and tokens DevelopingContinue reading “System design study”

HTTP Status Codes for your REST API

A work in progress When building your RESTful API, one of the easiest ways to know if the process completed as expected or not is the HTTP status codes returned by the server. That’s why I always use the HTTP status codes for testing, before getting into more elaborate testing of the server response. UnderneathContinue reading “HTTP Status Codes for your REST API”

Control flow in express.js route – return vs next()

When working with routes, often two or more outcomes are wanted. This calls for controlling the flow of data when for instance sending and put request to the application. In contrary to an “normal” application – one that runs offline, that doesn’t follow the request-response architecture – one would usually use “return” in order toContinue reading “Control flow in express.js route – return vs next()”

Weekly log @ 45/2022

After some time working my way through Codecademys back-end career path, i’ve decided to take a break in order to start building a portfolio of applications. This week I’ve been working on my first sprint for the first application: A budget application for structuring my private economy. After this, I’m planning to do an expenseContinue reading “Weekly log @ 45/2022”