Objective-c Server Side

A bit of background: I've been developing apps for two years for Mac and iOS. I really like Objective-c and the Cocoa / Cocoa-Touch framework. I did java and C ++ before I started programming for iOS, and now when I look at these languages, I literally get a headache (the syntax is mostly, but also the lack of classes provided by the Cocoa framework). I think I'm too used to the 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 is my best option. Of course, I don’t want to go with Java, but is there a language similar to Objective-c that I can use that has a framework like Cocoa with classes similar to NSString, NSDictionary, etc.? or better yet, can I even use Objective-c myself in server-side programming?

Edit: I took a look at python, and as far as the syntax goes, I like it. But, of course, this is just syntax, there is more to the language than just syntax ...

Thanks.

+6
source share
3 answers

What is stopping you from writing server applications in Objective-C? Xcode comes with templates for command line applications (select "Foundation" rather than "C" or "Core Foundation").

If the requirement to use OS X on the server is too great, you can choose the Linux / BSD distribution and use GNUstep . Almost all Cocoa text is reproduced (in a delightful open source form!) In the GNUstep project. This is usually as simple as recompiling on your target platform with the zero changes needed for the source code.

+16
source

It looks like a nice little plumbing for the mongoose server:

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

0
source

I agree, try doing this in objective-c. But if you are looking for a similar language that also has rich, widely used framework designs, take a look at Ruby. The syntax is completely different, but the object model is quite similar and actually does not feel this far. The Ruby on Rails framework is also very rich, with a good MVC approach and good documentation.

But, nevertheless, objective-c would be awesome.

0
source

Source: https://habr.com/ru/post/890314/


All Articles