HNHacker News
TopNewBestAskShowJobs

shaydoc

271 karma · joined June 16, 2011

submissionscomments
shaydoc··on Designing a Pragmatic RESTful API
I failed to say that your token context should have a "time based expiration", in that a new token is reissued periodically as defined by you and your needs. I would refer to the ASP.NET Forms Auth mechanism with its sliding expiration.
shaydoc··on Designing a Pragmatic RESTful API
You don't need to do a database look up if you stuff some context into your token and encrypt it with a secret key. When the server receives the request it can simply decrypt the token and deserialize it into some sort of strongly typed usercontext
shaydoc··on Designing a Pragmatic RESTful API
You don't need to do a database look up if you stuff some context into your token and encrypt it with a secret key.

When the server receives the request it can simply decrypt the token and deserialize it into some sort of strongly typed usercontext.

shaydoc··on How Did Work-Life Balance in the U.S. Get So Awful?
That is seriously good reading
shaydoc··on [dead]
500,000 gold doubloons per annum, with a performance related bonus of up to 10 bags of pixie dust!
shaydoc··on Why isn't there a union for software engineers?
I don't think that's a good idea at all...in general I think wages are very good for software engineers, and working conditions tend to be among the best anywhere. There is plenty of demand for good engineers and a world of opportunity. If you are not happy with wages, skill up, build a portfolio and make yourself into the type of individual people want. Unions are no good in my opinion, they are more trouble than they're worth, and the good people tend to get trapped by them. They just end up being another controlling force and they hinder productivity innovation etc...
shaydoc··on Everyone Does Everything: How To Work on Teams of Generalists
No your article is very good, reading it on pocket at the moment.

I think in terms of development I think its good to have a good idea what's going on end to end, I would consider that normal. However, its good to have a specialism too, that is be a master of one or two things. Its not much to ask someone to be proficient in a programming language or 3 and a database of some description, I don't think.

shaydoc··on Everyone Does Everything: How To Work on Teams of Generalists
I can't get this article to work on my nexus 7, the whole browser just freezes!

Thankfully Pocket does the job.

shaydoc··on React, a JavaScript library for building user interfaces
I use KnockoutJS, would there be anything in particular you feel React has going for it over knockout ?
shaydoc··on Javascript Framework Popularity graphed by Github Archive
Yes, I agree, knockoutJS is a brilliant piece of work. John Papa has done what I would call a really decent series of blogs in composing a Single Page Application architecture, you should have a read here : http://www.johnpapa.net/spa I think I am going to write a series also documenting the work I have been doing of late too...
shaydoc··on Facebook’s New React JavaScript Library Tutorial Rewritten in AngularJS
Just had try doing a KnockoutJS version of this also : http://anexiledderryman.com/post/51714264769/facebooks-new-r...
shaydoc··on React, a JavaScript library for building user interfaces
Just had try doing a KnockoutJS version of this also : *http://anexiledderryman.com/post/51714264769/facebooks-new-r...
shaydoc··on React, a JavaScript library for building user interfaces
Well (i could go on all day), I wish that these libraries would start with the "big picture", as in how everything should hang together and where there component fits in, like what John Papa has done really well : http://www.johnpapa.net/spa/

Here's how I lay out my SPA structure : http://anexiledderryman.com/image/50565922110

It seems here we just dive straight into the code.

In particular, I don't like so much coupling of the code and the html together, but that really depends what angle you are coming from, who is the target market of this library.

For example : Take KnockoutJS, it has really good separation of concerns. I really like the MVVM pattern, why? because it means if I have a team of HTML5/CSS design guys, I can let them work off just building good markup and focus on delivering quality static stuff, then my UI developers can work on custom binding handlers for nice CSS3 transition integration and then by C#/Java guys can get their paws wet implementing the data/server functionality without ever treading on each others toes.

I thorughly agree that functional programming concepts are very healthy for a program. Great functional Composability makes reusability and maintainability a dream.

