# pretty

Published articles for pretty.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Code is the easy part, or how we refactored half the business to fix a janky script

DevFeed: [Code is the easy part, or how we refactored half the business to fix a janky script](<https://devfeed.tech/articles/code-is-the-easy-part-or-how-we-refactored-half-the-business-to-fix-a-janky-script-37619.md>)

Original publisher: [Read original article](<https://swizec.com/blog/code-is-the-easy-part-or-how-we-refactored-half-the-business-to-fix-a-janky-script>)

Author: hi@swizec.com (Swizec Teller)

Published: 2026-06-17T00:00:00Z

Content type: opinion

Language: en

Sources: [Swizec Teller](<https://devfeed.tech/sources/swizec-teller.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>), [Python](<https://devfeed.tech/topics/python.md>), [Finance](<https://devfeed.tech/topics/finance.md>)

Tags: [automated](<https://devfeed.tech/tags/automated.md>), [billing](<https://devfeed.tech/tags/billing.md>), [code](<https://devfeed.tech/tags/code.md>), [pretty](<https://devfeed.tech/tags/pretty.md>), [python](<https://devfeed.tech/tags/python.md>), [stress](<https://devfeed.tech/tags/stress.md>)

### AI overview

A startup engineering war story about refactoring a Python-based billing and invoicing system that had accumulated undocumented business rules, manual workarounds, and operational stress. The team automated the end-to-end invoicing process; a test run took two days instead of a week, although the work was not yet complete.

### Source excerpt

This is a classic startup war story: Someone had built a leaky rowboat. It worked! Then we started flying the rowboat as a Cessna. What we needed was an aircraft carrier.

## Small improvement for pretty-printing in paste.depesz.com

DevFeed: [Small improvement for pretty-printing in paste.depesz.com](<https://devfeed.tech/articles/small-improvement-for-pretty-printing-in-paste-depesz-com-33672.md>)

Original publisher: [Read original article](<https://www.depesz.com/2026/01/06/improvement-for-pretty-printing-in-paste-depesz-com/>)

Author: depesz

Published: 2026-01-06T15:13:10Z

Content type: release

Language: en

Sources: [select \* from depesz;](<https://devfeed.tech/sources/select-from-depesz.md>)

Topics: [pretty printing](<https://devfeed.tech/topics/pretty-printing.md>), [JOIN](<https://devfeed.tech/topics/join.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Script](<https://devfeed.tech/topics/script.md>)

Tags: [announce](<https://devfeed.tech/tags/announce.md>), [announcements](<https://devfeed.tech/tags/announcements.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [formatting](<https://devfeed.tech/tags/formatting.md>), [irc](<https://devfeed.tech/tags/irc.md>), [join](<https://devfeed.tech/tags/join.md>), [paste-depesz-com](<https://devfeed.tech/tags/paste-depesz-com.md>), [perl](<https://devfeed.tech/tags/perl.md>), [pg-prettify](<https://devfeed.tech/tags/pg-prettify.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [pretty](<https://devfeed.tech/tags/pretty.md>), [pretty-printing](<https://devfeed.tech/tags/pretty-printing.md>), [script](<https://devfeed.tech/tags/script.md>), [uncategorized](<https://devfeed.tech/tags/uncategorized.md>)

### AI overview

The article describes an improvement to the pretty printer on paste.depesz.com that produces better indentation for complex SQL join conditions. It also notes that the printer can be used from the command line or through a previously described script without storing content on the site.

### Source excerpt

As you maybe know, some time ago I made paste service, mostly to use for queries, or related text to share on IRC. One part of it is that it also has pretty printer of provided queries. Recently I realized that in case of complex join conditions, the output is, well, sub-optimal. For example: SELECT ... Continue reading "Small improvement for pretty-printing in paste.depesz.com"

## 4K display on MacOS: the saga

DevFeed: [4K display on MacOS: the saga](<https://devfeed.tech/articles/4k-display-on-macos-the-saga-37806.md>)

Original publisher: [Read original article](<https://carlosbecker.com/posts/macos-4k-display/>)

Author: Carlos Alexandro Becker

Published: 2020-02-05T00:00:00Z

Content type: opinion

Language: en

Sources: [Carlos Becker](<https://devfeed.tech/sources/carlos-becker.md>)

Topics: [macOS](<https://devfeed.tech/topics/macos.md>), [hdmi](<https://devfeed.tech/topics/hdmi.md>), [Bluetooth](<https://devfeed.tech/topics/bluetooth.md>), [dell](<https://devfeed.tech/topics/dell.md>)

Tags: [4k](<https://devfeed.tech/tags/4k.md>), [adapter](<https://devfeed.tech/tags/adapter.md>), [apple](<https://devfeed.tech/tags/apple.md>), [bluetooth](<https://devfeed.tech/tags/bluetooth.md>), [display](<https://devfeed.tech/tags/display.md>), [electronics](<https://devfeed.tech/tags/electronics.md>), [hdmi](<https://devfeed.tech/tags/hdmi.md>), [lag](<https://devfeed.tech/tags/lag.md>), [mac](<https://devfeed.tech/tags/mac.md>), [macos](<https://devfeed.tech/tags/macos.md>), [pretty](<https://devfeed.tech/tags/pretty.md>), [solved](<https://devfeed.tech/tags/solved.md>)

### AI overview

A personal account of configuring a Dell U2718Q 4K display with a MacBook Pro. The initial USB-C-to-HDMI setup produced 4K resolution at 30 Hz, while a USB-C-to-miniDisplayPort cable resolved the display problems described.

### Source excerpt

I recently got a 4K display, and it didn't work as I expected on my MacBook Pro. This is what I tried, what worked and what didn't.

## Golang: cache things using interfaces

DevFeed: [Golang: cache things using interfaces](<https://devfeed.tech/articles/golang-cache-things-using-interfaces-37737.md>)

Original publisher: [Read original article](<https://carlosbecker.com/posts/golang-cache-interface/>)

Author: Carlos Alexandro Becker

Published: 2018-12-17T00:00:00Z

Content type: tutorial

Language: en

Sources: [Carlos Becker](<https://devfeed.tech/sources/carlos-becker.md>)

Topics: [Caching](<https://devfeed.tech/topics/caching.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [interface](<https://devfeed.tech/topics/interface.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [GitHub API](<https://devfeed.tech/topics/github-api.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [caching](<https://devfeed.tech/tags/caching.md>), [golang](<https://devfeed.tech/tags/golang.md>), [interface](<https://devfeed.tech/tags/interface.md>), [pretty](<https://devfeed.tech/tags/pretty.md>), [redis](<https://devfeed.tech/tags/redis.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

A tutorial on using interfaces and a decorator-style wrapper to add caching to Go clients. It explains how this approach avoids a global cache, reduces direct dependencies, and makes caching logic easier to test, with a GitHub API example and possible extensions to Redis and SQL-backed applications.

### Source excerpt

Caching things can be hard to do and hard to test. In this post I'll demonstrate a convenient way of doing that using interfaces.

## Nicer git log

DevFeed: [Nicer git log](<https://devfeed.tech/articles/nicer-git-log-37321.md>)

Original publisher: [Read original article](<https://muffinman.io/blog/nicer-git-log/>)

Author: Stanko

Published: 2017-04-25T00:00:00Z

Content type: tutorial

Language: en

Sources: [Stanko Tadić](<https://devfeed.tech/sources/stanko-tadic.md>)

Topics: [Git](<https://devfeed.tech/topics/git.md>), [formatting](<https://devfeed.tech/topics/formatting.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Scripting, bash](<https://devfeed.tech/topics/scripting-bash.md>)

Tags: [bash](<https://devfeed.tech/tags/bash.md>), [command](<https://devfeed.tech/tags/command.md>), [formatting](<https://devfeed.tech/tags/formatting.md>), [git](<https://devfeed.tech/tags/git.md>), [graph](<https://devfeed.tech/tags/graph.md>), [pretty](<https://devfeed.tech/tags/pretty.md>), [terminal](<https://devfeed.tech/tags/terminal.md>)

### AI overview

A short tutorial showing how to use git log's built-in --graph and --pretty=format options to produce a more readable terminal display, then save the command as a .bash_profile alias.

### Source excerpt

Just a short one. I want to share a simple command to display nicer git log in the terminal. git log has --pretty=format option built-in, we are just going to pass formatting to it. git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' And it looks like this: Then add it to your .bash_profile as an alias (I'm using glog) and that's it. alias glog="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"