Writing
I mostly write about software on this blog. Recently I've been writing a lot about Git, but I also write about Ruby & Rails and software design in general. If you enjoy these posts, you may also enjoy my conference talks.
-
Different ways to use “--patch” in Git
The --patch flag is handy for selectively staging changes in Git. But did you know it can also be used with other Git commands?
-
Appearance on the Maintainable Software podcast
Check out my recent appearance on the Maintainable Software podcast.
-
How to use introspection to discover what is exhausting your ActiveRecord connection pool
A short post on a technique you can use to see what is using your Rails app's ActiveRecord connections.
-
Why the advice to have a connection pool the same size as your Puma threads is (probably) wrong for you
Are you seeing ActiveRecord::ConnectionTimeoutErrors in your Rails app? You probably need a bigger connection pool (and here's why).
-
List your Git branches by recent activity
Sometimes you just want to see your most recent branches. Here's a handy Git alias that will help you do just that.
-
How focused commits make you a better coder
Ten reasons shaping small and focused commits will help you be a more effective developer and ship better software.
-
Why Git blame sucks for understanding WTF code (and what to use instead)
Here's a more powerful way to look back through the history and figure out what's going on with strange and surprising code.
-
Better Git diff output for Ruby, Python, Elixir, Go and more
A small tweak to your Git config that will make the diff output smarter and more language aware
-
Exclude linting & formatting commits when running Git blame
Did you know there's a way to get Git to ignore certain commits when you run the Git blame command?
-
A Git command to jump from a commit SHA to the PR on GitHub
When digging through a commit history it can be useful to see the wider context for a change by viewing the pull request. Here's a neat shortcut that will take you straight there.
-
Proof your thousand-line pull requests result in more bugs
Nobody likes shipping bugs. But did you know you can reduce the number of bugs in your software simply by reducing the size of your pull requests?
-
Git tip: keep your personal business out of .gitignore files
Maintain a global Git ignore file to avoid having to add your system-specific exclusions to your repositories’ .gitignore files.
-
Git tip: committing with verbose mode
Use Git’s verbose mode to see the diff of the changes you are about to commit.
-
KonMari for your Git repositories
Let's give our Git repositories a spring clean with some simple commands and shortcuts for getting rid of unused and redundant branches and references.
-
Git tip: create an alias to amend your last commit
Another simple Git alias, this time for quickly and easily making adjustments to your most recent commit.
-
Git tip: create a Git upstream alias
Here's a simple Git alias to make your life a little easier if you work with feature branches.
-
Yearnotes 2019
Here's what happened in my 2019.
-
Access your command history in IRB and Rails console sessions
This simple configuration option is a powerful way to access and search through your Ruby and Rails console command history.
-
Delete those pesky untracked files from your Git repository
A short guide to a handy command that makes it easy to clean up untracked files from your Git repositories.
-
Configure default ordering on models with UUID primary keys in ActiveRecord
There's a change coming in Rails 6 that makes it possible to configure the default ordering on ActiveRecord finders, which may be helpful for those using UUIDs for their primary keys.
-
Resources for creating useful revision histories
Links to resources (videos, blog posts and more) to help you put together more useful revision histories with Git.
-
Git Tips you (Possibly) Didn't Know You Needed
Some simple tips and tricks to help you get the most out of Git and improve your Git workflow.
-
I've finally shut down my failed startup
How and why I finally shut down my bootstrapped startup, crowd.fm.
-
Upgrading a large Rails 3 app to Rails 4
Recommendations and guidance on upgrading a large Rails 3 application to Rails 4.
-
Performance testing Rails against real data
How do you write performance tests that benchmark your application against real data?
-
Paying down technical debt
A high-level explanation of technical debt and why keeping it in check is important.
-
The MagRails Attendee's Guide To Manchester
A short guide on where to eat, drink, hang out and be happy during your stay in Manchester.
-
Default Attributes on Active Record Associations in Rails
A neat little trick that lets you define default values for records created through an association.
-
3-Day Ruby and Rails Training Bootcamp Course in Manchester, UK
Announcing a new 3-day Ruby and Rails Training Bootcamp Course in Manchester, UK. Get up to speed on building web applications fast with Ruby and Rails.
-
3D Secure in Rails with Active Merchant and Sage Pay (formally ProTX)
Performing 3D Secure authentication in your rails application using the Active Merchant gem and the Sage Pay gateway.
-
New in Rails 2.3: Disabled option tags and lambdas for selecting and disabling options from collections
New in Rails 2.3: Disable your option tags and select from collections using anonymous functions!
-
Disabled option tags in rails forms
A new plugin that enhances the form helpers in Rails so that you can disable option tags.
-
Rails gets some engines love
Details on some interesting commits to edge Rails (2.3); now featuring engines!
-
Rails and git submodules can play nice
Information on working with git submodules, including common pitfalls and things to be aware of.
-
Passenger/mod_rails 2.0 RC1
Details on the release of Passenger (AKA mod_rails) 2.0 release candidate 1.
-
mod_rails and apache on OS X Leopard
Tips on getting Apache and Passenger (AKA mod_rails) working in your development environment on OS X Leopard.
-
Rails plugins and the move to gems
Edge rails and working with plugins from git.
-
My blog is born
First post on the personal blog of Tekin Süleyman, Manchester based freelance Ruby on Rails developer and contractor.