Hello World — Sam Soffes

Hello World — Sam Soffes


Posted on

There is a world out there. It’s pretty awesome. Today, I stumbled across this picture:

Hello World — Sam Soffes

This makes me incredibly sad.

I did something a few months ago that has made me immensely happier day to day. I turned off all of my notifications. No Twitter, email, nothing. I have to manually check all of my apps. This is so great. No more being interrupted at dinner because someone mentioned me in something I don’t care about.

You know how you feel your phone vibrate sometimes, but it was just your leg? That quit happening to me. Crazy, right?

So go outside, be present with the people you love when you’re with them, or go make something. Staring at your little screen isn’t doing anything for you.

Posted on

I’ve been thinking about making this Ruby gem for awhile. It was originally called “cheddar-text”, but I decided something that sounded more fun would be better. Awhile back, I was trying to rewrite this library in C and named the repo Quesadilla. It turns out, writing a C extensions that manipulates strings is really hard, so now the Ruby version is named Quesadilla.

Quesadilla is an entity-style text parser. Quesadilla was extracted from Cheddar. It’s what powers all of Cheddar’s text parsing. It was inspired a bit by Twitter’s tweet entity.

Since Cheddar works on iOS and Mac (as well as the web), I needed something that could give me ranges for special things in the text. iOS and Mac convert this to an NSAttributedString using the indices included in each entity. Here’s the source for how Cheddar for iOS does it in Objective-C.

Continue reading →





Source link

Postagens Similares

Deixe um comentário

O seu endereço de email não será publicado. Campos obrigatórios marcados com *