Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 14 in printed book and digital formats -- plus a one-year subscription so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 14.2 ('Cocoa Fonts')
Instant purchase and download via GumRoad!

FEATURE

Making Better Examples

Tips for making code examples more clear

Issue: 14.2 (March/April 2016)
Author: Markus Winter
Author Bio: Markus is a Molecular Biologist who taught himself REALbasic programming in 2003 to let the computer deal with some exceedingly tedious lab tasks. Some call it lazy, he thinks it smart. He still thinks of himself as an advanced beginner at best.
Article Description: No description available.
Article Length (in bytes): 11,802
Starting Page Number: 33
Article Number: 14204
Resource File(s):

Download Icon 14204project.zip Updated: 2016-03-01 13:41:47

Related Web Link(s):

http://blog.xojo.com/blog/speeding_up_textarea_modifications_under_cocoa_reprint
http://www.realsoftwareblog.com/2012/11/speeding-up-textarea-modifications.html
http://www.wikihow.com/Separate-an-Egg

Excerpt of article text...

I'm always on the lookout for nice tips for the Tips & Tricks column, so from time to time I go over all the latest Xojo related blog posts that I know of. So on the Xojo blog I came across a tip from Joe Ranieri on how to speed up text modifications on OS X (http://blog.xojo.com/blog/speeding_up_textarea_modifications_under_cocoa_reprint).

It is a good tip, and we had already covered it in a previous issue (see xDev 12.4, Tips & Tricks, Tip 3). It is also a repost of a tip on the old REALsoftware blog from 2012 (http://www.realsoftwareblog.com/2012/11/speeding-up-textarea-modifications.html).

On reading it again and wondering why I don't use it much, I realized something that annoys me about so many tips and examples.

(Now let's be clear: being annoyed can be a good thing. Because it tells you there is something that can be improved upon and made to be less annoying—you just have to figure out what it really is that annoys you.)

At first I thought it was the following sentence, which I already moaned about it in 2012 when I pointed out the following as not being beginner-friendly:

...End of Excerpt. Please purchase the magazine to read the full article.