creature
Exploring weird maths with code
Fixing a bug with millions of followers
Potential password/credential breach at Datadog
Moving on from GitHub
Dimensional drawings for all Apple iPhones, iPads, and iPods [pdf]
Frameworks are a big help – partially for the tools they provide, but also for the consistency. "We have a lot of code, but it's all structured in a standard way" makes things easier to understand. It's also a way of having confidence in the architecture: you know many other people have built successful apps with it, rather than something you've invented yourself.
The concepts in Redux are very appealing to me: your application has one state, and that state gets changed via actions. You have a function that, given a state and an action, produces a new state. Your application can render itself from that state. This makes testing straightforward: your business logic tests boil down to "Given this starting state, and this action, my output state should look like this." Similarly, your UI is now easy to test: "Given this state, my component should render like this," covers displaying information, and "When I interacted with this element, was an action emitted?" covers user interaction. Traditionally hairy areas are now more straightforward: "I need to test with a logged-in user" or "I need to test a successful payment" is all about the data in the state.
Another technique you can use is a publish/subscribe architecture: individual parts of your application publish events, and can subscribe to events they care about. Now, your InboxCounter widget doesn't have to know anything about how messages are received or displayed; as long as it listens for "message:added" and "message:removed" events, it can display an accurate count. Similarly, the AJAX polling for new messages doesn't need to be coupled to the message display or the counters or other elements; it just has to check for new messages, and publish events when new ones are received. This should make it easier to add new components and refactor old ones (as long as you're emitting the same events, nothing else should have to be updated), but it can be hard to figure out what events get emitted, and where they come from. Tests help.
On a much smaller level, using promises instead of callbacks can help reduce "pyramid code" - sections of the codebase with extreme indentation. They also make it easier to handle failure cases; writing "Make these 3 co-dependent AJAX requests, and if any fail then display an error message" will be more concise and clearer with promises.
Finally, don't over-complicate things. Frameworks, dependency injection, and the like add a lot of upfront complexity to a project, but reduce it later on. If all your application needs is an occasional "When X happens, show/hide this DOM element" then simple jQuery event listeners will be a lot quicker to build and easier to understand. Don't build a Swiss watch when what you needed was an egg timer.
The two that come to mind are when cooking ("Hey Siri, set a timer for 15 minutes") or when I'm trying to get everything together for leaving the house ("Hey Siri, how cold is it outside?"). I'll also use it if my phone's in my pocket, I'm wearing headphones, and it's awkward to get my phone out ("Hey Siri, text Tom." "What do you want to say to Tom?" "I'm running 10 minutes late but will be there soon. Sorry!")
Also, if you're working as a developer already then the first year of university is likely to be straightforward for you. Depending on the hours, you could probably keep the part-time job and study (but out of the two, you should prioritise the study).
Finally, I'd recommend you use your free time in university well. Volunteer for charitable organisations; help out with your student union; take up a sport; keep learning things not on the curriculum. All of these are fulfilling in and of themselves, but will also benefit your future too.
To me, this seems more like "engineering Facebook to be better at handling the complexities of interpersonal relationships." Now we're massively more connected, there's more opportunities for unexpected pain. Features like this can help redress the balance.
In the days before Facebook you knew that unless you were going to your ex's favourite places or hanging out with mutual friends, you weren't likely to run into them or hear about them. But now it's wherever you check Facebook – and even if you're not a heavy Facebook user, millions of people are. As soon as you wake up? Over breakfast? During a slow meeting at work? Waiting for your coffee? There's lots of times when I'd rather not wrestle with those emotions.
It's not about enabling a safe space, or the right not to be offended. It's about giving users more control over the content they see, and giving Facebook more information about whether a breakup was amicable or emotionally devastating (which, in turn, lets Facebook make better decisions about content that should show up in your feed).
Bassel Khartabil, Syrian open-source developer, has been sentenced to death
I've heard stories of cars using these techniques to cheat in tests, but I couldn't find any reliable citations.
- Handicrafts. Get some supplies that let people make something. Sculpey, for instance, sell kits that come with clay & instructions (http://www.sculpey.com/product_category/kids-kits/). Creative types can freestyle it; beginners can follow the instructions. Plus everyone gets something they can take home or keep on their desk afterwards as a memento. It doesn't have to be clay - there's many other options like pipe cleaners & fuzzballs, felt cut-outs, picture beads, and origami.
- Learn a skill. If you've got a budget you can hire an outside expert, but you can probably find someone inside the company with a good party trick. Get a magician to teach some basic sleight-of-hand, a juggler to teach juggling, or an entertainer to teach some balloon animals. There's also cookery, improv, flower arranging, astronomy, and many more.
- Play with toys. Find some unusual/expensive items that your attendees can play with throughout the night. An Oculus Rift, a 3D printer, a unicycle, an Apple watch, Google Glass, a photo booth, a double-necked guitar, a Segway, a candyfloss machine, etc.
- Engineering games. Given 1 roll of stickytape and unlimited straws, what's the tallest tower you can build? Given half a pack of blu-tack and unlimited paperclips, what's the widest gap you can span? Given 10 sheets of cardboard & a craft knife, how many coke cans can your structure support?
- Movie night. If you've got a projector, a stereo, and some comfy chairs in your office you're in for a treat.
I'm a full-stack developer with nearly a decade of professional experience. I like Ruby, Rails, JavaScript, and Python. Right now I'm looking for a 3-6 month full-time contract, ideally in London. For remote roles I'm available longer-term too.
I spent 4 and a half years at Last.fm, giving me experience in writing code that scales to millions of users. I helped a medical startup rearchitect their code to be testable, more reliable, and extendable. More recently I wrapped up a Rails project for Skype with a tight deadline and non-negotiable scope. Together with one other developer, we delivered it on time and under budget.
My ideal contract would be one of these:
- You're a startup looking for help building your product, developing a roadmap, iterating with customers, and building your permanent team.
- You're in a tight spot and in need of rescue. Maybe you've got too much technical debt. Maybe you've got no tests and no documentation. Maybe you've got no supporting infrastructure and no backups. I'll help you get back to a good place.
- You've got a team you trust, but don't have enough developers right now. You need someone who'll get up to speed quickly, turn up on time, and pull his weight with the rest of the team.
You can find out more about me from my CV and portfolio: http://alexpounds.com/cv http://alexpounds.com/portfolio
And if you'd like to work with me, I'd love to hear from you: http://alexpounds.com/contact
A $58,000 lesson in mid-volume manufacturing
The author also produced a free 12 week email course: http://designforhackers.com/
In general, you'll probably find that most work comes from you reaching out to people pro-actively. At that point, they're definitely going to check out your website. If you can link them to your best work and give them some well-written blog articles to read, you'll definitely see the benefit in later conversations.
I'm a full stack web developer with nearly a decade of experience. I generally work with Ruby, Python, JavaScript, and/or PHP, but I've used several other languages professionally and would welcome the chance to pick up something new if the project required it. I'm fully booked right now, but am available from the end of June. I generally take on one client at a time, so I'm looking for something full-time or close to it.
I spent 4 years at Last.fm developing software used by millions of people, worked at a similar scale at Sun Microsystems, have helped small teams fix their legacy codebase to escape their technical debt, and mentored developers & businesses. I particularly like small teams/startups, and like shaping the product/business direction too.
You can find out more about me at http://alexpounds.com/cv.