• Lucid Dreaming - Dream Views




    Page 3 of 3 FirstFirst 1 2 3
    Results 51 to 62 of 62
    Like Tree1Likes

    Thread: How Many Programming Langauges Do You Know?

    1. #51
      Member Identity X's Avatar
      Join Date
      Mar 2004
      Gender
      Posts
      1,529
      Likes
      7
      Only Java to a sufficient degree of faith.

      Also: Python, Visual Basic, PHP, SQL, QBasic (first language I knew, great it was too), MIPS, NetLogo, BBC BASIC, some C, enough C#.


    2. #52
      Your cat ate my baby Pyrofan1's Avatar
      Join Date
      Nov 2006
      Gender
      Posts
      720
      Likes
      3
      Lol how come ive compiled it and it works then?
      [/b]
      Because your compiler is not an ANSI C compiler

    3. #53
      dsr
      dsr is offline
      我是老外,可是我會說一點中文。
      Join Date
      Nov 2006
      Gender
      Location
      my mind
      Posts
      374
      Likes
      1
      Quote Originally Posted by Techboy View Post
      Wouldn't this work and be a bit less messy?
      Code:
      int factorial(int x) { (x==1||x==0) ? return 1 : return factorial(x-1)*x;}
      [/b]
      Good point. I'm used to Python in which there is no real ternary (although you can fake it and Python 2.5 introduced a pseudo-ternary operator iirc).

      M-Cat, for your prime number checker, you could always compute an array of prime numbers up to the given integer and check to see if the array contains the integer. While this might not yield the best performance, it would test your ability to implement algorithms in C/C++. Here's an example of the sieve of Eratosthenes (an inefficient but easy-to-understand algorithm for computing a list of primes) in Python:

      Code:
      def primes(n):
      ****A, B = range(2, n+1), []
      ****while A:
      ********B.append(A[0])
      ********A = [x for x in A if x % B[-1] != 0]
      ****return B
      I once implemented that algorithm in Python. Then I tried to port it to C++ and was astonished how much more code had to be written. Python is amazingly productive.

    4. #54
      Member Kaniaz's Avatar
      Join Date
      Jan 2004
      Gender
      Location
      England
      Posts
      5,441
      Likes
      9
      sieve of Eratosthenes[/b]
      That's the name.

    5. #55
      dsr
      dsr is offline
      我是老外,可是我會說一點中文。
      Join Date
      Nov 2006
      Gender
      Location
      my mind
      Posts
      374
      Likes
      1
      Indeed it is. The Sieve of Atkin yields faster performance, but it is a little more complicated and I didn't feel like explaining it. I'm sure there's a Wikipedia article detailing it.

      Edit: As much as I wanted to avoid chiming in, I feel compelled to do so. M-Cat, Kaniaz spent a half hour to an hour trying to teach you how not to code, and you are refusing to listen to him. You're the one who needs to learn the language. By the way, the language in question is C++ and not C. ANSI C doesn't have iostream nor does it have the STL. Oh and I hate to say this, but although Kaniaz's advice is correct, M-Cat's original code does compile somehow in GCC (g++), which is the de facto standard compiler. Go figure.

    6. #56
      56 QwinsepiaSquared's Avatar
      Join Date
      Sep 2006
      Gender
      Location
      USA
      Posts
      690
      Likes
      5
      Eh, I'm confuzzled.

      I can do very basic stuff with HTML...pretty much just make a link like this:

      <a href=www.dreamviews.com>This</a>

      But then again, I&#39;ve picked up basically everything I know by fixing my friends&#39; broken myspace codes. XD
      "It was a dream! Can you control what you dream about, Hermione?" -HP7
      -9 Tasks-

    7. #57
      The 'stache TweaK's Avatar
      Join Date
      Jul 2006
      Location
      The Netherlands
      Posts
      1,979
      Likes
      12
      Quote Originally Posted by dsr View Post
      Edit: As much as I wanted to avoid chiming in, I feel compelled to do so. M-Cat, Kaniaz spent a half hour to an hour trying to teach you how not to code, and you are refusing to listen to him. You&#39;re the one who needs to learn the language. By the way, the language in question is C++ and not C. ANSI C doesn&#39;t have iostream nor does it have the STL. Oh and I hate to say this, but although Kaniaz&#39;s advice is correct, M-Cat&#39;s original code does compile somehow in GCC (g++), which is the de facto standard compiler. Go figure.
      [/b]
      Dude, respect++.

      Quote Originally Posted by dsr View Post
      Eh, I&#39;m confuzzled.

      I can do very basic stuff with HTML...pretty much just make a link like this:

      <a href=www.dreamviews.com>This</a>

      But then again, I&#39;ve picked up basically everything I know by fixing my friends&#39; broken myspace codes. XD
      [/b]
      And in fact, even that is wrong You always have to include http:// with <a> tags, or it will link to a directory named www.dreamviews.com. Let&#39;s say we&#39;re on a page named Link.html, in http://www.oursite.com/Content/Menu/Link.html, and we insert your code, we&#39;d link to http://www.oursite.com/Content/Menu/wwww.dreamviews.com If we add http, we actually link to Dreamviews.

    8. #58
      Eprac Diem arby's Avatar
      Join Date
      May 2006
      LD Count
      i/0
      Gender
      Location
      Canada
      Posts
      1,957
      Likes
      52
      Should we re-name this to the programming language war thread? XD

    9. #59
      The 'stache TweaK's Avatar
      Join Date
      Jul 2006
      Location
      The Netherlands
      Posts
      1,979
      Likes
      12
      Nah, it simply derailed, but it&#39;s back.. Sorta.

    10. #60
      Member Jeremysr's Avatar
      Join Date
      Jan 2007
      Gender
      Posts
      377
      Likes
      0
      The ones that I know really well are PHP, QBasic, Lua. I&#39;m learning C and LISP.

      (I know XHTML and CSS too...)

    11. #61
      Banned
      Join Date
      Jul 2006
      Gender
      Location
      ʇsǝɹɔpooʍ
      Posts
      3,207
      Likes
      176
      I have used DrPython for a while now and really like it&#33; Comes in Windows and Linux versions. It has clean displays and a minimum of quirks (does not like foreign characters). There are lots of configuration options. The results are displayed in an output window, and you can select and copy items from there. You can also install the code completion plugin from the internet from within the DrPython.

      I have used HapDebugger, Boa, PyScripter, IDLE and PythonWin, I&#39;ve even used SPE for quite a while. No, it&#39;s not the "Society of Petroleum Engineers", but "Stani&#39;s Python Editor". For some odd reason it has vanished on the net. I always come back to DrPython. I also use a more general editor/IDE called ConText. That one allows me to run C code and Python code in parallel.


    12. #62
      Banned
      Join Date
      Jan 2004
      Gender
      Location
      nope
      Posts
      1,807
      Likes
      599
      Aiite, so when I was in fourth grade I used this scripting language called, uhm, frog? I don&#39;t remember, but it was used to control a little something. A frog I think. Anyway, my teacher CALLED it a programming language. Can I add that to my list? Probably not.

      C, C++, Visual C++ (ew)
      Visual Basic, QBasic, and Basic - Oh my&#33;
      Python, Perl, PHP - All with MySQL happiness.

      Keep in mind I haven&#39;t really programmed since my junior year in college (3 years ago) so there&#39;s a good chance that I&#39;m really bad at most of these now. We determined that last night

    Page 3 of 3 FirstFirst 1 2 3

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •