Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Which is programming language most perspective?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message
zixnub
n00b
n00b


Joined: 27 Dec 2007
Posts: 66
Location: Brasschaat, Belgium

PostPosted: Mon Jul 02, 2012 10:43 am    Post subject: Reply with quote

ultraincognito wrote:
Learning the java, I haven't found how to import inside any class. Is it possible before first class only? In the Python it's possible in any swathe of code. Is the Python better that the Java??


the google have all the answers
_________________
http://trinity.netcat.be
http://code.google.com/p/ewm
Back to top
View user's profile Send private message
ultraincognito
Guru
Guru


Joined: 03 Jun 2011
Posts: 346
Location: Ukraine

PostPosted: Mon Jul 02, 2012 10:48 am    Post subject: Reply with quote

zixnub wrote:
the google have all the answers

Then I can not to google.
Back to top
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Mon Jul 02, 2012 10:51 am    Post subject: Reply with quote

ultraincognito wrote:
Learning the java, I haven't found how to import inside any class. Is it possible before first class only? In the Python it's possible in any swathe of code. Is the Python better that the Java??


I don't know much about Python... the import statement has to be the first statement in a class (in Java). Where you can use wildcards and it does only build used classes of the library during compile time.

Do you know what you want to write yet? e.g. Applets and programs work a little different, use different methods to construct objects and have access to different libraries.
_________________
Gentoo on Uptime Project - Larry is a cow
Back to top
View user's profile Send private message
ak47gen
n00b
n00b


Joined: 15 Feb 2007
Posts: 37

PostPosted: Mon Jul 02, 2012 11:00 am    Post subject: Reply with quote

Programming is about not trying to reinvent the wheel. That is why java is viewed as one of the best because it has so much power on the OOP side. As for a other languages there are ones that create more efficient output and there are some that make it easier to create (easier syntax). As an bosses standpoint java is very productive since most of the stuff you can grab from other classes, which where already created and distributed for free, without doing any work.
Back to top
View user's profile Send private message
charly
n00b
n00b


Joined: 05 Apr 2011
Posts: 14

PostPosted: Mon Jul 02, 2012 11:02 am    Post subject: Reply with quote

Visual Basic
_________________
"Isn't it enough to see that a garden is beautiful without having to believe that there are fairies at the bottom of it too?" - Douglas Adams
Back to top
View user's profile Send private message
zixnub
n00b
n00b


Joined: 27 Dec 2007
Posts: 66
Location: Brasschaat, Belgium

PostPosted: Mon Jul 02, 2012 11:39 am    Post subject: Reply with quote

ultraincognito wrote:
zixnub wrote:
the google have all the answers

Then I can not to google.


Python is an at rumtime interpreted language where the notion of classes, objects, functions and basically everything is build around the concept of key-value (map). the import statement can thus appear anywhere in the code which is basically to say 'now read the definition of class/whatever' because I'm going to use it.

Java is a bytecode compiled language where every class is defined in its own file. When a class is loaded at runtime the classloader needs to know what classes are needed and load those first if needed before loading the actual class. That's just how the language is designed.
_________________
http://trinity.netcat.be
http://code.google.com/p/ewm
Back to top
View user's profile Send private message
charly
n00b
n00b


Joined: 05 Apr 2011
Posts: 14

PostPosted: Mon Jul 02, 2012 11:44 am    Post subject: Reply with quote

ultraincognito wrote:
zixnub wrote:
the google have all the answers

Then I can not to google.
Only idiots make things out of java
_________________
"Isn't it enough to see that a garden is beautiful without having to believe that there are fairies at the bottom of it too?" - Douglas Adams
Back to top
View user's profile Send private message
ultraincognito
Guru
Guru


Joined: 03 Jun 2011
Posts: 346
Location: Ukraine

PostPosted: Mon Jul 02, 2012 12:11 pm    Post subject: Reply with quote

I'm beginning to understand... this java limitation ensures that a senior architect can fast see libraries that developers point on the beginning before a class. So he easy can see that developers don't use hacks from some libraries, for example, if the developer doesn't import the java.io.File then he cannot do manipulations with files. Then the Java are good for projects with many developers. Am I right?
charly wrote:
Visual Basic

But it isn't supported in the Linux.
Back to top
View user's profile Send private message
charly
n00b
n00b


Joined: 05 Apr 2011
Posts: 14

PostPosted: Mon Jul 02, 2012 12:18 pm    Post subject: Reply with quote

