Open post
Patterns Logo

Expressions, Patterns & Regex101 Make Writing Regular Expressions Easy and Fun

In my post about using regular expressions to find matches in a text file, I promised to tell you about the two applications I used to help me write my regex. By the way, Regex is what the cool kids call Regular Expressions.

Let’s state the problem to be solved first. If you have a text file where you want to change something that’s repeated throughout the file, it’s pretty easy to do a search/change all. We do it all the time in text editors. But what if you have a text file that is repeatedly generated and always has the same thing wrong with it? Maybe it’s a date in the wrong format. Or maybe an online system hasn’t been updated with your new company name. Or what if instead of changing the text, you just need to know what the text actually says? Let’s say it’s a date in a document and you want to write a script to change the name of the document to include the date? All of these examples are a great place to try out regex.

Continue reading “Expressions, Patterns & Regex101 Make Writing Regular Expressions Easy and Fun”

Open post
some random regex

I Have Made Fire – I Coded in Perl with Regex!

ChaptersWe’re entering chapter 3 of my quest to provide chapter markers in the podcast. The original request was from Joe LaGreca but since I’ve started talking about it on the show, people have been coming out of the woodwork saying, “Yes, please!”

I have been working my little fingers and brain to the bone on this and I’ve figured out a really geeky solution. But first, let’s walk through what doesn’t work.

To review, I record the show in Hindenburg Journalist. I stop recording when I end each topic anyway, so it’s super easy to hit ⌘-control-enter to add a chapter and then type in the subject. The problem is that Hindenburg isn’t embedding those chapters on export. The dev and I have gone back and forth a few times and they seem to be saying that the chapters should be maintained, but they’re definitely not in the file.

Continue reading “I Have Made Fire – I Coded in Perl with Regex!”

Open post
PBS logo

CCATP #509 – Bart Busschots on PBS 43 – Introducing JavaScript ES6

In this installment of Programming By Stealth, Bart spends most of the time talking through his solution to the previous challenge, where we added start and stop buttons to our Game of Life. In his solution, he actually modifies the prototype to accommodate the ability to add these buttons. He explains his process and his decisions along the way. I’m not going to lie, this one confused me quite a bit in the middle but we both hope it’s because we’ve been away from the hard-core JavaScript for quite a while.

Once we have that under our belts, he starts explaining some of the cool, new features in JavaScript ES6 where we abandon var and replace it with let and const. He explains the value of these new terms (and the problems they solve!)

Bart’s full tutorial is available as always at bartbusschots.ie/…

mp3 download

Open post
PBS logo

CCATP #505 – Bart Busschots on PBS 41 – Form Events

In this episode of Programming By Stealth, Bart ties up the last of the loose ends related to web forms. He teaches us about form events, which are critical to making our web forms not only accessible to screen readers but to allow our users to tab around to the different fields and interact with them without using a mouse. We learn about the keypress event and learn what it means for 31 to be the space key.

Bart’s excellent tutorial is at over at bartbusschots.ie/…

mp3 download

Open post
Chit Chat Across the Pond Lite logo

CCATP #504 – Erica Peterson on Moms Can: CODE

Erica petersonErica Peterson of Moms Can: CODE joins us this week to talk about her new startup designed to help mothers who code to connect and collaborate.

We talk about her life as a mother of a five-year-old, while coding, while teaching high school biology, creating a startup and running a non-profit. The non-profit is called Science Tots, which is focused on bringing STEAM activities to non-science-based events.


mp3 download

Open post
PBS logo

CCATP #501 Bart Busschots – PBS 39 of x – HTML5 Form Validation

This week Bart Busschots joins us to talk about HTML Form Validation. We’ll get back to our Cellular Automata next week. Bart has also decided that we’re going to get our feet a little bit yet by using GitHub where we’ll be getting the challenges and solutions from now on. You can see Bart’s awesome tutorial at bartbusschots.ie/…


mp3 download

Open post
app camp for girls logo

CCATP #493 Kelly Guimont on App Camp for Girls

This week our guest is Kelly Guimont. Kelly is a contributing editor to the Mac Observer and also a volunteer at App Camp for Girls, a program that introduces iOS programming to girls in grades 7-9. We talk about how a 3rd grade teacher asking her to crawl under a desk to plug in an Apple ][e turned her into the computer nerd she is today. She explains why you need a duck to be a programmer and a hula hoop to teach girls to code.

If you’d like to help out App Camp for Girls, go to appcamp4girls.com and look for the contribute button. Lend your time or give your money or buy some swag! If you’d like to follow Kelly you can find her @verso.


mp3 download

Open post
PBS logo

CCATP #492 Bart Busschots – PBS 36 of x – More HTML Text Input | More Cellular Automata

Chit Chat Across the Pond this week is another episode of Programming By Stealth with Bart Busschots. I’m very proud of the fact that I completed my homework, writing a program from scratch that passed all of the tests written by Bart. It took me 12 hours, and nearly 4 hours of Dorothy’s time helping me do it, but I got ‘er done. In this installment, 36 of x, we learn some more HTML, specifically about all the cool things the input tag can do, like creating invisible forms which is just weird but also very cool. The challenge this week is a flip on last week. This week Bart has written the next bit of code for us and we have to create the tests. It’s as challenging as all the rest but it’s just as fun. And of course you can find Bart’s fabulous tutorial show notes at bartbusschots.ie/…


mp3 download

Open post
PBS logo

CCATP #487 – Bart Busschots PBS 35 of x – HTML Text Input | Introducing ‘Life’

In this installment, Bart walks us through a little bit of how he wrote his Test Driven Development with QUnit for the Bartificer Link Toolkit. Bart even explains how it helped him find a couple of pretty major bugs in his own code, proving how important this is. Then we’ll move on to formatted sub-sets of text like numbers, email addresses and so on.

Finally, we make a start on what will be an on-going project. The idea is to combine our understanding of HTML, CSS, JavaScript, jQuery, and QUnit to implement a zero-player with a really cool computer science back-story.

And as always Bart’s full written tutorial is available over at bartbusschots.ie/…


mp3 download

Open post
PBS logo

CCATP #484 – Bart Busschots PBS 34 of x – More JS Testing with QUnit

In this installment of Bart’s Programming By Stealth series, we review our test code using QUnit, and then learn how to use QUnit to test our code within a real browser page. We do that using the API we built together, the Bartificer Link Toolkit that identifies external links on a web page, makes them open in new tabs, adds the tag rel=noopener, and adds a cute icon to identify them as external links. As always Bart’s terrific written tutorials and downloadable examples are available at bartbusschots.ie/….

itunes
mp3 download

Posts navigation

1 2 3 4 5 6
Scroll to top