Posts

Lighthouse - An Overview

Image
What is Lighthouse Overview Lighthouse is an open-source , automated tool for improving the quality of web pages. You can run it against any web page, public or requiring authentication. It has audits for performance, accessibility, progressive web apps, and more. Why it’s Useful Running reports on an application gives us insight into issues early on without us having to scan through our application each time. Lighthouse can be ran manually in Devtools but also via the CLI or programmatically as discussed further down so generating these reports can also be automated. With this information and tooling it could be possible to see issues at the point they come in such as a commit that ruins performance or adds a bad practice which could easily be missed by a code review. Generating Reports Resulting Reports Reports can be output via HTML or json so you can parse and inspect the data programmatically. At the time of writing by default you’ll get 4 categories (Progressive Web App

Finding Dead Code

Image
Rationale Over time when we develop code some of that code can become forgotten about and replaced either not being needed or a better solution implemented and the old inferior code remains. This dead code serves no purpose but can be the cause or contribute to multiple issues such as but not limited to: Unnecessary complexity - someone looking to change something may be looking at code they don’t need to, causing confusion on whether it’s safe to delete, update or use it as an example. Performance issues - code that runs that doesn't need to is just waste. Security holes - new implementations that fix a security hole may totally miss code that’s tucked away. Unused endpoints that aren't updated with new auth logic can be big cause for concern. Aims & Purpose Here we aim to talk over some ideas on how to highlight and safely remove dead code from both JS frontend code and NodeJS/express backends. As much as we can we will try to automate the finding of this

Hello World

Image
Quick introductions I guess. I'm Tobias, full stack developer for web applications. Deep in the world of JavaScript from front end frameworks to NodeJS and cloud services like AWS. Apart from tapping away at a keyboard I also like cooking, hiking and a nice cold beer in a characterful old pub. What's my blog all about? I'm not really sure yet but I would imagine I'll drop some posts about programming and developing web applications in general.