| View previous topic :: View next topic |
| Author |
Message |
zixnub n00b


Joined: 27 Dec 2007 Posts: 64 Location: Brasschaat, Belgium
|
Posted: Mon Jul 02, 2012 10:43 am Post subject: |
|
|
| 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 |
|
 |
ultraincognito Guru


Joined: 03 Jun 2011 Posts: 346 Location: Ukraine
|
Posted: Mon Jul 02, 2012 10:48 am Post subject: |
|
|
| zixnub wrote: | | the google have all the answers |
Then I can not to google. |
|
| Back to top |
|
 |
disi Veteran


Joined: 28 Nov 2003 Posts: 1351 Location: Out There ...
|
Posted: Mon Jul 02, 2012 10:51 am Post subject: |
|
|
| 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 |
|
 |
ak47gen n00b

Joined: 15 Feb 2007 Posts: 36
|
Posted: Mon Jul 02, 2012 11:00 am Post subject: |
|
|
| 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 |
|
 |
charly n00b


Joined: 05 Apr 2011 Posts: 14
|
Posted: Mon Jul 02, 2012 11:02 am Post subject: |
|
|
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 |
|
 |
zixnub n00b


Joined: 27 Dec 2007 Posts: 64 Location: Brasschaat, Belgium
|
Posted: Mon Jul 02, 2012 11:39 am Post subject: |
|
|
| 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 |
|
 |
charly n00b


Joined: 05 Apr 2011 Posts: 14
|
Posted: Mon Jul 02, 2012 11:44 am Post subject: |
|
|
| 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 |
|
 |
ultraincognito Guru


Joined: 03 Jun 2011 Posts: 346 Location: Ukraine
|
Posted: Mon Jul 02, 2012 12:11 pm Post subject: |
|
|
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 |
|
 |
charly n00b


Joined: 05 Apr 2011 Posts: 14
|
Posted: Mon Jul 02, 2012 12:18 pm Post subject: |
|
|
| 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 |
|
 |
szczerb Veteran

Joined: 24 Feb 2007 Posts: 1626 Location: Poland => Lodz
|
Posted: Mon Jul 02, 2012 1:10 pm Post subject: |
|
|
| 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 |
|
 |
dmitchell Veteran


Joined: 17 May 2003 Posts: 1154 Location: Austin, Texas
|
Posted: Mon Jul 02, 2012 3:19 pm Post subject: |
|
|
| 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 |
|
 |
jonnevers Veteran


Joined: 02 Jan 2003 Posts: 1585 Location: Gentoo64 land
|
Posted: Mon Jul 02, 2012 3:28 pm Post subject: |
|
|
| charly wrote: | | Only idiots make things out of java |
idiotically false. |
|
| Back to top |
|
 |
charly n00b


Joined: 05 Apr 2011 Posts: 14
|
Posted: Mon Jul 02, 2012 3:32 pm Post subject: |
|
|
| 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 |
|
 |
ultraincognito Guru


Joined: 03 Jun 2011 Posts: 346 Location: Ukraine
|
Posted: Wed Jul 18, 2012 8:47 am Post subject: |
|
|
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 |
|
 |
petrjanda Veteran


Joined: 05 Sep 2003 Posts: 1557 Location: Brno, Czech Republic
|
Posted: Wed Jul 18, 2012 10:41 am Post subject: |
|
|
| 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 |
|
 |
disi Veteran


Joined: 28 Nov 2003 Posts: 1351 Location: Out There ...
|
Posted: Wed Jul 18, 2012 10:54 am Post subject: |
|
|
| 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
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.?!?  _________________ Gentoo on Uptime Project - Larry is a cow |
|
| Back to top |
|
 |
petrjanda Veteran


Joined: 05 Sep 2003 Posts: 1557 Location: Brno, Czech Republic
|
Posted: Wed Jul 18, 2012 11:18 am Post subject: |
|
|
| disi wrote: |
Only constants and class names should start with capital letters
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 |
|
 |
mcgruff Tux's lil' helper


Joined: 28 Dec 2004 Posts: 137
|
Posted: Wed Jul 18, 2012 1:06 pm Post subject: |
|
|
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? _________________ the underlay overlay |
|
| Back to top |
|
 |
zixnub n00b


Joined: 27 Dec 2007 Posts: 64 Location: Brasschaat, Belgium
|
Posted: Wed Jul 18, 2012 6:55 pm Post subject: |
|
|
| 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 |
|
 |
zixnub n00b


Joined: 27 Dec 2007 Posts: 64 Location: Brasschaat, Belgium
|
|
| Back to top |
|
 |
mcgruff Tux's lil' helper


Joined: 28 Dec 2004 Posts: 137
|
|
| Back to top |
|
 |
dmitchell Veteran


Joined: 17 May 2003 Posts: 1154 Location: Austin, Texas
|
Posted: Thu Jul 19, 2012 1:52 am Post subject: |
|
|
| 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 |
|
 |
doubleagent Guru


Joined: 15 Apr 2005 Posts: 444 Location: 127.0.0.1
|
Posted: Thu Jul 19, 2012 3:19 pm Post subject: |
|
|
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 |
|
 |
Shadow Skill Veteran

Joined: 04 Dec 2004 Posts: 1023
|
Posted: Fri Jul 20, 2012 4:35 am Post subject: |
|
|
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 |
|
 |
ultraincognito Guru


Joined: 03 Jun 2011 Posts: 346 Location: Ukraine
|
Posted: Thu Nov 08, 2012 8:18 pm Post subject: Re: Which is programming language most perspective? |
|
|
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 |
|
 |
|