Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-8081-

Favourite programming language

Name: Anonymous 2006-04-05 19:10

Name your favourite programming language (not necessarily (but usually) the one you know the best - just the one you like best).

Tip: Java doesn't belong in this thread.

Mine is __Python__.

Name: Anonymous 2006-04-05 19:13

emacs lisp

Name: Anonymous 2006-04-05 19:18

Visual Basic

Name: Anonymous 2006-04-05 19:25

15 languages later, and I'm not impressed by any of them.

It'd probably be a tie between C and Ruby though.

Name: Anonymous 2006-04-05 19:26

TCL

Name: Anonymous 2006-04-05 19:26

>>4 if you feel that way; maybe you should consider moving into a vocation which you actually enjoy?

Name: Anonymous 2006-04-05 19:34

>>6
I said I'm not impressed by any of them, not that I hate them (or developing software for that matter).

Quite a leap of logic there...

Name: Ulysses 2006-04-05 22:55

Ruby tied with Io. Then C.

Name: Anonymous 2006-04-05 23:27

Perl and/or ECMAScript 4 (e.g. ActionScript)

Name: that guy 2006-04-05 23:37

visual basic...........hahaha

Name: KILLS YOUR MOM 2006-04-05 23:39

VISUAL C++ BITCHES

Name: Anonymous 2006-04-06 0:15

Java because of its awesome string parsing abilities!

Name: Anonymous 2006-04-06 4:03

(followed-shortly-by (common-lisp) (scheme))

Name: Anonymous 2006-04-06 4:25

I can't believe you actually thought you had to let people know no one likes Java.

Name: Anonymous 2006-04-06 5:10

Objective C

Name: Anonymous 2006-04-06 5:42

Only C is good enough

Name: Anonymous 2006-04-06 5:43

Slate ! Prototype-based pure object-oriented, based on Smalltalk, traits, multiple dispatching, subjective dispatching, optional type annotations, syntactic abstractions...

http://slate.tunes.org/

Name: Anonymous 2006-04-06 6:02

>>3 >>10
chalk another one up for VB! w00t!

Name: Anonymous 2006-04-06 17:48

I would actually have to say Java. But that's because I'm a student. As such, I'm required to make small programs in short time that do useless things, and Java is simply the easiest language for such work. Just this morning I wrote a Java program that fetches the response code from a http request. Three lines. Same in C? No idea...

At times when serious work is needed (yes, I do have work experience) Python seems to fill my needs.

Name: Anonymous 2006-04-06 17:56

>>19
I'm required to make small programs in short time that do useless things, and Java is simply the easiest language for such work.
No. I'd understand if you said Delphi. Pascal. Or even VisualBasic. But Javur....

Name: Anonymous 2006-04-06 18:14

C

Name: Anonymous 2006-04-06 18:19

>>20
Delphi? Never seen anyone use it
Pascal? Never seen anyone use it
Visual Basic? I've seen it used ONCE
Java? Every programming related course we read use Java. Why bother using anything else for school related stuff?

That being said I do realize I need to learn C or some equivalent to actually get anywhere in life. Except for Sun.

Name: Anonymous 2006-04-06 18:46

Oh, boy...

Name: Anonymous 2006-04-06 21:00

>>19
wtf? Think about it, to write a program that prints "Hello world" you have to create a class. What other language forces you to do that? The only reason you can accomplish a lot with seemingly very little is because the Java foundation api is so comprehensive. But that has nothing to do with the language itself.

Name: Anonymous 2006-04-07 2:46

>>24
public class Hello{

}

Boy, sure was a lot of work creating that class, wasn't it? I think I need a break!

Name: Anonymous 2006-04-07 4:16

>>25
Bullshit OO forced up your ass

echo 'HELLO WORLD LOL LOL';

Name: Anonymous 2006-04-07 4:24

>>> a="OH SHI-"
>>> a
'OH SHI-'
>>>

Name: Anonymous 2006-04-07 4:24

Java:
public class Hello
{
    public static void main(String[] arg)
    {
        System.out.println("Hello, world!");
    }
}

Name: Anonymous 2006-04-07 6:09

But Javur is more productive, I read that in a Sun paid article in an "industry" magazine.

Name: Anonymous 2006-04-07 6:35

>>29
It is! It really is! It allows you to produce more lines of code, which is the important thing if you ask anybody.

Name: Anonymous 2006-04-07 6:36

Beware Java's nighmare of a static class hierarchy.

Use message passing, or bust...

Name: Anonymous 2006-04-07 7:49

>>28
C:

#include <stdio.h>
int main(void)
{
  printf("Hello World!\n");
  exit(0);
}

Man, that's so unbelievably much shorter than the Java code, I don't know why I didn't switch a long time ago! Thank you for opening my eyes to this new world of short syntax!

Name: Anonymous 2006-04-07 8:21

>>32 is an idiot. C is a low-level language, little more than assembly with macros. If Java uses a similar number of lines as C, something is seriously wrong.

Perl: print "Hello World!\n";
Python: print "Hello World!"
Ruby: print "Hello World!\n"
Forth: ."Hello World!" CR
Bash: echo "Hello World!"
Ocaml: print_string "Hello world!\n";
Lisp: (write-line "Hello World!")
BASIC: print "Hello World!"

Yes, they're all one-liners. No additional shit needed. And these are just the languages I can yank off the top of my head.

PS. It's return 0, not exit(0).

Name: Anonymous 2006-04-07 9:46

>>32
Fail

More like:
int main(){puts("Hello World!");}

Name: Anonymous 2006-04-07 10:51

I like ocaml but it has many problems with it I'd like fixed related to polymorphism and run time type checking.

Name: Anonymous 2006-04-07 11:15

>>34

is not standard.
#include <stdio.h>
int main(void){puts("lol, internet\n"); return 0;}

Name: Anonymous 2006-04-07 11:58

>>33
Ruby: puts "Hello World"
Wooo, saved two characters!

Name: Anonymous 2006-04-07 12:00

>>37
Disregard that, I suck cocks. Three.

Name: Anonymous 2006-04-07 12:05

PHP wins

Hello World

Name: Anonymous 2006-04-07 12:35

>>39
<?php echo "Hello World"?>

Just "Hello World" alone is plain text you idiot.

Name: Anonymous 2006-04-07 12:44

Befunge > *
             v
v  ,,,,,"Hello"<
>48*,          v
v,,,,,,"World!"<
>25*,@

Name: Anonymous 2006-04-07 12:54

(format t "You all suck, Lisp is better!")

Name: Anonymous 2006-04-07 13:14 (sage)

>>42
LOL! Side-effect. I bet you can't output to my screen without side-effects.

Name: Anonymous 2006-04-07 14:33

>>43
There's no law against side effects. They're just to be avoided where convenient.

Name: Anonymous 2006-04-07 14:38

>>43
what side-effect?

Name: Anonymous 2006-04-07 14:40

>>45
The side effect of writing to a stream, duh.

Name: Anonymous 2006-04-07 15:43 (sage)

>>46
and where is it a side effect? that's MY screen, not yours, duh.

Name: Anonymous 2006-04-07 15:54

>>47
Calling the print to screen function has the side-effect that it prints to the screen. I am outraged.

Name: Anonymous 2006-04-07 19:16

>>48
I too am outraged that this programming language does what I want it to do! This is disgusting.

Name: Anonymous 2006-04-07 19:31

>>40
It gets printed you idiot.

Name: Anonymous 2006-04-07 19:32

>>47
Side effects? In MY screen?

Name: Anonymous 2006-04-07 19:32

>>50
That's what I wanted you idiot, otherwise I wouldn't have called this function.

Name: Anonymous 2006-04-07 19:35

C# is the new shit, don't you forget it!
namespace MicrosoftProject
{
    class Application
    {
        static void Main()
        {
            System.Console.WriteLine("Hello, world!");
        }
    }
}

Name: Anonymous 2006-04-07 20:31

C# is clearly superior to Java.

Clearly.

Name: Anonymous 2006-04-08 1:58

>>53
Oh, shit, some language designer, somewhere, didn't learn from the mess known as Java. :(

Name: Anonymous 2006-04-08 3:30

QBasic
PRINT "Hello world"

Name: Anonymous 2006-04-08 5:20

Ok now, do it in brainfuck.

Name: Anonymous 2006-04-08 7:10

>>52
No point in using <?php echo "lol"; ?> if all you want is to write lol, PHP will output anything not between <? ?> . And echo is not a function, idiot.

>>53
At least it has proper capitalisation.

>>54
Well, it IS somewhat better, but that doesn't mean it's good.

>>56
QBasic still accepts (although will change it if written in the IDE): ?"Hello world"

Name: Anonymous 2006-04-08 7:48

>>57
NIL

Name: Anonymous 2006-04-08 10:15

Hello world in whitespace (part 1 of 2):
-------------------------------
               
               
                     
                
                     
                   
                     
                 
                           
                    
                 
                    
           
                       
                           
                  
                           
                     
                     
                     
                     
                        
                  
                     
           
                        
                           
                        
                     
                           
           
                   
                        
                      
                  
                      
                  
                         
                     
                      
                     
                         
                        
                         
              
                            
   
            

                                                                                                              

                                                                                                                                                            




---------------------------

Name: Anonymous 2006-04-08 10:16

Hello world in whitespace (part 2 of 2)
----------------------------
                                                    
      
   

                                                                                                           
 
             
 
                                                                                                                                                                                                    
   
        
      
 
                                                                                                         

                                                                                                                                                                                                 
 

 


   

                                                                           
 
 
    
                 
             
         
                                                                                                                                                                    
 

      
      
 
                                                                         

                                                                                                                                                                 
 

      
          
        
   

                                                                                                                                                         
            
               
   
     
 
   
---------------------
There's a manly language for you!

Name: Anonymous 2006-04-08 20:59

native C++

Name: Anonymous 2006-04-09 2:30

lately my fav has been javascript (and ruby). i hate langs that require semicolons.

Name: Anonymous 2006-04-09 5:04

Supercollider is awesome.

Name: Anonymous 2006-04-09 5:31

>>63
You hate semicolons but you like JavaScript? I don't get it.

Name: Anonymous 2006-04-09 15:10

>>63
whut

Name: Anonymous 2006-04-10 15:06

I'm going to have to say C++, it's a little more flexable then C. But C comes in a close second because I still use a lot of C in my code.

Name: Anonymous 2006-04-10 16:20

For now I'd say Python. Its like a warm blanky to me with how kind it is :D

Name: Anonymous 2006-04-10 17:26

I can't do sh it in anything but C :(

Name: Anonymous 2006-04-10 20:12

>>67
C++ is insane, it's like taking C and breaking it

Name: Anonymous 2006-04-10 23:25

C++ is alright... if you stay away from most of what makes C++ the language it is. There's a reason why a lot of people favor what's called "C++--".

Name: Anonymous 2006-04-19 12:20

>>65

semicolons are optional in javascript.

Name: Anonymous 2006-04-19 12:53

>>72
this is javascript's dumbest feature, because it doesn't have an explicit line-continuation character, so you have to make sure the parser doesn't think you wanted to terminate a statement. also multiline strings don't work.

Name: Anonymous 2006-04-19 13:13

Perl.

perl -e'print "Hello, world!\n"'

or

#!/usr/local/bin/perl
print "Hello, world\N";

Name: Anonymous 2006-04-19 13:33

>>74
#!/usr/local/bin/perl -e'print "Hello, world!\n"'

Name: Anonymous 2006-04-19 13:38

print 'Hello, world!'

Name: Anonymous 2006-04-19 14:03

10 PRINT "POO!!!"
20 GOTO 10

Name: Anonymous 2006-04-19 16:09

ruby -e "puts 'Python sux!'"

Name: Anonymous 2006-04-19 16:19

print "\n".join(unicode(i) + "GET" for i in xrange(1000))
Python gets posts faster than Ruby, PHP and Perl.

BTW, why is the CODE font the wrong font? Variable spacing fonts are for loser languages like Java.

Name: Anonymous 2006-04-19 22:53

nasm

Name: Anonymous 2006-04-20 5:53

>>79
1000.times { |i| puts "#{ i }GET" }Ruby wins!

Name: Anonymous 2006-04-20 5:56

>>79
I forgot the fact that you add all those expensive strings in one array which is completely stupid.
Ruby wins twice!

Name: Anonymous 2006-04-20 6:56

>>82
Duh
for i in xrange(1000): print unicode(i) + u"GET\n"
No arrays. Faster than Ruby. And Python, for one, supports Unicode. Python wins twice.

Name: Anonymous 2006-04-20 8:37

>>83
python -c "for i in xrange(1000): print unicode(i) + u\"GET\""
0.12s user 0.03s system 26% cpu 0.601 total

ruby -e "1000.times { |i| puts \"#{i}GET\" }"
0.07s user 0.02s system 18% cpu 0.465 total

Name: Anonymous 2006-04-20 8:38

>>84
GASP

Name: Anonymous 2006-04-20 9:07

>>83
Who needs unicode? Really? 1+1=2, unicode or not, duh.

Name: Anonymous 2006-04-20 9:27

>>85
Got that right! I couldn't even get Python to run that fast again, while Ruby ran faster every time. And with the extra newline, Python was like .06s slower.

Name: Anonymous 2006-04-20 9:48

>>84
Addendum, startup times:
python -c "print \"Hello, world\""
0.03s user 0.01s system 32% cpu 0.100 total

