Author Topic: programming knowledge, java and objective c?  (Read 1559 times)

Offline 0Summ1n

  • Hero Member
  • ****
  • Posts: 122
  • Country: br
  • whited00r user, developer/Hacker
    • View Profile
    • AEOS 7 (ios 7 on 3.x)
  • Device: iPhone 3G
  • My Computer: Windows
programming knowledge, java and objective c?
« on: September 29, 2013, 11:15:43 PM »
hello people, im back, any ways i have been participating in java classes at my school, i already know how to make a calculator in cmd/ terminal by making class files, i know some c too, will these help me learn obj c?
AEOS 7, ios 7 on your old idevice see this link for more http://adf.ly/SB1mO

Offline AnimateDread

  • SuperHero Member
  • *****
  • Posts: 741
  • Country: ca
  • Learning developer
    • View Profile
  • Device: iPod Touch 1G
  • My Computer: Windows
Re: programming knowledge, java and objective c?
« Reply #1 on: September 30, 2013, 01:12:09 AM »
hmm, I don`t know if java will help you :O

do you understand such code

Code: [Select]
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:appName message:message delegate:self cancelButtonTitle:@"Cool" otherButtonTitles:nil];
[alert show];
[alert release];
*alert is making an instance of UIAlertView, wich is a popup on the device.   [[UIAlertView alloc] is allocating our object (alert) in the RAM, other stuff is self explanatory.

[alert show] make the popup appear, release is memory management :p
Soutient en Francais ici

Offline Andy

  • A Mod. I think.
  • Global Moderator
  • SuperHero Member
  • *****
  • Posts: 1221
  • Country: ca
  • Whited00r 7
    • View Profile
    • Whited00r
  • Device: iPhone 3G
  • My Computer: Mac
Re: programming knowledge, java and objective c?
« Reply #2 on: September 30, 2013, 01:26:51 AM »
hmm, I don`t know if java will help you :O

Well. Learning most programming language will help you in other ones too. It just depends on how much it helps.

Pretty much if you know Java, you'll have the basic as Java "sort of" inherits C and so does Objective-C
Also, if you know Java, you'll have the understanding of coding concepts and will make learning new ones easier ;)
Oh yes. Hi.
I see you've noticed this Signature. Well, all I can tell you is that there's nothing to see here.
Yes, there is nothing interesting here. Just keep scrolling and we'll pretend nothing happened.

Offline AnimateDread

  • SuperHero Member
  • *****
  • Posts: 741
  • Country: ca
  • Learning developer
    • View Profile
  • Device: iPod Touch 1G
  • My Computer: Windows
Re: programming knowledge, java and objective c?
« Reply #3 on: September 30, 2013, 01:31:33 AM »
Well. Learning most programming language will help you in other ones too. It just depends on how much it helps.

Pretty much if you know Java, you'll have the basic as Java "sort of" inherits C and so does Objective-C
Also, if you know Java, you'll have the understanding of coding concepts and will make learning new ones easier ;)
You might be right sir! I cannot judge as I jumped into shell with bcooperizcool and then into objective-c :p

hello people, im back, any ways i have been participating in java classes at my school, i already know how to make a calculator in cmd/ terminal by making class files, i know some c too, will these help me learn obj c?
Me and other people can help you on the forum, but you will find most stuff at http://stackoverflow.com/
Soutient en Francais ici

Offline 0Summ1n

  • Hero Member
  • ****
  • Posts: 122
  • Country: br
  • whited00r user, developer/Hacker
    • View Profile
    • AEOS 7 (ios 7 on 3.x)
  • Device: iPhone 3G
  • My Computer: Windows
Re: programming knowledge, java and objective c?
« Reply #4 on: October 04, 2013, 04:36:59 PM »
hmm, I don`t know if java will help you :O

do you understand such code

Code: [Select]
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:appName message:message delegate:self cancelButtonTitle:@"Cool" otherButtonTitles:nil];
[alert show];
[alert release];
*alert is making an instance of UIAlertView, wich is a popup on the device.   [[UIAlertView alloc] is allocating our object (alert) in the RAM, other stuff is self explanatory.

[alert show] make the popup appear, release is memory management :p
i kind of understanded what you did, you declared a variable and named it alert, the rest is what you said i guess

in java i guess it would be

public class random {
static void alert();
    System.out.println("popup?");
Public static void main(String[] args){
    alert();
    }
}

*reminder* this is the way i know how to do it, other professional methods might be smaller.

« Last Edit: October 04, 2013, 04:41:05 PM by 0Summ1n »
AEOS 7, ios 7 on your old idevice see this link for more http://adf.ly/SB1mO

Offline Andy

  • A Mod. I think.
  • Global Moderator
  • SuperHero Member
  • *****
  • Posts: 1221
  • Country: ca
  • Whited00r 7
    • View Profile
    • Whited00r
  • Device: iPhone 3G
  • My Computer: Mac
Re: programming knowledge, java and objective c?
« Reply #5 on: October 05, 2013, 03:16:37 PM »

in java i guess it would be

public class random {
static void alert();
    System.out.println("popup?");
Public static void main(String[] args){
    alert();
    }
}

*reminder* this is the way i know how to do it, other professional methods might be smaller.

I don't even think that is a popup. All your code does is print a line: "popup?" In the terminal.
The code you have is equivalent to NSString in Obj-C and not UIAlert (it's also printf in C)

Also, I'd recommend you declaring the items on the bottom using Top-Down design. (Code at the top. Declared classes on the bottom)
Much cleaner to read and work with ;)
Oh yes. Hi.
I see you've noticed this Signature. Well, all I can tell you is that there's nothing to see here.
Yes, there is nothing interesting here. Just keep scrolling and we'll pretend nothing happened.

Offline JustinCase

  • An Agent of the System...
  • Global Moderator
  • SuperHero Member
  • *****
  • Posts: 3136
  • Country: kp
  • Here since WD 3.x
    • View Profile
    • Whited00rDev
  • Device: iPhone 2G
  • My Computer: Windows
Re: programming knowledge, java and objective c?
« Reply #6 on: October 06, 2013, 05:11:09 PM »
There's this guy named thenewboston who does amazing tutorials. There easy to follow any in-deph. I suggest you check them out!

Objective-C
[youtube]http://www.youtube.com/watch?v=1Xqn5IHbusA[/youtube]

Java
[youtube]http://www.youtube.com/watch?v=Hl-zzrqQoSE[/youtube]
I get on every now and then to check up
Go ahead and download Whited00r 8 BETA if you haven't yet: http://goo.gl/AFZIUT <------