shaydoc··on React, a JavaScript library for building user interfaces
I can see how this might get out of hand quickly.
shaydoc··on Show HN: Phonebook.js, a lightweight API wrapper to clean up your $.ajax soup
I have done something similar in my SPA, amplifyJS provides a nice request abstraction too, however I found it lacked promises.
shaydoc··on I was struck by lightning yesterday—and boy am I sore
Très bien, my shoddy typing, lol...
shaydoc··on I was struck by lightning yesterday—and boy am I sore
Lightning toasted my house in 2007, just arrived home 30 mins after it happened, glad I wasn't in the house given the magnitude of the destruction...TV exploded scrapnel everywhere, ceilings down upstairs and down....but worst of all, dealing with our insurance company for damages...

Can't believe this guy is not the only family member to have been hit, insane!

shaydoc··on Poll: What number would make you say "I am financially independent"?
My family of 4 ( 2 adults, 2 kids) would spend about £24,000 per year, that's Northern Ireland, living fairly well on that too IMHO... I know this because I am fairly analytical about our finances since the two kids arrived, as we had to sacrifice one wage ( stay at home Mom )!
shaydoc··on Poll: What number would make you say "I am financially independent"?
There are some FTSE 100 companies with a 7% dividend, if that's too risky for you, buy a fund.... Have a look at http://www.topyields.nl/ also....
shaydoc··on Poll: What number would make you say "I am financially independent"?
If its good enough for George Soros, is good enough for me :-)
shaydoc··on Poll: What number would make you say "I am financially independent"?
500,000 invested intelligently would give you a yield where you could expect a decent income to live upon, so if you are clever enough that should be enough. Plus it would give you the freedom you wish for, plus a little incentive to do "something" as its not a crazy amount of money....
shaydoc··on Yahoo aquires Tumblr
Has tumblr tumbled ? Shall the cool kids seek a new indie alternative ? Surely this acquisition creates such an opportunity for some Nu upstart ?
shaydoc··on Daily happiness averages using Twitter
Very good, I was considering doing a similar experiment, but possibly grouping happiness by country. And I was also thinking some way of determining what triggered the expression of happiness, you know like , 'I am happy now, I just did a skydive' etc..
shaydoc··on Nkoso: Global crowdfunding platform for education
good luck with this. the good thing and the thing I admire about this and Watsi.org is you are using technology to benefit others.
shaydoc··on The Dependency Inversion Principle in the Wild
Superfluous verbosity as my old chemistry teacher once wrote on my paper :-)
shaydoc··on Nkoso: Global crowdfunding platform for education
Is this the future of charity? The transparency on offer is really good in that you can see exactly how donations are going to help these kids. The concept has obviously been well publicized with watsi.org, and rightly so, its very benevolent.

My question is what are the overheads with this kind of organisation, how do you pay your own bills?

shaydoc··on Yahoo Expands Maternity, Paternity Leave
8 weeks for fathers is very good.
shaydoc··on Twitter said to be testing two-step security in wake of AP hack
I had thought that they would most definitely be thinking of 2 factor authentication.

Couldn't they even achieve this quickly using Twilio to send SMS token codes to users who opt to have 2 factor auth?

shaydoc··on You do not need a DSLR to take nice looking photos, your phone will suffice
I do indeed, I think its hard to look past www.kenrockwell.com

I also recommend the series of digital photography books by Scott kelby, I started with him, was actually this one I found some if very useful: http://www.amazon.co.uk/The-Digital-Photography-Book-Pt/dp/0...

shaydoc··on Stop Designing Fragile Web APIs
I don't think you are making a convincing argument for your point. Most likely it will be a developer interpreting the api and generally speaking they are likely to want some flexibility in how you query a resource.

I would say your proposed suggestion is much more limiting, you have basically removed the query string and changed the name.

So your proposed version returns all the data, in most notorious order, that could be tonne of data. You are going to need query strings for paging and filtering and sorting..this is perfectly good api design.

I would recommend odata.org for a read. I would also recommend apigee.com white paper on good api design.

Also with versioning in mind, you may wish too include api/v1.x/mostwanted

← PreviousPage 4 of 7Next →