blog.codyduval.com
codyduval#blog
http://blog.codyduval.com/page2
Dec 8, 2014. Unpacking Tmux Layouts, Part 1. A dive into the Tmux source to understand how it draws custom layouts. In Part 1, decoding the layout config string! Nov 22, 2014. Going Stateless with Clojure. Learning the basics of Functional Programming by building a simple string compression algorithm in Clojure. Nov 1, 2013. OS X 10.9 Your Dev Environment. Troubleshooting a broken dev environment after upgrading to OSX 10.9. Jul 6, 2013. On Classrooms and Craft. Jan 8, 2013. Crafted with 3 by Cody Duval.
blog.codyduval.com
DCI Flavored Rails, Part 1 – codyduval#blog
http://blog.codyduval.com/rails/2015/01/03/dci-rails-part-1
DCI Flavored Rails, Part 1. Jan 3, 2015. The problem with object-oriented languages is they’ve got all this implicit environment that they carry around with them. You wanted a banana but what you got was a gorilla holding the banana and the entire jungle. Joe Armstrong in. Via Mike Pack’s blog. DCI (or Data, Context, and Interaction) is a proposed compliment to the widely adopted Model-View-Controller architectural pattern. DCI was invented by Trygve Reenskaug. To see how I implemented it in Rails. In a ...
blog.codyduval.com
Maintainable Web UI's with React.js – codyduval#blog
http://blog.codyduval.com/react/2015/01/25/unidirectional-data-react
Maintainable Web UI's with React.js. Jan 25, 2015. I built a (relatively) simple UI using React to explore the pros (and cons) of React’s uber features: immutability, the virtual DOM, and unidirectional data flow. In this post, I detail the latter and how data flows downhill with React. That’s all well and good, but what’s the alternative? So when state changes, React re-renders the. Jsx React.DOM */. Which are immutable properties passed into the object. Lower down, on line 26, you’ll see that a. Data r...
blog.codyduval.com
I Wrote A Ruby Webserver – codyduval#blog
http://blog.codyduval.com/2014/12/28/i-wrote-a-ruby-webserver
I Wrote A Ruby Webserver. Dec 28, 2014. I wrote a small, single threaded, non-performant, ruby webserver to better understand where web servers bog down, what limits (or boosts) their performance, and the implications of server architecture in a framework like Rails. The core of my webserver is a simple REPL (Read Evaluate Print Loop) that sits on top of an instance of Ruby’s. Once given a port to listen on,. Objects to represent the bi-directional communication between a browser and our server. Finally,...
blog.codyduval.com
DCI Flavored Rails, Part 2 – codyduval#blog
http://blog.codyduval.com/rails/2015/01/10/dci-rails-part2
DCI Flavored Rails, Part 2. Jan 10, 2015. Head over to Part 1. For a summary of the core concepts behind the Data, Context, and Interaction architectural pattern. Below you’ll find how I implemented DCI in Rails, and the pros and cons that come with it. Start with a Use Case. For this experiment, we’ll build an application to manage sign-ups at a play space for children. In DCI, Contexts encapsulate a single use case. We’ll structure our first DCI context around the following use case:. This use-case nic...
blog.codyduval.com
Unpacking Tmux Layouts, Part 2 – codyduval#blog
http://blog.codyduval.com/tmux/2014/12/11/unpacking-tmux-layouts-part-2
Unpacking Tmux Layouts, Part 2. Dec 11, 2014. We dove into the Tmux C source code to divine the magical meanings behind each token in the Tmux custom-layout config string. As a refresher, here’s what a config string looks like for a window split into 3 panes:. Tmux list-windows 1: zsh (. Layout d5d2,178x51,0,0 [. 178x25,0,0 {. 89x25,0,0,26,88x25,90,0,27 }. 178x25,0,26,28 ]. This should tell our program that we want two vertical (. The Layout as a Tree. Class to contain each pane split. Then, when we spli...
SOCIAL ENGAGEMENT