Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
what's the difference between C and Objective-C?
Old 04-03-2010, 10:45 AM what's the difference between C and Objective-C?
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 680
Name: Lashtal
Trades: 0
without knowing the answer, i'd imagine Objective-C is a spin-off of C and shares similarities; but with it's own differences (kind of like C in comparison to C++)?
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-03-2010, 10:54 AM Re: what's the difference between C and Objective-C?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://en.wikipedia.org/wiki/Objecti...-C_and_C.2B.2B
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-04-2010, 09:42 AM Re: what's the difference between C and Objective-C?
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 680
Name: Lashtal
Trades: 0
i'd read this you know

but while I reread it, I found this to be the highlight: "Although Objective-C and C++ each employ a mix of both features, Objective-C is decidedly geared toward run-time decisions while C++ is geared toward compile-time decisions."


Can someone give me an example of certain applications that rely on quick run-time decisions, versus quick compile-time decisions?

I would imagine games, with all their extensive libraries should be optimized for compile-time. But what kinds of programs are dependent enough to be focusing Exclusively on run-time? (aside from iPod/iPhone apps)

and, Are these typically smaller applications that tend to focus on run-time as opposed to compile-time?

---

Also, what are the greatest Differences and Similarities between C and Objective-C from a coding standpoint? I would imagine Objective-C shares A LOT of the syntax as found in C.

and, can Objective-C execute assembly line code? (like C and C++)

---


Thank you.
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
Reply With Quote
View Public Profile
 
Old 04-04-2010, 10:40 AM Re: what's the difference between C and Objective-C?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://stackoverflow.com/questions/2...-on-the-iphone
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-24-2010, 03:08 PM Re: what's the difference between C and Objective-C?
Banned

Posts: 7
Name: dolly
Trades: 0
C is an "old" programming language. It is quite low-level, that means it is quite close to assembly and the machine code that actually runs on the processor. It is a procedural language. In a procedural language you focus on solving problems with step by step recipes. Recipes can be reused, this is called a function. As programs grow larger functions will typically be grouped out in separate files based on functionality.

Objective C keeps all aspects of C and allows you to build programs exactly the way you would do a C program if you want.

In addition Objective C adds syntax and semantics that allows for object oriented programming. Object oriented programming differs from procedural programming by focusing on grouping data and methods of manipulating this data in classes.

Usually you will be able to write any program using either C or Objective C, the difference is the approach you take to solve the problem. Some find it easier to think procedural for small problems, but objective oriented design has advantages when it comes to tackling large problems. First of all because it becomes easier to divide the problem into subproblems and submodules that can be developed and tested individually. Secondly because it is easier to reuse your own or other's modules.

As for the problem of remembering everything. For the vast majority of us it is impossible to quickly memorize all aspects of a programming language straight away. You're going to have to keep books and other documentation handy at all times. The best way to learn is to practice. Create small programs to test, learn and understand new things as you go along.
soozen is offline
Reply With Quote
View Public Profile
 
Old 11-28-2010, 09:41 PM Re: what's the difference between C and Objective-C?
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 680
Name: Lashtal
Trades: 0
How difficult would you say it would be (generally speaking) to make the transition from C to Objective-C?

Will a background in C help before breaking into Objective C?
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
Reply With Quote
View Public Profile
 
Old 11-29-2010, 06:39 AM Re: what's the difference between C and Objective-C?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Knowing C will help you with almost any programming language.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to what's the difference between C and Objective-C?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.39267 seconds with 12 queries