Συζητήσεις για γλώσσες προγραμματισμού και θέματα σχετικά με προγραμματισμό.
-
Stayrakas
- Mbyte level

- Posts: 587
- Joined: Mon Sep 28, 2009 7:36 pm
- Academic status: N>4
- Gender: ♂
- Location: StoneCity @ Athens
Post
by Stayrakas » Wed Dec 14, 2011 2:08 pm
Λες τωρα που περασαν 3 χρονια και εχουν φυγει οι παλιοι , με τη νεα γενια να εχουν αλλαξει τα πραματα?
One vote for ποτε απο μενα

Three Rings for the Elven-kings under the sky,Seven for the Dwarf-lords in their halls of stone,Nine for Mortal Men doomed to die,
One for the Dark Lord on his dark throne,In the Land of Mordor where the Shadows lie.
One Ring to rule them all, One Ring to find them,One Ring to bring them all and in the darkness bind them
In the Land of Mordor where the Shadows lie.
-
Gewitter
- Venus Former Team Member
- Posts: 1609
- Joined: Mon Jan 19, 2009 11:42 am
- Academic status: PhD
- Gender: ♀
Post
by Gewitter » Wed Dec 14, 2011 2:11 pm
μου έχει πει φίλος που δουλεύει στη HP στη Java team ότι πρέπει να είναι στην ίδια γραμμή...
παρόλα αυτά εγώ το βάζω στην απο κάτω γτ με βολεύει!!!

- Spoiler: εμφάνιση/απόκρυψη
[i][b][color=#004080]No,no...Listen...He said that if they dug his father's body up, it would be gone. They planted a seed over his grave. The seed became a tree. Moses said his father became a part of that tree. He grew into the wood, into the bloom. And when a sparrow ate the tree's fruit, his father flew with the birds. He said... death was his father's road to awe!.[/color][/i][/b]
-
Zifnab
- Venus Former Team Member
- Posts: 7581
- Joined: Tue Nov 15, 2005 2:42 am
- Academic status: MSc
- Gender: ♂
- Location: Connecticut
-
Contact:
Post
by Zifnab » Wed Dec 14, 2011 2:21 pm
Προφανώς και στην ίδια γραμμή - αυτό δεν αλλάζει

-
nachos
- Gbyte level

- Posts: 1252
- Joined: Mon Aug 21, 2006 4:28 pm
- Academic status: Alumnus/a
- Gender: ♂
- Location: Brachamee City
Post
by nachos » Wed Dec 14, 2011 2:45 pm
Νέα γραμμή always, δαγκωτό!
Nothing is impossible for the man who doesn't have to do it himself
-
Funk
- Venus Former Team Member
- Posts: 1834
- Joined: Wed Oct 06, 2010 10:29 pm
- Gender: ♂
- Location: Korriban
Post
by Funk » Wed Dec 14, 2011 2:54 pm
Στην ίδια γραμμή, always...

Educate yourself. In time· share what you have learned.


-
vasilaros69
- Gbyte level

- Posts: 1299
- Joined: Wed Feb 17, 2010 6:07 pm
- Academic status: N>4
- Gender: ♂
Post
by vasilaros69 » Wed Dec 14, 2011 3:04 pm
Νεα γραμμη παντα εκτος απο κατι listeners οταν οριζονται επι τοπου εκει που καλουνται.

"Sometimes questions are more powerful than answers,..."
-
MpoMp
- Venus Former Team Member
- Posts: 6620
- Joined: Mon Oct 04, 2010 9:31 pm
- Gender: ♂
-
Contact:
Post
by MpoMp » Wed Dec 14, 2011 3:04 pm
90% των φορών: ΝΕΑ ΓΡΑΜΜΗ, ΝΕΑ ΣΥΝΤΑΞΗ, NEW WORLD ORDER.
Μόνο αν βαριέμαι ΠΟΛΥ το αφήνω στην ίδια.
“
Any fool can make something complicated. It takes a genius to make it simple.”
-
Phoenix!
- Kilobyte level

- Posts: 238
- Joined: Wed Oct 07, 2009 9:38 am
- Academic status: 4th year
- Gender: ♂
Post
by Phoenix! » Wed Dec 14, 2011 3:09 pm
Νέα γραμμή και από μένα! Να βλέπεις που αρχίζεις και που τελειώνεις βρε παιδί μου!

-
Loner
- Venus Former Team Member
- Posts: 4004
- Joined: Fri Oct 26, 2007 11:08 pm
- Academic status: N>4
- Gender: ♂
- Location: Στη ρωγμή του χρόνου
Post
by Loner » Wed Dec 14, 2011 3:17 pm
Στο visual studio που χρησιμοποιώ αυτόν τον καιρό αν το βάλω στην ίδια γραμμή το διορθώνει και το βάζει σε νέα, οπότε έχω συνιθίσει να είναι από κάτω... Οπότε

You either die a Spongebob or live long enough to see yourself become the Squidward.
-
Stayrakas
- Mbyte level

- Posts: 587
- Joined: Mon Sep 28, 2009 7:36 pm
- Academic status: N>4
- Gender: ♂
- Location: StoneCity @ Athens
Post
by Stayrakas » Wed Dec 14, 2011 3:21 pm
Loner wrote:Στο visual studio που χρησιμοποιώ αυτόν τον καιρό αν το βάλω στην ίδια γραμμή το διορθώνει και το βάζει σε νέα, οπότε έχω συνιθίσει να είναι από κάτω... Οπότε

Damn you Microsoft..
Three Rings for the Elven-kings under the sky,Seven for the Dwarf-lords in their halls of stone,Nine for Mortal Men doomed to die,
One for the Dark Lord on his dark throne,In the Land of Mordor where the Shadows lie.
One Ring to rule them all, One Ring to find them,One Ring to bring them all and in the darkness bind them
In the Land of Mordor where the Shadows lie.
-
XaviannNJ
- Gbyte level

- Posts: 1413
- Joined: Wed Oct 14, 2009 11:59 am
- Academic status: N>4
- Gender: ♀
- Location: city of insanity....
Post
by XaviannNJ » Wed Dec 14, 2011 3:28 pm
The Punisher wrote:
Πάντως, στα
code conventions για την Java, γράφει το { στην ίδια γραμμή ..
Και
εδώ στο pdf :
6.4 Class and Interface Declarations
When coding Java classes and interfaces, the following formatting rules should be followed:
• No space between a method name and the parenthesis “(“ starting its parameter list
• Open brace “{” appears at the end of the same line as the declaration statement
• Closing brace “}” starts a line by itself indented to match its corresponding opening
statement, except when it is a null statement the “}” should appear immediately after the
“{“
class Sample extends Object {
int ivar1;
int ivar2;
Sample(int i, int j) {
ivar1 = i;
ivar2 = j;
}
int emptyMethod() {}
...
}
--------
παντα και παντου.

-
Loner
- Venus Former Team Member
- Posts: 4004
- Joined: Fri Oct 26, 2007 11:08 pm
- Academic status: N>4
- Gender: ♂
- Location: Στη ρωγμή του χρόνου
Post
by Loner » Wed Dec 14, 2011 3:45 pm
XaviannNJ wrote:
παντα και παντου.

Δηλαδή στη Java
2.2 Bracing
Open braces should always be at the beginning of the line after the statement that begins the block. Contents of the brace should be indented by 4 spaces. For example:
if (someExpression)
{
DoSomething();
}
else
{
DoSomethingElse();
}
http://blogs.msdn.com/b/brada/archive/2 ... 61363.aspx
You either die a Spongebob or live long enough to see yourself become the Squidward.
-
netharis
- Venus Former Team Member
- Posts: 1845
- Joined: Sun Jul 15, 2007 2:37 pm
- Academic status: Alumnus/a
- Gender: ♂
- Location: Seattle, Washington
-
Contact:
Post
by netharis » Wed Dec 14, 2011 4:16 pm
Σκριού Java, ANSI/BSD style.
Always in a newline. Doesn't make your code look retarded.
Resistance is futile. Join the foss-side now!
"UNIX is very simple, it just needs a genius to understand its simplicity." - Dennis Ritchie
"The things that I want, by Max Payne. A smoke. A whiskey. For the sun to shine. I want to sleep, to forget. To change the past. Unlimited ammo and a license to kill. But right then, more than anything, I wanted her."
-
XaviannNJ
- Gbyte level

- Posts: 1413
- Joined: Wed Oct 14, 2009 11:59 am
- Academic status: N>4
- Gender: ♀
- Location: city of insanity....
Post
by XaviannNJ » Wed Dec 14, 2011 4:19 pm
netharis wrote:Σκριού Java, ANSI/BSD style.
Always in a newline. Doesn't make your code look retarded.
Καθ'ότι μέχρι τώρα η εμπειρία μου περιορίζεται μόνο σε java,μπορείς να μου εξηγήσεις εσύ (ή κάποιος άλλος) γιατί "the code looks retarded" ?

-
Loner
- Venus Former Team Member
- Posts: 4004
- Joined: Fri Oct 26, 2007 11:08 pm
- Academic status: N>4
- Gender: ♂
- Location: Στη ρωγμή του χρόνου
Post
by Loner » Wed Dec 14, 2011 4:29 pm
Όταν λες looks δεν υπάρχει γιατί.

Είναι αντικειμενικό...
Παρατηρώ τα πότε ναι, πότε όχι να μειώνονται, περικλειόμαστε από κατασταλαγμένους προγραμματιστές

You either die a Spongebob or live long enough to see yourself become the Squidward.
-
chriskin
- Wow! Terabyte level

- Posts: 5316
- Joined: Tue Sep 08, 2009 1:04 am
- Gender: ♂
Post
by chriskin » Wed Dec 14, 2011 4:42 pm
Loner wrote:Όταν λες looks δεν υπάρχει γιατί.

Είναι αντικειμενικό...
Παρατηρώ τα πότε ναι, πότε όχι να μειώνονται, περικλειόμαστε από κατασταλαγμένους προγραμματιστές

αμα δεν υπαρχει γιατι πως ειναι αντικειμενικο;
-------------
εγω περασα απο το ποτε ναι ποτε οχι στο ποτε
retarted code ftw :D
-
Loner
- Venus Former Team Member
- Posts: 4004
- Joined: Fri Oct 26, 2007 11:08 pm
- Academic status: N>4
- Gender: ♂
- Location: Στη ρωγμή του χρόνου
Post
by Loner » Wed Dec 14, 2011 4:45 pm
chriskin wrote:Loner wrote:Όταν λες looks δεν υπάρχει γιατί.

Είναι αντικειμενικό...
Παρατηρώ τα πότε ναι, πότε όχι να μειώνονται, περικλειόμαστε από κατασταλαγμένους προγραμματιστές

αμα δεν υπαρχει γιατι πως ειναι αντικειμενικο;
πχ Γιατί έτσι είναι! Γιατί έτσι φαίνεται! Γιατί έτσι μοιάζει!
Όλα αυτά είναι προσωπικές απόψεις όμως

You either die a Spongebob or live long enough to see yourself become the Squidward.
-
stoupeace
- Wow! Terabyte level

- Posts: 5372
- Joined: Tue Aug 26, 2008 4:08 pm
- Academic status: High school
- Gender: ♀
Post
by stoupeace » Wed Dec 14, 2011 4:48 pm
Μεχρι να μου το πεις για το VS δεν το'χα παρατηρήσει Loner.
Eγώ με newline έμαθα από JCreator εποχές. Αλλά τώρα μια που είδα ότι είναι αλλιώς στο πρότυπο της Java, προσπαθώ να γράφω το { στην ίδια γραμμή.
Αηδία. Εχω συνηθίσει τα blocks να φαίνονται ξεκάθαρα.
Η καλύτερη μπάντα όλου του κόσμου:
Sonata Antartika
Mpomp is building an army army. And I got my head back.
░░░░░███████ ]▄▄▄▄▄▄▄▄
▂▄▅█████████▅▄▃▂ ____☻/︻╦╤─
Il███████████████████]. /▌
_◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤.. . / \
-
Zifnab
- Venus Former Team Member
- Posts: 7581
- Joined: Tue Nov 15, 2005 2:42 am
- Academic status: MSc
- Gender: ♂
- Location: Connecticut
-
Contact:
Post
by Zifnab » Wed Dec 14, 2011 5:38 pm
Εγώ είδα που ο Κάβουρας το έβαζε σε νέα γραμμή και λέω ε θα το βάζω στην ίδια ..

-
chriskin
- Wow! Terabyte level

- Posts: 5316
- Joined: Tue Sep 08, 2009 1:04 am
- Gender: ♂
Post
by chriskin » Wed Dec 14, 2011 5:39 pm
-
ala_mages
- Gbyte level

- Posts: 1489
- Joined: Sun Jun 06, 2010 7:04 pm
- Academic status: N>4
- Gender: ♂
Post
by ala_mages » Wed Dec 14, 2011 6:01 pm
New line for the win \m/
Mpomp is building an army.
░░░░░███████ ]▄▄▄▄▄▄▄▄
▂▄▅█████████▅▄▃▂ ______☻/︻╦╤─
Il███████████████████]. /▌
_◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤.. _ / \
- Spoiler: εμφάνιση/απόκρυψη
Welcome to the [url=http://www.youtube.com/watch?feature=player_detailpage&v=pAY9CNkKOsg#t=59]ricefields[/url] mathaf*ka
[url=http://foss.aueb.gr]Turn on the foss please![/url]
-
nachos
- Gbyte level

- Posts: 1252
- Joined: Mon Aug 21, 2006 4:28 pm
- Academic status: Alumnus/a
- Gender: ♂
- Location: Brachamee City
Post
by nachos » Wed Dec 14, 2011 6:29 pm
To { είναι τυπικά και αυτό μια εντολή. Άρα, εκτός από το ότι το να το γράφουμε σε νέα γραμμή, κάνει τον κώδικα να φαίνεται πιο καθαρός, το κάνουμε επίσης γιατί δε συνηθίζεται να γράφουμε πολλές εντολές στην ίδια γραμμή. Πλην εξαιρέσεων βέβαια, εντούτοις αυτή η περίπτωση
ΔΕΝ είναι μία από αυτές!

Nothing is impossible for the man who doesn't have to do it himself