Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
I maintain jasmine-jquery, a library providing jquery matchers and fixture loading for jasmine.
-
It’s a bit tricky to install Ruby on Mac OS X Maverick (10.9), but here’s what worked for me.
-
Recently ran into this issue where Google Chrome wouldn’t open iTunes links (e.g. links to WWDC videos, iOS apps, songs, etc.), a while ago I’d set Chrome to remember not open those links (oops).
-
I had someone ask me for the best way to get the status bar’s height.
-
When using AVFoundation, you’ll notice that the numbers returned when checking the audio channel power levels may look kind of strange.
-
Compiling sucks, for the most part, and while it’s getting better with smarter compilers and faster computers this is what it often feels like: So instead of sitting there, you head over to the kitchen, make a fresh cup of tea, and see how your friends and
-
I read a lot of code, and some of the most common mistakes I see is how people override UIViewController’s view property.
-
Having a modular and well-organized code is clearly great from an architectural standpoint, but it can make the actual filesystem layout and hierarchy of your project a little complex, now that text editors and IDEs also have good fuzzy finding capabiliti…
-
I released a project called TRVSNavigationControllerTransition.
-
I use git in a terminal all day, every day. 3 characters adds up if you type them enough, g i t, so let’s shorten what we have to type.
-
Two techniques that iOS developers use to make visually appealing app are masks and shadows; for example, masking an image to have round corners, or adding a drop shadow to an image to have depth.
-
Recently I was implementing a view where the last cell of a table view needed a drop shadow.
-
You’ve subclassed UITableViewCell and you’ve added a UIButton as a subview.
-
I’ve seen bad practices for handling errors with JSON and Rails: Not using proper HTTP statuses; Not using the error callback; and Making errors message building harder than necessary.
-
You can call Backbone.history.start() once.
-
Chrome released a new Web Inspector feature called Dock to right.
-
I like ActiveModel’s Errors object.
-
In JavaScript, the this keyword refers to the object it belongs to, and the object depends on where you use it.
-
Ruby has a conditional assignment operator: ||=.
-
Rails’ generators can pump out code and save you from tedious work.
-
Git added a feature that enables you to split your Git config across multiple files.
-
Before I change a Rails partial that’s shared across the project, I check what effect my change will have by looking at where and how the partial’s used.
-
Prelude Recently I implemented a piece of functionality that used PostgreSQL’s hstore data type in a Rails application and I’d like to share how we did it including some improvements you can make to use data stored as an hstore easier. hstore is PostgreSQL
-
Vim’s :g takes two inputs: a pattern and an operation, and it runs that operation on each line that matches the pattern in the current file.
-
Update: I updated the post for ripgrep. grep reigned as the preeminent text search tool for a long time.
-
$ git grep <regexp> Try it out on a project, then try the same search with ack and grep and you see that we have speed that’s better than either grep or ack.
-
After running a command like $ rake new_post["hello world"], you may have seen an error like the following: zsh: no matches found: new_post[...]
-
No matter how clean your code is, you need to document your code.
-
If you need to build a JavaScript RegExp from multiple strings or regexps, dynamically, here’s how: var re = new RegExp("some string" + /some.
-
I’ve experimented with making DSLs in Ruby and here’s an example: class User def initialize &block if block.arity == 1 block[self] else instance_eval &block end end def name new_name = nil @name ||= new_name end def location new_location = nil
-
For teams building projects with Git, a good habit is to rebase and merge often so conflicts are less frequent and easier to resolve.
-
I often open a file in a directory that doesn’t exist yet.
-
With TextMate’s Markdown bundle, you can mark headers by moving your cursor to the line after the intended header, typing # and pressing <Tab>.
-
I’m going to show you how to use the reflog to fix mistakes you’ve made with Git, where you seemingly can’t recover the history.
-
Emacs has a feature named “occur” that lists the lines in the current buffer that match a given regexp.
-
Stay tuned!