1,269 karma · joined Jun 9, 2008 (18y ago) · 356 submissions
comment 14y ago · link · parent
Sure the REPL stuff is neat, but I would position my UI elements correctly in interface builder to begin with. I'm also not keen on typing out the code to assign properties that were done with the GUI before. There doesn't seem to be any support for Storyboards which are awesome as segue transitions save a ton of code that you'd normally have to type. Storyboards provide a visual layout and ease of inserting steps in a flow or changing connections.
Once you have proficiency in Objective-C your coding method in XCode really consists of typing 3-4 characters, hitting tab, a couple more characters, a variable name and so forth. Code completion rocks and works quite well in particular with Objective-C. I would expect all of the examples given there would be many fewer keystrokes in Objective-C than Ruby.
I find the side by side code samples somewhat humorous. I expect to see something like coffeescript to javascript which is visually obvious which one is more concise. Instead I see roughly the same code expressed differently. Sure Objective-C turns people off who don't know it, but once you do it's really not a big deal.
Xcode also gives you great tools for refactoring code that due to the nature of Ruby simply are not possible. This is pretty important for large projects.
The tough part of making non-trivial IOS apps is learning the API and the best practices in using it. That can take months or even years.
comment 14y ago · link · parent
comment 14y ago · link · parent
I've never heard a manager or developer say: If only we had someone that could write an algorithm to solve this travelling sales person problem we'd be saved! No. Inefficient algorithms are often good enough, typical programmers muddle through and yes pick up a textbook or reference wikipedia once in a while.
Modern software is a complex tangle of standards, protocols, and technologies. To build a typical example modern web application you're going to need to know linux administration, database administration, some server side language (ruby), a web framework in that language (ruby on rails), javascript (perhaps coffeescript), html, css (less), message queues (redis, beanstalk, etc), caches (varnish), loadbalancing proxies (haproxy), SSL termination, web application firewalls, network firewalls, providing JSON REST API's, Mobile optimization, real time communication (socket.io), third party API integration, Amazon S3 management and scaling. Etc.
All of this lifts the benchmark for what is an acceptable web app. The list goes on, and new bits keep getting added every year along with expectations.
It's bloody hard to find people that can deal with a majority of the above technologies. If you find someone that can do the full stack they're gold.
You want to be valuable? Prove that you're someone that can develop within modern software stacks and more importantly adapt as things change. Because change is coming, the music hasn't stopped and we're in for one hell of a ride.
comment 14y ago · link · parent
According to his charts most of Twitter's page is JS/CSS and presumably set to heavily cache. Very little is data. Once you've done the first page load Twitter's pages will load quite fast and efficiently. While quite a lot of JS, this is good design, not bad.
comment 14y ago · link · parent
comment 14y ago · link · parent
http://greenbytes.de/tech/webdav/draft-dusseault-http-patch-...
comment 14y ago · link · parent
- Use HTTP verbs: GET to retrieve one or more objects, POST to create a new object, PUT to update an existing object, DELETE to remove an object.
- Address objects by collection and by individual object: /users/#{user_id} is a specific user you can PUT, GET or DELETE. /users is where you POST to in order to create a new user.
- Use HTTP codes to return the result back to the client (ie HTTP 200 when you get an object, 201 when you successfully POST an object, 404 when you try to GET/UPDATE/DELETE an object that doesn't exist).
- I find it good form to return objects in JSON with the type of object at the top of the data structure, ie {:users => [ #array of users here ]} or {:user => { #single user }}
- Use OAuth or some sort of token system for authenticating the calls, don't use HTTP Auth.
You can get pretty anal about things but if you follow the above you'll have a cleaner API than 90% of the API's out there.
comment 14y ago · link · parent
- Doesn't use HTTP verbs (GET, PUT, POST, DELETE) to retrieve, modify, create and remove objects.
- Doesn't use a restful url path to action on (ie. GET /users/#{user_id} to get a specific user by id, POST /users to create a new user).
- Doesn't use HTTP codes to return results (ie. HTTP 200 for normal operations, 201 for created, 40x for error conditions).
comment 14y ago · link · parent
I've written a number of non-trivial IOS apps that are heavily server based. I've done both the server side (Ruby Sinatra API App, MongoDB, Varnish) and the client side (Obj-C naturally) and consider myself equally proficient in both.
The client generally takes much longer to write and debug than the server due to all the little issues with having a smooth, non blocking UI, network availability, juggling data and managing resources that you have with the client app. Not to mention any custom UI controls you make.
comment 14y ago · link · parent
Having lived in a new and quite upscale (rent was 8K RMB/mo, apartment sold for $500k USD) Chinese apartment in Beijing for a couple years and visited many others I can attest that the build quality is absolutely awful. The stuff they're building will not last. Buildings in China are built for instant gratification using the lowest skilled labour available with fit and finishings that only look good from a distance.
This is why PPP GDP adjustment is such BS. The argument goes that you have a skyscraper in Shanghai and one in New York you have a skyscraper's unit of wealth in both places, though the one in Shanghai costs half as much to build. Therefore you double the GDP gor China (figures for illustration) in order to account for this purchasing parity issue. Problem is, that the skyscraper in Shanghai will last a fraction of time that the one in New York does. China is the land of McMansion skyscrapers.
comment 14y ago · link · parent
I know that for the 40 or so domains I transferred off of Godaddy none of them used Godaddy's nameservers. Indeed it's ill advised to use your registrars nameservers.
I would encourage you to take this analysis down less it get picked up by conventional media.