const app = {
lines: document.getElementById('lines'),
textbox: createTextbox(),
lineTemplate: createLineTemplate(),
}

const socket = connect(
`ws://${location.host}/app`,
{

initial({ lines, uuid, charLimit }) {
app.uuid = uuid
app.charLimit = charLimit
lines.forEach(addLine)
},

added(line) {
addLine(line)
},

removed(i) {
app.lines.children[i].remove()
},

server.onclose = (ws) => {
if (ws.line) {
const i = lines.indexOf(ws.line)
lines.splice(i, 1)
server.sendToAll({ removed: i })
}
}

server.commands = {

begin(ws) {
const line = {
hash: ws.hash,
uuid: ws.uuid,
text: '',
}

ws.line = line
lines.push(line)
server.sendToAll({ added: line })
},

run() {
console.log(`Running on port ${this.port}`)

this.wss = new WebSocket.Server({
port: this.port,
verifyClient: this.verify.bind(this)
})

setInterval(
this.prune.bind(this),
this.pruneInterval * 1000
)

this.wss.on(
'connection',
this.connection.bind(this)
)
}

Steven Degutis

Full-stack software developer for hire

Brainstorming

December 4, 2013 — 4 years ago

These are just some notes I'm taking for myself.

Simpler OS

The way Singularity works is inspiringly cool. Their message-passing technique sounds like it could be much simpler than current IPC techniques.

Simpler Language

I love the idea of Singularity jumping right into C# as soon as possible and staying there all the time. The idea of a high-level language with first-class functions (closures) and mature data-types (hash-maps, vectors, etc) running on a VM that can be JIT-compiled sounds really smart.

Now, I don't know much about C#. But simpler is usually better. So I'm assuming a simpler imperative language with some basic types (hash-maps, lists, strings, numbers, first-class functions-as-closures, structs) would be an excellent start. I'm really on the fence about immutability at this point.

The idea of having a single canonical language ("The Language") be central to the OS and every app in the OS seems like it could really help simplify things and make things consistent. For example, this language could be used to "patch" function calls in existing apps together (similarly to what we use bash for). It could have its own IDE that knows about this language in-depth and manipulates it very efficiently. And if it has a fast VM and doesn't have super complicated language features, it could theoretically approach the speed of C.

Simpler UI

The majority of the time, I use my keyboard for navigation. The mouse is too far, and my trackpad requires too much precision, and my keyboard is way more forgiving about mistakes. This should be leveraged in a simpler UI.

One idea is to use a combination of keyboard shortcuts and trackpad-gestures (which could be considered just another keyboard combination). But not the kind of difficult-to-use gestures that Apple forces me to do if I want to show my Desktop or whatever.

Another idea, not necessarily exclusive to the first one, is to use keyboard shortcuts for more things. Kind of like Spotlight on steroids. I notice that I do git stuff way faster in Magit than in the Terminal or even GitX. That's because Terminal forces me to type (or tab-complete) everything, and GitX forces me to click everything. But Magit gives me really sane and easy keyboard-shortcuts, letting me type-complete where necessary.

I guess another way of putting it is that emacs gives me a kind of modality that I really like. When I'm in a given mode, I want things to be easier. But by default I'm using "generic" functions, like "typing words" in the Terminal or "clicking widgets" in a GUI app. But when I'm in a program intended for a specific task, that task should be made easier. When I open up "git" and I want to push to remote, it's way easier to just hit the "p" key.

That kind of modality should be the center of all GUI apps, from beginning to end. Holding "modifier-keys" to do commands only makes sense in contexts where you're already typing, and in that case you might as well just hit the modifier key first to "trigger" a "mode" that waits for the next key and does something based on that.

I admit this is sounding a lot like vim or something, but I think it's way bigger than that. If this approach is taken for every application, every task, it would not only be a more efficient way to operate (I'm 10x faster in Magit than in any other git app), but it would be vastly more consistent.

Simpler Shell

There are two "shells", Terminal and Finder. Both are pretty rooted in legacy ideas.

Terminal really means not just the terminal emulator (literally a VT100 emulator!) but all the command line utilities (ls, man, mv) and the shell itself (bash or zsh). These are really just a wrapper around some function calls. The only thing I actually need a shell for is ssh. Each other task could be done with its own GUI app.

Finder does too many things, and I don't even like most of them. The Desktop is useless except for maybe drawing a pretty picture for me. The menu bar is redundant since I can do most of those things with keyboard shortcuts. Or, the menu items that can't be done with keyboard shortcuts could be done by a Help-menu-like textbox that shows me a list of matching commands (maybe by fuzzy-matching instead). The Dock I have mixed feelings about, but I'm pretty sure it could be simpler. I don't usually care what processes are running or not, just as long as not-currently-selected apps aren't draining my MBP's battery. And the little widgets by the time and battery icon, those don't need to be present 24/7, I'd be okay with them being on a Dashboard-like screen. (See GUI section.) All that's left is a file manager. Finder is a so-so file manager, so I'm sure I would change some things but not sure what yet.

Simpler Apps

Not every task deserves its own "full-fledged app status". I'm not talking about how it's implemented, but how it's presented to the user. If I want to copy a file, it shouldn't require "Finder", it should just be a little "task" or something.

With this idea of "task-oriented" in mind, every "process" could be considered a task. Opening a browser, pulling down the dashboard (containing clock, etc), running a math calculation, sending an email, these could all be tasks. Keeping track of tasks would be easy, they'd just each have their own window on your screen. Thus there's no need for a "Dock" or "taskbar". It encourages not having too many tasks open at once. If you need to find one window out of the clutter, there could be some command similar to Mission Control (Exposé) in OS X. And they'd be floating windows, but with hotkeys you could arrange them as if they were tiled. But you could probably also drag them by clicking anywhere on their background.

Prettier GUI

Flat, all the way. Who needs all this fancy 2.5D stuff? Flatter, simpler, boxier UIs can still be pretty if done right. Maybe even prettier!

Shadows definitely help to see which window is active, but they aren't the only way. Maybe a "brighter" titlebar could do the same thing.

I think Apple has it right with their usually-hidden scroll bars. But Windows scrollbars (boxier) are prettier. (Maybe.)

Window borders don't need to be there. Maybe a single pixel is good enough. Apple is generally pretty good about that.

Title bars could be totally flatter. They could look boxes. Since you could operate on them with the keyboard, you wouldn't need controls on them, just the title. And for many apps you could probably omit the title. Although it's a good place to put the name of the file you're editing if there is one.

Widgets need to be rethought completely. We're trying to use canned widgets for tasks where they don't really fit. Obviously it's bad for consistency to constantly come up with new widgets that have their own behavior. (Websites have demonstrated how terrible that idea is for a while now.) But perhaps we should come up with a new set of "universal" widgets that make sense in the 20th century.

There could be a "dashboard" that you can pop up by either a hotkey or by mousing to a certain edge (or corner) of the screen. It could have your clock on it, your battery info, maybe show your email inbox status and the weather. Something like what Apple had in mind with Dashboard, except much prettier, and written in a legit language ("The Language" [see above]).

Task-oriented secondary copy/paste stack

One thing that could vastly make the UI easier and quicker to use and more convenient (see Simpler UI) is a mutable infinite stack for copy/paste. Not the kind of copy/paste we have now which is mostly just text-based, but something more knowledgable about what action you just took or were about to take. I'm not sure what that looks like or means, but I had it in my head half an hour ago. Something about crossing zsh's auto-complete with emacs's yank. Either way, this is the kind of feature that should only be thought up while actually using the finished product and seeing where things are inconvenient.

About me

My name is Steven Degutis, and I've been writing software professionally for almost a decade. During that time, I've written many apps and websites, quite a few techical articles, and kept up-to-date with the rapidly evolving software industry.

If you have software needs for web, mobile, or desktop, and are looking for a seasoned software professional, please reach out to me at sbdegutis@gmail.com to set up a phone call.

Work Experience

  • Self-employed – present
  • Clean Coders – 5 years
  • 8th Light – 2 years
  • Big Nerd Ranch – 1 year
  • Self-employed - 1 year

Platforms

  • Web: full-stack
  • iOS (UIKit)
  • macOS (Cocoa)
  • REST APIs
  • AWS / EC2 / ELB

Languages

  • JavaScript
  • HTML5 / CSS
  • Swift
  • Objective-C
  • Clojure

Frameworks

  • Node.js
  • Express.js
  • React
  • Vue.js
  • Electron

Technical articles

Over the past decade, I've written a total of 169 technical articles on various programming languages, frameworks, best practices, and my own projects, as I kept up-to-date and active in the software industry.

Subscribe via RSS / Atom.

Chronological

Portfolio

Here are some of the projects I'm most proud of. They were created using a variety of technologies, running on several different platforms and OSes. They're all finished products, and many of them are open source.

CleanCoders.com

Website - Online Video Store

I wrote this web store for Robert "Uncle Bob" Martin, using Clojure for the back-end, and JavaScript for the front-end. Over the course of 5 years, I took the site from a simple three-page website to a full enterprise-ready business solution, with nearly 100% test coverage.

  • Clojure
  • Datomic
  • jQuery / D3.js
  • JavaScript
  • ClojureScript

Docks

macOS app - Dock Utility

I made Docks in 2009 for users who wanted to swap out icons in their Dock with a single click. Its unique functionality and design aesthetic attracted the attention of Apple, Engadget, MacWorld, and led to an acquisition of my start-up by Big Nerd Ranch.

  • Apple.com Staff Pick
  • MacWorld 4/5 Rating
  • MacWorld Gem of the Year
  • Featured on Engadget.com

Leviathan

macOS app - Clojure IDE

Source Code

While working on CleanCoders.com, a website written completely in Clojure, I increased my productivity by building a custom IDE for macOS designed specifically for Clojure projects.

  • Objective-C
  • Clojure
  • C / C++
  • Cocoa
  • Themeable

Zephyros

macOS app - Hackable Automation

Source Code

This began as an experiment to see how many languages I could use to script a custom macOS window manager using our custom TCP protocol. Eventually it had bindings for Clojure, Ruby, Python, Go, JavaScript, CoffeeScript, Node.js, Chicken Sceme, and Racket, as well as other community additions.

  • TCP / Unix sockets
  • Custom protocol
  • Highly Scriptable
  • 10+ language bindings
  • Open source community

Bubble Maker

iOS app - Bubble simulator

This toy was made in a weekend to entertain my 1 year old daughter. It lets you create bubbles with your fingers, which then simulate physics by bumping into each other and falling.

  • SpirteKit
  • Custom art
  • Physics simulation
  • iOS
  • tvOS

Quick List

iOS app - Todo list app

When I couldn't find an app in the App Store that let me make very simple lists extremely quickly, I made one myself. I use it almost every day to organize and track my activities.

  • In-app purchases
  • Custom UI / UX
  • Social media
  • App Store artwork
  • Spring animations

sdegutis.com

Website - Personal Portfolio

Source Code

This very site itself was written from scratch in about a day. It uses best practices for modern responsive web design, and a custom build phase to compile the sources into a single HTML file.

  • Node.js
  • Pug / Jade
  • LessCSS
  • HTML5
  • WebSockets

2048

Java app - Game

Source Code

The game 2048 (created by Gabriele Cirulli) is so fun that my kids wanted their own copy. So I wrote this version in Java 8, using JavaFx for attractive graphics and silky smooth animations.

  • Java 8
  • JavaFx
  • Modular code
  • Customizable
  • Animations

Mjolnir

macOS app - Window Manager

Source Code

I created this app to increase my productivity by letting me move windows around in macOS using keyboard shortcuts. It grew into a community-driven highly extensible app, using Lua for its plugin system.

  • Objective-C
  • Embedded Lua
  • Plugin system
  • Fully documented
  • 5,000 GitHub stars

AffluentConfidante.com

Website - Social Network

Implementing this elite social network gave me experience integrating both Apple Pay and credit card payments (via Stripe.com) seamlessly into web apps, for a frictionless and pain-free payment experience.

  • Clojure
  • Elastic Beanstalk
  • PostgreSQL
  • Stripe.com
  • Apple Pay

HyperChat

Website - Live Chatroom

Source Code

This isn't just any chatroom. In this web app, you can see what everyone is typing while they type it. I made this in order to scratch my itch for making real-time apps and games, and learned how to use WebSockets in the process.

  • JavaScript
  • WebSockets
  • Node.js
  • Vue.js
  • CSS

Bahamut

macOS app - Music Player

Source Code

As iTunes went through many user interface changes, I wanted an app that was consistent, intuitive, and easy to use. So I created Bahamut, a minimal music player for macOS with a custom user interface.

  • Objective-C
  • Custom UI
  • Cocoa
  • Core Data
  • AVFoundation

Chatter

macOS app - Chat (IRC) Client

Source Code

This was written in 2009, before the time of Slack, when IRC was the main way for programmers to get short-term assistance from each other. Its purpose was to be a beautiful app with an emphasis on simplicity and usability over technical power.

  • Async networking
  • Core Animation
  • Core Text
  • IRC Protocol
  • UI Design

AppGrid

macOS app - Window Manager

Source Code

This is an app I actually use every single day. It lets you move windows with global keyboard shortcuts. Since it uses Vim-like key bindings, it should feel pretty natural to any programmer. There's no configuration needed; it Just Works™.

  • Minimalist UI
  • Simple UI
  • Vim-like Hotkeys
  • Global Hotkeys
  • Zero-configuration

Hydra

macOS app - Lua window manager

Source Code

As an evolution of Phoenix, Hydra was my first attempt at embedding a full Lua virtual machine into an Objective-C app, to make a lightweight and efficient window manager that focused on speed, low memory usage, low CPU usage, and overall being gentle on laptop batteries.

  • Embedded Lua
  • Generated docs
  • Lightweight
  • Memory efficient
  • CPU efficient

Phoenix

macOS app - JavaScript window manager

Source Code

As an evolution of Zephyros, Phoenix was my attempt to use Cocoa's native JavaScript bindings to make a more lightweight and efficient window manager, that focused on speed, low memory usage, low CPU usage, and overall being gentle on laptop batteries.

  • JavaScriptCore
  • JavaScript API
  • Lightweight
  • Memory efficient
  • CPU efficient

Smaller projects

These may be tiny, but they're interesting technical feats.

Lua4SwiftSwift framework for embedding Lua with a native Swift API.
chooseCommand line fuzzy-matching tool for macOS that uses a GUI
musicCommand line music daemon for macOS that only speaks JSON
hectoCommand line text editor with an embedded Lua plugin system
ZephSharpWindow manager for Windows using Clojure for scripting
managementMinimalist EC2 configuration & deployment tool in Ruby.
go.assertAssertion helper package for writing tests in Go.
go.shattrGo library for printing shell-attributed strings to stdout.
OCDSpec2Objective-C based testing framework with Xcode integration.