Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: November 16, 2024, 5:39 am

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hello world.
#11
RE: Hello world.
Welcome
"The Universe is run by the complex interweaving of three elements: energy, matter, and enlightened self-interest." G'Kar-B5
Reply
#12
RE: Hello world.
Hmmm...new meat!! Welcome, welcome...


[Image: hqdefault.jpg]
Reply
#13
RE: Hello world.
(May 29, 2014 at 5:29 am)downbeatplumb Wrote: public class HelloWorld{

public static void main (String[] args)
{
System.out.println("Hello Back At Ya");

}
}

goddamit, the JAVA army is here






Tongue
[Image: eUdzMRc.gif]
Reply
#14
RE: Hello world.
You "guyses" JAVA indentation is wrong... That code, although it compiles and does its job, would fail on my class... if I ever teach computer programming to anyone.
Indentation is a quick and easy way to spot bad programmers... not the only one, though.
That's why they came up with PYTHON - forced indentation, replacing all curly brackets:
Code:
def helloWorld():
  print "Hello World!"
Reply
#15
RE: Hello world.
How'd you get past the FDA inspection?
My ignore list




"The lord doesn't work in mysterious ways, but in ways that are indistinguishable from his nonexistence."
-- George Yorgo Veenhuyzen quoted by John W. Loftus in The End of Christianity (p. 103).
Reply
#16
RE: Hello world.
Hello, FilthyMeat!
I'm not anti-Christian. I'm anti-stupid.
Reply
#17
RE: Hello world.
Welcome
Reply
#18
RE: Hello world.
(May 29, 2014 at 9:50 am)pocaracas Wrote: You "guyses" JAVA indentation is wrong... That code, although it compiles and does its job, would fail on my class... if I ever teach computer programming to anyone.
Indentation is a quick and easy way to spot bad programmers... not the only one, though.
That's why they came up with PYTHON - forced indentation, replacing all curly brackets:
Code:
def helloWorld():
  print "Hello World!"

you call it Indentation , I call it good code writing style Tongue

IMO : The whitespace thing in python is not very practical . Who has time to put all the dammin' spaces and what if you forgot where you are ?
[Image: eUdzMRc.gif]
Reply
#19
RE: Hello world.
(May 29, 2014 at 10:54 am)Marsellus Wallace Wrote: you call it Indentation , I call it good code writing style Tongue

IMO : The whitespace thing in python is not very practical . Who has time to put all the dammin' spaces and what if you forgot where you are ?

If you forget where you are, you use a proper editor, one that displays a symbol in the place of whitespace and auto-indents when you press ENTER.
On windows, I use notepad++.
On linux, I'm using Geany.
Both support these features and it makes everything very easy to understand
(even the big problem in python where you can have a tabulation in one line and 4 spaces in the next, which, if all white, look exactly the same, but represent different indentations, which leaves python confused) and no such memory lapses occur... often Wink

Indentation really makes it easier to read code. And you just know that you won't remember what you wrote in one or two weeks from now, so it's best to keep it readable... for your future peace of mind.

ALSO: comments, lots of them!
Reply
#20
RE: Hello world.
(May 29, 2014 at 11:48 am)pocaracas Wrote:
(May 29, 2014 at 10:54 am)Marsellus Wallace Wrote: you call it Indentation , I call it good code writing style Tongue

IMO : The whitespace thing in python is not very practical . Who has time to put all the dammin' spaces and what if you forgot where you are ?

If you forget where you are, you use a proper editor, one that displays a symbol in the place of whitespace and auto-indents when you press ENTER.
On windows, I use notepad++.
On linux, I'm using Geany.
Both support these features and it makes everything very easy to understand
(even the big problem in python where you can have a tabulation in one line and 4 spaces in the next, which, if all white, look exactly the same, but represent different indentations, which leaves python confused) and no such memory lapses occur... often Wink

Indentation really makes it easier to read code. And you just know that you won't remember what you wrote in one or two weeks from now, so it's best to keep it readable... for your future peace of mind.

ALSO: comments, lots of them!

You should use sublime in both linux and win, its simply amazing .
you're right about the comments,they are very important and they save alot of time. It always feels like i'm not gonna need them while i'm writing the code Big Grin
[Image: eUdzMRc.gif]
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  Hello! Just need to commune with some fellow atheists in a religious world. Rosie_Rivets 11 2280 November 11, 2016 at 5:18 pm
Last Post: CWoods
  Hello world Alexander The Great 27 3488 August 20, 2016 at 8:42 pm
Last Post: Pat Mustard
Lightbulb Hello World Society 16 2051 April 29, 2016 at 8:56 pm
Last Post: LadyForCamus
  Hello World! FriendlyNeighborhoodAtheist 62 9193 May 15, 2015 at 10:25 am
Last Post: Alex K
  hello world DeadChannel 19 2357 January 10, 2015 at 9:03 pm
Last Post: JuliaL
Rainbow Hello World PerfectRecall17 21 3483 November 9, 2014 at 11:36 pm
Last Post: PerfectRecall17
  Hello World Escherscurtain 10 2060 March 22, 2014 at 10:02 pm
Last Post: KichigaiNeko
  Hello world! Deckard 18 2953 August 16, 2013 at 12:54 am
Last Post: Fruity
  Hello world! apostopare 10 2608 August 25, 2012 at 6:57 am
Last Post: apostopare
Thumbs Up Hello Hello loush 17 6665 December 13, 2010 at 2:53 pm
Last Post: theophilus



Users browsing this thread: 2 Guest(s)