ultraincognito wrote:
I'm beginning to understand... this java limitation ensures that a senior architect can fast see libraries that developers point on the beginning before a class. So he easy can see that developers don't use hacks from some libraries, for example, if the developer doesn't import the java.io.File then he cannot do manipulations with files. Then the Java are good for projects with many developers. Am I right?
charly wrote:
Visual Basic

But it isn't supported in the Linux.

I was being саркастичний
_________________
"Isn't it enough to see that a garden is beautiful without having to believe that there are fairies at the bottom of it too?" - Douglas Adams
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1634
Location: Poland => Lodz

PostPosted: Mon Jul 02, 2012 1:10 pm    Post subject: Reply with quote

ultraincognito wrote:
I'm beginning to understand... this java limitation ensures that a senior architect can fast see libraries that developers point on the beginning before a class. So he easy can see that developers don't use hacks from some libraries, for example, if the developer doesn't import the java.io.File then he cannot do manipulations with files. Then the Java are good for projects with many developers. Am I right?


Absolutely not. This just ensures that your code is not an ineligible mess. Think of it as of Python forcing you to indent.
Back to top
View user's profile Send private message
dmitchell
Veteran
Veteran


Joined: 17 May 2003
Posts: 1159
Location: Austin, Texas

PostPosted: Mon Jul 02, 2012 3:19 pm    Post subject: Reply with quote

disi wrote:
this says it all :lol:

Quite funny but the C++ panel is out of date. Rvalue references and move semantics eliminate unnecessary copies.
_________________
Your argument is invalid.
Back to top
View user's profile Send private message
jonnevers
Veteran
Veteran


Joined: 02 Jan 2003
Posts: 1593
Location: Gentoo64 land

PostPosted: Mon Jul 02, 2012 3:28 pm    Post subject: Reply with quote

charly wrote:
Only idiots make things out of java

idiotically false.
Back to top
View user's profile Send private message
charly
n00b
n00b


Joined: 05 Apr 2011
Posts: 14

PostPosted: Mon Jul 02, 2012 3:32 pm    Post subject: Reply with quote

jonnevers wrote:
charly wrote:
Only idiots make things out of java

idiotically false.

