开发者

Objective-c Server Side

开发者 https://www.devze.com 2023-03-12 21:08 出处:网络
A bit of background: I have been developing apps for the past 2 years for Mac and iOS. I really like Objective-c and Cocoa/Cocoa-Touch framework. I did java and c++ before I started programing for iOS

A bit of background: I have been developing apps for the past 2 years for Mac and iOS. I really like Objective-c and Cocoa/Cocoa-Touch framework. I did java and c++ before I started programing for iOS and now when I look at these languages i literally get a headache (The syntax mainly but also lack of classes provided by Cocoa framework). I think I have become too used to Objective-c [] syntax and the rich Cocoa-Framework (Things like NSDictionary, NSPredicate, NSString....)

Now: I need to do some server side programming. I was wondering what's my best option. I certainly don't want to go with Java, but is there a language that is closely like Objective-C that I can use which has a framework like Cocoa with classes similar to NSString, NSDictionary and such...? or better yet, can I even use Objec开发者_如何学运维tive-C itself in server side programming?

Edit: I took a look at python, and as far as syntax goes, i like it. But of course, that's just syntax, there's ALOT more to a language than just syntax...

Thanks.


What's stopping you from writing server-side applications in Objective-C? Xcode comes with templates for command-line applications (choose 'Foundation' rather than 'C' or 'Core Foundation').

If the requirement of using OS X on the server is too much, you can opt for a Linux/BSD distribution and use GNUstep. Almost the entirety of Cocoa is reproduced (in delightful open-source form!) in the GNUstep project. It's usually as simple as recompiling on your target platform with zero changes required to the source code.


This looks like a nice little bit of "servlet" plumbing for mongoose server:

http://www.crocodella.com.br/2011/06/java-style-servlets-in-obj-c-using-mongoose-server/


I concur, try doing it in objective-c But if you are looking for a similar language that also has rich wen development frameworks widely used, take a look at Ruby. The syntax is quite different but the object model is fairly similar and won't actually feel that far away. The framework Ruby on Rails is also a very rich one with a nice MVC approach and good documentation.

But still, objective-c would be awesome.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号