Videos tagged with The Pragmatic Programmers
Bugs happen, even in Objective-C programs. You’ll want to find and fix them as quickly as possible. Thankfully, Xcode has a powerful debugger. In this episode, we’ll explore the various features and commands of the debugger, use it to find a bug, and wrap up with remote debugging. You’ll learn how to: Use the debugger to find and squash bugs Set breakpoints, and disable them f...
Classy Web Development with Sinatra Episode 2: A REST Service
Sinatra is also great for writing (lots of) small REST services. In this episode, we’ll write a simple REST service that lets us create, read, update, and delete quips and quotes. You’ll learn how to: Create a basic REST service with Sinatra Write handlers to create, read, update, and delete resources Use Active Record with Sinatra for database persistence Respond to requests with X...
Classy Web Development with Sinatra Episode 1: A Tiny Web App
Sinatra makes it easy to write simple web applications in a hurry. In this episode, we’ll write a URL shortener application to learn the essential Sinatra features, test the application, and deploy it to a production server. You’ll learn how to: Create a simple web application with Sinatra Write handlers and ERB templates Handle form parameters Use multiple files and custom Ruby lib...
Classy Web Development with Sinatra: Free Preview
Sinatra is a small Ruby web application framework that packs a big punch. It’s also a lot of fun! You can use Sinatra to write tiny, focused web applications and lightweight REST services very quickly. And sometimes a lean and mean web app is all you need. If you haven’t given Sinatra a look, now’s a great time to get a fresh perspective on web development. Learn how to get th...
Coding in Objective-C 2.0 Episode 2: Memory Management
Objective-C 2.0 has a garbage collector, but it’s not available on the iPhone. So if you’re writing iPhone applications, you’ll need to manage your own memory. And it’s especially important on the iPhone, where resources are constrained, that you clean up after yourself. In this episode, we’ll find and fix various memory-management problems that are common in Objec...
Coding in Objective-C 2.0 Episode 1: Classes, Objects, and Messages
In this episode, we’ll write a small program in Xcode to learn the basics of object-oriented programming with Objective-C. You’ll learn how to: Write, build, and run basic Objective-C code in Xcode Use the Objective-C extensions to C for object-oriented programming Understand basic object-oriented programming concepts Use existing classes Write your own custom classes Define instanc...
Coding in Objective-C 2.0: Free Preview
Objective-C is the programming language for writing native iPhone and Mac applications. It’s also the language that Apple uses to build their own applications and frameworks. So, if you know Objective-C, you have a lot of power at your fingertips. But if you’re new to C or object-oriented programming, then Objective-C can seem a little awkward at first. These screencasts by Bill Dud...
Mastering Rails Forms Episode 3: Form Builders
Rails applications often contain many different forms, leading to lots of repetitive code. Reading and maintaining that code slows you down. In this episode, we’ll create a form builder to clean up our form code, and add some useful features along the way. Having all the form markup in one place means you can easily change the style of every form in your application. You’ll learn ho...
Mastering Rails Forms Episode 2: Customizing Form Errors
Good forms help a user when trouble strikes. The default form error presentation is a start, but you should customize how form errors are presented to fit the needs of your users. Unfortunately, it’s not always obvious how to fully customize what Rails gives you. In this episode, we’ll completely customize the content of validation error messages and how form errors are displayed. W...
Mastering Rails Forms Episode 1: Form Essentials
We’ll start by building a search form, and then move on to a form for ordering custom pizzas. The pizza form starts out with a simple text field and checkbox, but ends up with a pull-down menu for the pizza crust type (a one-to-many association) and a group of checkboxes for the pizza toppings (a many-to-many association). You’ll learn how to: use various form helpers to create form...