Are there any generally-accepted coding standards (naming, casting etc) that apply specifically to iPhone/Cocoa/Objective-C? I know Microsoft has published similar standards as they relate to .Net and C# but haven't run across anything related to the iPhone world.
Introduction to Coding Guidelines for Cocoa
Enjoy!
Also take a look at Cocoa Style for Objective-C from Cocoa Dev Central
Part I
Part II
Google also has an Objective-C style guide
The Code Commandments: Best Practices for Objective-C Coding is a style guide I can happily endorse.
Here are two more Objective-C style guides:
GitHub
NY Times
Related
I know that there are a lot of patterns like MVC, MVP, MVVP etc, I don’t want to discuss which is better here (it’s prohibited by StackOverflow’s rules), I just want to find out Apple’s latest vision on that patterns, including Swift and protocols.
I want to understand what operations Apple uses itself (e.g. in their own apps) in ViewController, what in Model and how they are splitting code.
I have found only very old documents on Apple’s web about Cocoa MVC, is there any new documents with Swift examples?
Where I can to get modern Apple’s pattern vision application examples? I don’t want sample «dirty» code, I want to find out sample finished application with correct coding patterns.
I'd suggest to take a look at the latest WWDC videos, namely Protocol and Value Oriented Programming in UIKit Apps
What they show there is reminiscent of Model-View-ViewModel (MVVM) approach. Their controller models are basically immutable view models.
It is hard to give a definitive answer without being affiliated with Apple. However, one may argue that Apple still promotes MVC incorporating Protocol-Oriented Programming.
I am using Core Plot for a little App I am programming at the moment and I was wondering if there are any good looking examples or resources. With good looking I don't mean the google docs Example App ;)
Core Plot includes a number of example apps that demonstrate various features. There is also wiki page on the Core Plot site with links to many apps that use it.
I am not sure that what are you looking for as you have not cleared your question. But i am telling you this link: http://www.johnwordsworth.com/2011/10/adding-charts-to-your-iphone-ipad-app-using-core-plot/ which certainly will help you.
What kinds of iphone functions can be over rided and how can i find and look at these functions? Or where can i look at them?
You can use class-dump-z to dump the class headers from a binary. For example, you could class dump the headers from SpringBoard to view what functions you can hook.
I recommend using Theos to write your tweaks. It's a really nice platform that is easy to use, and is also well documented.
iphonedevwiki.net is a good wiki for all the unofficial development information.
Hope this was of some use!
Josh
Theos: http://iphonedevwiki.net/index.php/Theos/Getting_Started
class-dump-z: http://code.google.com/p/networkpx/wiki/class_dump_z
I'm studing Perl language. I think programming a chatbot would be a funny way of studing that language and learn it.
The description of the chatbot I am interested in can be found here.
Does anyone know any manual or website especially focused on programming chatbot in Perl language?
Thank you!
See http://poe.perl.org/?POE_Cookbook - simple bot is described here: http://poe.perl.org/?POE_Cookbook/IRC_Bots
Documentation for Bot::BasicBot, which is a wrapper around POE::Component::IRC. http://www.drdobbs.com/web-development/184416221
Source of famous bot GumbyBrain, which of course uses POE::Component::IRC and Megahal library. Megahal library uses Markov chains to reply to messages.
Don't use Net::IRC - it is not supported anymore.
You can use Chatbot::Eliza and RiveScript for inspiration.
Openclassifier on github is an opensource and has AI implementations, but its in Java though.
Still you can refer it to understand the implementations for chatbot. The reason I am referring this is, that it is a very simplified implementation, without any complex algorithms or datastructures.
You simply copypaste your data and the chatbot is operational with that knowledge. You can refer to my blog over this on below link:
http://miracleclassifier.blogspot.com/2018/02/artificial-intelligent-chatbot-you-can.html
Hope this helps.
Have been searching for experiences on TDD with Objective-C and iOS development.
Previous post about "string calculator"-kata in Objective-C was useful (thanks).
But it would be nice to learn even more fluent iPhone-TDD.
Do you have some experience of how to use UISpec (based on Rspec), iCuke (based on cucumber) or similar tools?
And if you also have got the flow going with autotesting (autoiphonetest.rb) like Paul did in his his blog, it would be very interesting feedback.
Here is a good post: Test Driven Development in Objective-C with MacRuby
I found the following screencast pretty useful http://vimeo.com/9394596 to get started.
Perhaps this helps: http://pragprog.com/magazines/2010-07/tdd-on-iphone-diy