• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Coding... where to start???

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #21
    Originally posted by Svalbaard View Post
    Don't most people start coding with something like:

    10 print "Hello world.";
    20 goto 10


    Although I'm sure even that small program could be made more efficient by purchasing a super duper (and expensively licensed) modern development language such as ADA or PL/S.


    10 REPEAT
    20 PRINT "Hello"
    30 UNTIL FALSE

    Never use a goto!
    Best Forum Advisor 2014
    Work in the public sector? You can read my FAQ here
    Click here to get 15% off your first year's IPSE membership

    Comment


      #22
      Originally posted by jkoder View Post
      Get your feet wet with some JavaScript. You can start this second with Notepad and a browser. It covers a lot of core concepts of most programming languages.
      failing this then open excel and try your hand at some Excel VBA

      Lots and lots of online resources so you can build a nice VBA app for excel very easily including forms, writing to external files, external data sources etc etc and a basic visual development environment.

      Once you get the hang of that then you will know if you have the mind set for "coding"
      Coffee's for closers

      Comment


        #23
        That's a cracking idea actually and costs nothing if you have Excel already. I guess you can learn a bit of SQL from Access too?
        Public Service Posting by the BBC - Bloggs Bulls**t Corp.
        Officially CUK certified - Thick as f**k.

        Comment


          #24
          Originally posted by TheFaQQer View Post


          10 REPEAT
          20 PRINT "Hello"
          30 UNTIL FALSE

          Never use a goto!
          I don't know why REPEAT ... UNTIL FALSE offends me, but it does.

          Code:
          1000 REM Constants
          1010 TRUE% = -1 :  FALSE% = NOT TRUE%
          1020 EndOfWorld% = FALSE%
          2000 REM Main control
          2010 WHILE EndOfWorld% = NOT TRUE%
          2020 . . PRINT "Hello world! ";
          2030 WEND
          9999 END
          Perhaps it was the Pascal influence.
          Drivelling in TPD is not a mental health issue. We're just community blogging, that's all.

          Xenophon said: "CUK Geek of the Week". A gingerjedi certified "Elitist Tw@t". Posting rated @ 5 lard points

          Comment


            #25
            Originally posted by Svalbaard View Post
            10 print "Hello world.";
            20 goto 10
            10 PRINT "BOOBIES"
            20 GOTO 10

            > RUN

            Then run out of the shop.

            Serious answer:

            JavaScript with HTML might not be a bad place to start as at least you don't have that big problem of having to do a lot of work to get something basic, as you can start off with a web page and then enhance it with scripting. ActionScript (i.e. Flash/Flex) for similar reasons, and that's pretty much enhanced JavaScript and from there you're virtually up to the level of Java/C#.
            Will work inside IR35. Or for food.

            Comment


              #26
              Originally posted by Durbs View Post
              VB is a great language and dont let anyone put you off it. There are no real arguments against it and its a lot easier on the eye than Cx.
              Now just you go and wash your mouth out.
              Listen to my last album on Spotify

              Comment


                #27
                Originally posted by BrowneIssue View Post
                I don't know why REPEAT ... UNTIL FALSE offends me, but it does.
                In Forth, it was a simple matter to define the word "forever".

                Hence the main loop for a game I wrote on the Atari ST:

                Code:
                :  run ( - )
                    repeat
                        attract
                        play
                        highscores
                    forever ;
                (Transition of control through the three inner words was achieved by dropping the requisite number of return addresses off the return stack, then returning - arcane, but it made for a readable main loop )

                Comment


                  #28
                  Originally posted by BrowneIssue View Post
                  Code:
                  1000 REM Constants
                  1010 TRUE% = -1 :  FALSE% = NOT TRUE%
                  1020 EndOfWorld% = FALSE%
                  2000 REM Main control
                  2010 WHILE EndOfWorld% = NOT TRUE%
                  2020 . . PRINT "Hello world! ";
                  2030 WEND
                  9999 END
                  That NOT <constant> in the conditional is such bad practice. A completely redundant operation caused by bad design. Bad me. The TRUE constant setting is a bit assumptive, too. Got to put in a permitted rulebreaker too, such as the forgiveable GOTO.
                  Code:
                  100  REM Analist.BAS v0.6 Demo prog BrowneIssue 28/01/2009
                  110  GOSUB 1000 ' Initialisation
                  120  GOSUB 2000 ' Main control routine
                  130  GOTO  9999 ' Bomb out.
                  1000 REM Constants
                  1010 . FALSE% = 0: TRUE% = NOT FALSE%
                  1020 . ThereIsStillBreathInMyBody% = TRUE%
                  1999 RETURN
                  2000 REM Main control
                  2010 . WHILE ThereIsStillBreathInMyBody%
                  2020 . . . PRINT "Hello world! ";
                  2030 . WEND
                  2999 RETURN
                  9999 END
                  Last edited by BrowneIssue; 28 January 2009, 07:52. Reason: Analism
                  Drivelling in TPD is not a mental health issue. We're just community blogging, that's all.

                  Xenophon said: "CUK Geek of the Week". A gingerjedi certified "Elitist Tw@t". Posting rated @ 5 lard points

                  Comment


                    #29
                    http://www.oorexx.org/
                    Brexit is having a wee in the middle of the room at a house party because nobody is talking to you, and then complaining about the smell.

                    Comment


                      #30
                      Originally posted by TheFaQQer View Post


                      10 REPEAT
                      20 PRINT "Hello"
                      30 UNTIL FALSE

                      Never use a goto!
                      There is nothing wrong with the use of "goto"!

                      Code:
                      #ifndef FALSE
                          #define FALSE 0
                      #endif
                      
                      #ifndef TRUE
                          #define TRUE !FALSE
                      #endif
                      
                      int main( int argc, char *argv[] )
                      {
                          while( TRUE )
                          {
                              printf( "Hello world " );
                          }
                      }
                      FALSE is the only absolute as any value !FALSE is TRUE!!!

                      I also like
                      Code:
                       for( ;; );
                      Last edited by Churchill; 28 January 2009, 09:29.

                      Comment

                      Working...
                      X