Page 9 of 128 (2549 total posts)

June 2024

16-06-2024
System tests have failed

System tests have failed

Source: world.hey.com

When we introduced a default setup for system tests in Rails 5.1 back in 2016, I had high hopes. In theory, system tests, which drive a headless browser through your actual interface, offer greater confidence that the entire machine is working as it ought. And because it runs in a black-box fashion, it should be more resilient to imple...

Notes:

DHH declares system tests to be a failed experiment in the attached document. This is surprising to me but then not surprising. Surprised because intuitively it seems that system tests should be better for the stated reasons. And politically because it seems that the Ruby world had accepted that unit tests are easy to write but too brittle. And system tests were more real-life and robust. But not surprised because I have always found system tests a pain to write. But I don’t have large scale experience with that so I tended to agree with the world that system tests (aka end-to-end tests) were better. So here comes #DHH to argue that system tests have failed!

Tags: dhh system-tests end-to-end-tests ruby software-engineering unit-test
15-06-2024
Smooth Concurrent Updates with Hotwire Stimulus - Blog - Visuality

Smooth Concurrent Updates with Hotwire Stimulus - Blog - Visuality

Source: visuality.pl

It's time to get familiar with another part of Hotwire: Stimulus! In this article, I'll demonstrate using Stimulus to handle more complex frontend logic.

Notes:

I admit I get confused by the various packages in this family of related low or no JavaScript goodies released by DHH. Hotwire, Stimulus, Hotwire Stimulus (something different, I guess). Some come with rails, some compete with each other. No matter, I love them all. I love the idea of not having to write and debug JavaScript. Here’s an article with code that shows a great use case.

Tags: stimulus hotwire dhh javascript ruby
14-06-2024
Don’t Refactor Like Uncle Bob. Please

Don’t Refactor Like Uncle Bob. Please

Source: theaxolot.wordpress.com
Notes:

A nice deconstruction of a refactoring gone bad. The article makes good points and I agree that Uncle Bob’s (tm) refactoring is not great. Oh but apparently a ghost writer wrote that chapter. Now in defense of the book, it was written many years ago and we’ve all gotten a lot smarter about what it means to write Clean Code (tm). Here’s the article:

Tags: uncle-bob clean-code refactoring programming
14-06-2024
Silicon Valley’s Best Kept Secret: Founder Liquidity

Silicon Valley’s Best Kept Secret: Founder Liquidity

Source: stefantheard.com

Ask most venture-backed founders why they get 10x more equity than employee #1, 100x more equity than employee #5, and 1000x more equity than employee #15, and you'll get the same answer: "I'M TAKING SO MUCH RISK, IT'S SO HARD TO START A COMPANY, I MADE A BIG MOVE!!!" And

Notes:

Another reason why I believe being the founder of a well funded startup is not risky. If the startup is indeed well funded then you as a founder or employee can count on your salary for say between one and three years. No matter what revenue or earnings are, because they are not expected at the very start. Compare that with a job at an established company where layoffs can come out of nowhere and affect anyone. Not sure which is riskier … it depends … but in my opinion the startup is not clearly riskier. See the attached article for an explanation of one factor, but not the only factor.

Tags: founder startup funding layoff equity entrepreneurship
14-06-2024
TEO

TEO

Source: teodev.io

TEO is the schema-driven web server framework native to Rust, Node.js and Python. It reduces developing time and improves developers' life experience.

Notes:

Wow a brand new web framework! Where did this spring from, apparently fully formed, out of nowhere? Or am I not hanging out in the right neighborhood? Take a look at the attached site!

Tags: teo web-framework rust rails django
12-06-2024
How to Annotate a Graph with Matplotlib and Python - Mouse Vs Python

How to Annotate a Graph with Matplotlib and Python - Mouse Vs Python

Source: blog.pythonlibrary.org

The Matplotlib package is great for visualizing data. One of its many features is the ability to annotate points on your graph. You can use annotations to

Notes:

The attached article shows nice code examples on how to put arrows pointing at specific points in your graph

Tags: matplotlib python charts arrows code how-to
11-06-2024
How to Build Anything Extremely Quickly - Learn How To Learn

How to Build Anything Extremely Quickly - Learn How To Learn

Source: learnhowtolearn.org

Do “outline speedrunning”: Recursively outline an MVP, speedrun filling it in, and only then go back and perfect. This is a ~10x speed up over the ‘loading-bar’ style (more on that below) Don’t just read this article and move on. Go out and do this for the very next thing you make so you can […]

Notes:

This reminds me of the oil barron”s secret to great wealth: “wake up early. Work late. Strike oil”.

Tags: experience aphorism speed agility
10-06-2024
Piku

Piku

Source: piku.github.io

piku, inspired by dokku, allows you do git push deployments to your own servers, no matter how small they are.

Notes:

There are now several new and different ways for us to try and get back the magic of #heroku #git-push deployments. The attached link shows a new entrant that’s worth a look

Tags: piku heroku deploy github push
09-06-2024
How to build a basic RAG app

How to build a basic RAG app

Source: dev.to

The dawn of Generative AI makes possible new kinds of capabilities for the applications we build....

Notes:

RAG, RAG, RAG. It seems everyone is talking about it. The attached article has a nice hands on scenario to help me understand what RAG is all about.

Tags: rag explainer prompt llm vector-database generative-ai
07-06-2024
Omakub

Omakub

Source: omakub.org

Turn a fresh Ubuntu installation into a fully-configured, beautiful, and modern web development system by running a single command.

Notes:

I've been doing a lot of setting up lately. Between K3S, Docker, Robots and so on. I've become good friends with the shell, yaml files, bash scripts, and much more. This article shows a nice one-liner approach:

Tags: dhh install setup software-engineering shell
06-06-2024
How to Use Tailwind CSS for Your Ruby On Rails Project

How to Use Tailwind CSS for Your Ruby On Rails Project

Source: blog.appsignal.com

Let's see how we can use Tailwind CSS in a Rails application and explore its utility-first approach.

Notes:

For a while now I’ve seen mentions of the Tailwind css library. I’ve been a Bootstrap guy forever. The attached article is a good explainer to learn about Tailwind and Rails. (The world of tech never stops even for a moment)

Tags: explainer css tailwind rails ruby-on-rails
06-06-2024
Doing Stuff with AI: Opinionated Midyear Edition

Doing Stuff with AI: Opinionated Midyear Edition

Source: open.substack.com

AI systems have gotten more capable and easier to use

Notes:

I think many technology savvy people are way underestimating the usefulness of large language models, LLMs, like ChatGPT, the best known LLM. But there are others. And they are improving and changing on a weekly basis. But my respect and admiration for their capabilities also makes me (helplessly) worry about how they WILL be used to cause serious harm in the future. The attached article is a great run down of current capabilities of these systems.

Tags: ai molnick llm chatgpt review explainer
05-06-2024
From the Circle to Epicycles (Part 1) - An animated introduction to Fourier Series

From the Circle to Epicycles (Part 1) - An animated introduction to Fourier Series

Source: andreinc.net

A visual introduction to Fourier Series

Notes:

An amazing tour de force in mathematical visualization. Honestly I can follow the first half and then I am lost. But I really appreciate the creative and beautiful animations.

Tags: math visualizations animation fourier pi circle sine cosine