This article explores webpack, focusing on ways to investigate the build-time performance of webpack for your React apps. First, we cover the items that can affect build-time and runtime performance. Next, we’ll explore profiling tools for CPU and memory usage and how to use them. We’ll then delve into webpack bundles and how to analyze what’s in a bundle. Finally, we talk about setting goals.
Category: Web Development
Creating a Data Pipeline for Analytics, AI/ML, ChatGPT
There are three parts to a data pipeline for analytics: ingestion, processing/transformation, and interpretation. The data pipeline for large language models or any pre-trained model such as GPT-3.5 and GPT-4 has the following steps: ingestion, processing / transformation, and evaluation. Data pipelines are everywhere.
Reactive Programming with JavaScript, Ruby and Python
Reactive programming is a concept that is finally gaining some popularity among programmers. It makes it easier to think in data flows and to manage and work with them. Instead of imperative programming, you’re thinking about code as a series of processes that take place on streams. This is similar to the conceptual shift to… Continue reading Reactive Programming with JavaScript, Ruby and Python
Speeding up Ruby on Rails Tests and RSpec
There comes a time in the life of every Ruby on Rails project where you and your team will end up with long running tests. Rails tests can contain factories, fixtures and lots of setup procedures before tests are executed, and all of these can contribute to major slowness in the test runs. I’ve seen… Continue reading Speeding up Ruby on Rails Tests and RSpec
GraphQL with MongoDB using Mongoose and Node.js
As part of a prototype/exploratory project in March 2016, I explored how to build a GraphQL server using Node.js and interfacing with a MongoDB database using the Mongoose library. The best reason to use GraphQL is if you have multiple frontend clients that communicate with your backend and they each have differing data needs. For… Continue reading GraphQL with MongoDB using Mongoose and Node.js
PyCon Canada 2017: “Python as a Philosophy”
I was in Montreal, Canada for the PyCon Canada 2017 conference and presented on the ideas and philosophy that are present within the Python programming language. I covered how the Python language influences your coding style and how that coding style is now in the mainstream and has made its way into other programming languages.… Continue reading PyCon Canada 2017: “Python as a Philosophy”
JSON C++ Tutorial
JsonCpp is a good solid C++ library to work with. JsonCpp gives you the ability to open JSON configuration files.
Web Development with Smalltalk and Seaside Framework
While taking a part-time computer science class, I built a Smalltalk-based web app using the Seaside.st web framework. The project was a software prototype for a restaurant ordering system. The goal was to design a user interface that allowed a customer in the restaurant to use their iPhone or some other smart phone to quickly… Continue reading Web Development with Smalltalk and Seaside Framework