ruby -e "puts \"Hello, world\""
0.01s user 0.00s system 15% cpu 0.066 total

Name: Anonymous 2006-04-20 9:57

>>88
Syscall count for this:
strace ruby -e "puts \"Hello, world\"" 2>&1 | wc -l
123
strace python -c "print \"Hello, world\"" 2>&1 | wc -l
540

Name: Anonymous 2006-04-20 10:07

@-moz-document url-prefix("http://www.world4ch.org/";) {
    div.code {
        font-family: monospace;
        white-space: pre;
    }
}

Yeah baby!

Name: Anonymous 2006-04-20 10:59

>>84
Oops. I thought it would be faster. Well, it happens to be so for larger applications and test algorithms.

Oh, wait. The Python code uses full Unicode support. Ruby doesn't even support that. You just cannot compare them.

Could you time
for i in xrange(1000): print str(i) + "GET"?

Perhaps it's still slower but it might be faster than using Unicode.


>>84
Lol American loser.

Name: Anonymous 2006-04-20 11:15

Wait? Who cares about speed in a scripting language? What is more productive, and more fun to maintain:

      1000.times { |i| puts \"#{i}GET\" }"

or

      for i in xrange(1000): print str(i) + "GET"

Name: Anonymous 2006-04-20 11:19

>>91
ruby -e "1000.times { |i| puts \"#{i}GET\" }" > /dev/null
0.01s user 0.00s system 47% cpu 0.034 total

python -c "for i in xrange(1000): print str(i) + \"GET\"" > /dev/null
0.02s user 0.01s system 58% cpu 0.061 total

Piping output to remove wait for TTY.

I guess Python is slower because it opens and reads from some "files" or files while Ruby does not.

Name: Anonymous 2006-04-20 11:42

>>92
Neither is as awesome assequence_ $ map (putStrLn . (++"GET") . show) [1..1000]

Name: Anonymous 2006-04-20 11:48

>>94
ew, fuck off

Name: Anonymous 2006-04-20 12:27

>>92
I sure as hell don't care much for speed as long as it's within the Python-Perl-PHP-Ruby range, I was just bored and tried to troll. But regarding maintenance, which I do care, I find the Python form much easier to read and maintain.

Name: Anonymous 2006-04-20 13:02 (sage)

>>96
In real code you'd write it like this using Ruby:
1000.times do |i|
  puts "#{i}GET"
end
Using {} where do end is possible is generally considered bad practise.

Name: Anonymous 2006-04-20 14:22

Likewise, you'd do
for i in xrange(1000):
    print str(i) + "GET"
in Python

Name: Anonymous 2006-04-20 16:14

>>97
Bad practice? WTF?

Name: Anonymous 2006-04-20 19:28

java lol

Name: Anonymous 2006-04-25 3:45

<@% LANGUAGE=VBSCRIPT %>
<%
response.write "Hallo za warudo!"
%>

Wait, does VB script count as a programming language...?

Name: Anonymous 2006-04-25 7:51

C/C++ (mostly C)
ASM
Perl
and FreeBASIC

Name: Visual Studio Team System 2006-04-25 12:15

>>53
This man speaks delicious truth!

MessageBox.Show("strcat " + "gtfo!"); //OWSHI

Name: Anonymous 2006-04-25 13:17

Name: Anonymous 2006-04-25 14:29

C++
MIPS64 assembly
Python
Squirrel
OCaml

In that order.

Name: Anonymous 2009-01-14 5:27

Mine is JavaScript

Name: Anonymous 2009-01-14 8:20

c

Name: Anonymous 2009-01-14 8:25

Applescript

____________
Sent from my iPhone.

Name: Anonymous 2009-01-14 9:17

Haskell
x86_64 fasm
[... those I forgot ...]
PHP
*

Name: Anonymous 2009-01-14 9:21

>>108
10/10

Name: Anonymous 2009-01-14 9:22

Ruby

Name: Anonymous 2009-01-14 9:24

Haskell
Forth
Prolog
Python
JavaScript
C

Name: Anonymous 2009-01-14 9:43

Python, second to the Lisp dialect which I authored that does everything perfectly and has no flaws.

Name: Anonymous 2009-01-14 9:54

c

Name: Anonymous 2009-01-14 10:40

C#

Name: Anonymous 2009-01-14 10:41

Mostly Python. But I also occasionally enjoy C. For programs no longer than 50 LOCs, that is.

Name: Anonymous 2009-01-14 11:06

My favourite languange is whatever Leah Culver dislikes.

Don't change these.
Name: Email:
Entire Thread Thread List