The idea was to get zixnub to say something because I had a look at his wm and it's in java but he's disappeared :(
_________________
"Isn't it enough to see that a garden is beautiful without having to believe that there are fairies at the bottom of it too?" - Douglas Adams
Back to top
View user's profile Send private message
ultraincognito
Guru
Guru


Joined: 03 Jun 2011
Posts: 346
Location: Ukraine

PostPosted: Wed Jul 18, 2012 8:47 am    Post subject: Reply with quote

Thank for the answers.

ultraincognito wrote:
Learning the java, I haven't found how to import inside any class. Is it possible before first class only? In the Python it's possible in any swathe of code. Is the Python better that the Java??

Already I've understood that the import isn't generally necessary operation in the Java. I had to read more books.

The Java is beautiful language. And I'm happy that I choose it.
Of course, I will be more happy if I've found the job via the Java.

How do you think, what must I learn after the Java Core? Hibernate, Spring or JavaEE? What would be better?
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Wed Jul 18, 2012 10:41 am    Post subject: Reply with quote

ultraincognito wrote:

The Java is beautiful language.


Boy Im glad that's an individual perspective.

public static void CamelFuckingCase
public int CantFuckingReadWhatImTyping
public void HowManyGodDamnTimesDoIHaveToSayPublic

Individual perspective...

For me this is considered "beautiful":

std::sort(data.begin(), data.end(), predicate)

Either use a predicate function or functor or implement an operator<
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Wed Jul 18, 2012 10:54 am    Post subject: Reply with quote

petrjanda wrote:
ultraincognito wrote:

The Java is beautiful language.


Boy Im glad that's an individual perspective.

public static void CamelFuckingCase
public int CantFuckingReadWhatImTyping
public void HowManyGodDamnTimesDoIHaveToSayPublic

Individual perspective...

For me this is considered "beautiful":

std::sort(data.begin(), data.end(), predicate)

Either use a predicate function or functor or implement an operator<


Only constants and class names should start with capital letters :P

Most python code I have seen, have variables and methods like:
def a(b):
def ab(b,c):
def abc(d,t):

How often do I have to say def here and how do I know what 'a' is or 'abc' etc.?!? :D
_________________
Gentoo on Uptime Project - Larry is a cow
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Wed Jul 18, 2012 11:18 am    Post subject: Reply with quote

disi wrote:


Only constants and class names should start with capital letters :P

Most python code I have seen, have variables and methods like:
def a(b):
def ab(b,c):
def abc(d,t):


It seems creators of many languages never heard of the term Don't Repeat Yourself.

Dynamic languages are whole another clusterfuck.

How can you write a solid interface when your functions can take anything and everything?( just like a cheap prostitute)
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
McGruff
Tux's lil' helper
Tux's lil' helper


Joined: 28 Dec 2004
Posts: 147

PostPosted: Wed Jul 18, 2012 1:06 pm    Post subject: Reply with quote

When you visit a friend's house how often do you climb in through the windows, and how often to you enter via a door?
Back to top
View user's profile Send private message
zixnub
n00b
n00b


Joined: 27 Dec 2007
Posts: 66
Location: Brasschaat, Belgium

PostPosted: Wed Jul 18, 2012 6:55 pm    Post subject: Reply with quote

charly wrote:
jonnevers wrote:
charly wrote:
Only idiots make things out of java

idiotically false.

The idea was to get zixnub to say something because I had a look at his wm and it's in java but he's disappeared :(

I'm sorry, I was looking at android.



Actually I wasn't but I thought that was a clever thing to say. Instead I was bussy refactoring my wm (current head in master doesn't even build properly) and get the bindings for Xcb automatically generated by swig (swig, not swing). Talking about swig, there is just NO java native autowrapper (except for swig) that can produce sane code (for xcb), let alone code, let alone run without blowing up and crashing. I was also bussy getting a decent jvm running on my raspberry pi.
_________________
http://trinity.netcat.be
http://code.google.com/p/ewm


Last edited by zixnub on Wed Jul 18, 2012 7:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
zixnub
n00b
n00b


Joined: 27 Dec 2007
Posts: 66
Location: Brasschaat, Belgium

PostPosted: Wed Jul 18, 2012 7:00 pm    Post subject: Reply with quote

mcgruff wrote:
When you visit a friend's house how often do you climb in through the windows, and how often to you enter via a door?


I often enter through the door and exit through the window.
_________________
http://trinity.netcat.be
http://code.google.com/p/ewm
Back to top
View user's profile Send private message
McGruff
Tux's lil' helper
Tux's lil' helper


Joined: 28 Dec 2004
Posts: 147

PostPosted: Wed Jul 18, 2012 11:58 pm    Post subject: Reply with quote

You're such a heartbreaker.
Back to top
View user's profile Send private message
dmitchell
Veteran
Veteran


Joined: 17 May 2003
Posts: 1159
Location: Austin, Texas

PostPosted: Thu Jul 19, 2012 1:52 am    Post subject: Reply with quote

ultraincognito wrote:
The Java is beautiful language. And I'm happy that I choose it.

No, it isn't beautiful. Someday you'll see that. But I'm glad you're happy. :)
_________________
Your argument is invalid.
Back to top
View user's profile Send private message
doubleagent
Guru
Guru


Joined: 15 Apr 2005
Posts: 444
Location: 127.0.0.1

PostPosted: Thu Jul 19, 2012 3:19 pm    Post subject: Reply with quote

It's more difficult than you think to get an entry level java position, but web development positions are abundant. I'd encourage you to learn coffeescript and apply for web dev jobs, playing up your coffeescript experience as javascript experience.

It _probably_ won't rot your brain, which is more than I can say for Java, _and_ there will be more viable job opportunities.
_________________
shickapooka wrote:
i think they programmed [otw] based on a right-wing jewish-nigger-nazi, his gay, retarded, left-wing love slave with webbed feet, and their three headed cat that poops uncontrollably. the cat is also an apple fanboy
Back to top
View user's profile Send private message
Shadow Skill
Veteran
Veteran


Joined: 04 Dec 2004
Posts: 1023

PostPosted: Fri Jul 20, 2012 4:35 am    Post subject: Reply with quote

Java a beautiful language....BWHAHAHAHHAHAHAHA!!
_________________
Ware wa mutekinari.
Wa ga kage waza ni kanau mono nashi.
Wa ga ichigeki wa mutekinari.

"First there was nothing, so the lord gave us light. There was still nothing, but at least you could see it."
Back to top
View user's profile Send private message
ultraincognito
Guru
Guru


Joined: 03 Jun 2011
Posts: 346
Location: Ukraine

PostPosted: Thu Nov 08, 2012 8:18 pm    Post subject: Re: Which is programming language most perspective? Reply with quote

Hi, guys. OP is back.
Dr.Willy wrote:
Java can get you a job anywhere in business middleware development, mobile devices (Android), Web dev and other "high level" programming..

Yes, you was right. I was learning the Java for 3 months and now I work as a Java developer (the middleware development). Today I've gotten my first salary.
Thank you all for an attention. The Java won in this topic.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Off the Wall All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum