Jalada

Computer Science student at the University of York, UK. Lead Developer of Twitterfall.com. Passionate about Erlang, Linux, Hacking and Antonia.
Re: Tips when writing an API in Ruby on Rails - https://blog.jalada.co.uk/tips-wh...
"If you're doing full stack tests as well, is it still important to be able to test them individually? Is there anything wrong with large controllers if they're manipulating data? I used to try and keep controllers tiny but I found projects are easier to maintain if the business logic and flow is clear inside the controller, rather than inferred by model lifecycles (for example)." - Jalada
Re: Tips when writing an API in Ruby on Rails - https://blog.jalada.co.uk/tips-wh...
"Good suggestions! What would the benefit be of constructing objects & running ActiveModel validations vs. some reusable `before_action`s in the controllers?" - Jalada
Re: Tips when writing an API in Ruby on Rails - https://blog.jalada.co.uk/tips-wh...
"Yeah I've used JSON schemas before, in a Node.js application. I'd question the benefit of using JSON at all if it becomes important to type your data like that. You might be better off moving to a different serialisation structure that supports types as a first-class feature e.g. MsgPack, protocol buffers, or Thrift." - Jalada
Re: Tips when writing an API in Ruby on Rails - https://blog.jalada.co.uk/tips-wh...
"How big are your JSON payloads that the speed of the serializer is a bottleneck?" - Jalada
Re: Tips when writing an API in Ruby on Rails - https://blog.jalada.co.uk/tips-wh...
"Sideloading is good advice. I think serializers and Jbuilder both have pros and cons. It's always important to pick the tool appropriate for your requirements. What would my example look like as an ActiveModel Serializer?" - Jalada
Re: Tips when writing an API in Ruby on Rails - https://blog.jalada.co.uk/tips-wh...
"Thanks Richard, this looks handy!" - Jalada
Re: Tips when writing an API in Ruby on Rails - https://blog.jalada.co.uk/tips-wh...
"Metal doesn't give you any way of rendering views without including loads of stuff back in. It feels like you'd end up reinventing the wheel for a sufficiently feature-rich API. For lighter APIs it'd definitely be worth evaluating though. There's no reason why you can't mix normal controllers & Metal ones in your app, so your app can both serve the assets and also respond with lightweight fast API calls." - Jalada
Re: Tips when writing an API in Ruby on Rails - https://blog.jalada.co.uk/tips-wh...
"Thanks Habib :) JWT is another great choice, I particularly like that it is more of an official standard than Hawk is." - Jalada
Re: Tips when writing an API in Ruby on Rails - https://blog.jalada.co.uk/tips-wh...
"Definitely! Versioning was nearly going to be one of my tips, but it didn't make the cut because I don't think it's as immediately beneficial as the other things. If you're looking to version your Rails API, check out versionist: https://github.com/bploetz/ver..." - Jalada
Re: Tips when writing an API in Ruby on Rails - https://blog.jalada.co.uk/tips-wh...
"They're pretty much all opinion-based, but I wanted to point out Jbuilder in particular because in my experience people call `as_json` or `to_json` on objects and shoe-horn them into the structure they want, and Jbuilder is a better solution. It's definitely not the only solution, you're right. I've used custom serializers in the past but I found Jbuilder much friendlier, especially with nested objects and relations." - Jalada
Deploying a Node.js application with Capistrano 3 (x-post /r/node) - http://www.reddit.com/r...
jalada on Tiny Upstart script to keep a Node process alive - http://www.reddit.com/r...
"Well at least now you know for next time :) What did you do in the end? Couldn't you just use cron?" - Jalada
Re: Tips when writing an API in Ruby on Rails - https://blog.jalada.co.uk/tips-wh...
"Nice! Thanks for the link, being able to easily make FactoryGirl spit out JSON is really handy, I'll definitely be using this!" - Jalada
Tiny Upstart script to keep a Node process alive - http://www.reddit.com/r...
jalada on Tiny Upstart script to keep a Node process alive - http://www.reddit.com/r...
"Must be a good book :)" - Jalada
Gifpeek: Infinite realtime stream of GIFs (Often NSFW) - http://www.reddit.com/r...
Re: Twitterfall 1.5: What’s new? - http://jalada.co.uk/2015...
"Hi Ryan. This should be fixed now, but let me know if you're still having problems." - Jalada
Re: Twitterfall 1.5: What’s new? - http://jalada.co.uk/2015...
"Thanks Max :) you're very kind!" - Jalada
Re: Twitterfall 1.5: What’s new? - http://jalada.co.uk/2015...
"Thanks Ryan! This is a bug. I've put it on the list and will fix it soon :)" - Jalada
jalada on Day 3 *Sigh*... I should have planned this properly and gone RAID6 or SHR2. - http://www.reddit.com/r...
"Oh damn...I didn't know this and I have 2x2TB drives waiting to be added to my array (once my backup to CrashPlan is complete), but I already have a 3TB drive in the array... Guess I'm going to be buying more drives! 4TB of spare HD is no bad thing; I can use it for cold storage. I think DSM should warn you about this before starting to create the array." - Jalada
Version : 5.1-5022 Has Been Released - http://www.reddit.com/r...
jalada on Version : 5.1-5022 Has Been Released - http://www.reddit.com/r...
"Has anyone had any problems with their custom packages or configurations after updating?" - Jalada
My Keybase proof [reddit:jalada = keybase:jalada] (bVqmEKBQ4YUhv_xAdlKtXJj1LAk1LkcgJaYSps4cgS4) - http://www.reddit.com/r...
jalada on NPC ship dancing in Louis De Lacaille Prospect - http://www.reddit.com/r...
"I think it was Gillicuddy - Adventure, Darling from the Free Music Archive: http://freemusicarchive.org/music..." - Jalada
NPC ship dancing in Louis De Lacaille Prospect - http://www.reddit.com/r...
jalada on NPC ship dancing in Louis De Lacaille Prospect - http://www.reddit.com/r...
"Spotted whilst streaming last night. Seemed to be following the outside edge of the station...wish I'd waited to see their fate now." - Jalada
jalada on My first Eagle lasted 30 minutes. - http://www.reddit.com/r...
"I hadn't thought about combining this technique with left and right thrusters, good suggestion." - Jalada
How to use the in game Galaxy Map to trade efficiently and successfully. - http://www.reddit.com/r...
jalada on To those, no pun intended seriously, elitists. - http://www.reddit.com/r...
"Yup, that sounds like Elite." - Jalada
Bitfriends allows you to buy/sell bitcoin between facebook friends (Not affiliated, just thought it was cool) - http://www.reddit.com/r...
jalada on Bitfriends allows you to buy/sell bitcoin between facebook friends (Not affiliated, just thought it was cool) - http://www.reddit.com/r...
"I helped make this; pleased to see it here. Any feedback is much appreciated." - Jalada
jalada on Bitfriends allows you to buy/sell bitcoin between facebook friends (Not affiliated, just thought it was cool) - http://www.reddit.com/r...
"BitFriends is more about discovering friends of friends that are interested in Bitcoin (or crypto-currency in general) that you might not realise are interested / know. Because you have a mutual friend, there is a potential for a trusted, out of band (no middleman!), transaction that some may consider safer than using flaky exchanges. Not only that but it’s generally more constructive to the ecosystem because it’s more about helping people out and less about turning a quick profit. But thanks for your feedback :)" - Jalada