We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Choosing a computer for programming

13

Comments

  • robrooo
    robrooo Posts: 72 Forumite
    On Python: I led a rebellion on my MSc course to change the 'language of choice' from Python to Perl. It made a lot more sense for the stuff we were doing. It would scare me knowing that plane autopilots used it really - i guess i see it as a hobby language

    Its true that Guido van Rossum designed Python to teach programming, but it is still very powerful, and your pseudocode tends to just run ;) Its being used right now in many critical systems in industry, often as "glue" interfacing between systems, and it can be compiled if you want using the tools to convert it to c/c++.

    In my experience programs written in Perl have a tendency to become a twisted unmaintainable mess of bugs. Its flexibility is abused and its syntax often cryptic.

    Knowing and applying program architecture principles is a must for any serious application, whatever the language.
    Goals: Mortgage Free: Dec 2012 - complete (13y 8m early)
    Save £100K by age 50: (£20k pa Jan/2013-Jan/2018) - progress: Aug 2014: £34k
    Pension: £250k by 2018 - progress: Aug 2014 £180k
    Charitable Giving: 2014 so far: £4000
    Crowd Funding Contributions: 2014 so far: £2630
  • Well, ok, you need to consider that programming is just a way of defining how to do stuff in a really, really, really detailed manner. An easy way to comprehend this is to write a program 'to make a cup of tea' - with YOU being the computer.

    So what does the computer, you, need to know?

    Inputs: How many Sugars, Milk
    How many sugars is a whole number, from 0 upwards
    Milk is an 'either/or' (binary)

    1. Turn on Kettle at socket if it is off
    2. Turn on tap
    3. Begin pouring water into the kettle from tap
    4. Stop tap when kettle is full
    5. Turn on kettle
    7. Is kettle boiled yet? If not, wait a bit and check again (carry on waiting until it's finished)
    8. Get mug from cupboard
    9. Is mug clean? Get another if it isn't. Carry on getting new mugs until you find a clean one
    10. Get teabag and place into mug
    11. Pour water into mug (imagine there's a set amount to pour in)
    12. Stir teabag for 1 minute
    13. Remove teabag and put in bin
    14. If they want Milk, continue. Otherwise skip to step 19
    14. Get milk from fridge
    15. Smell milk; if it is stinky put it in the bin and get a new milk
    16. Pour milk into tea
    17. Stir milk into tea
    18. Return milk to fridge
    19. If the number of sugars is 0, skip to step 24
    20. Get sugar bowl
    21. Add number of sugars as is required
    22. Put away sugar bowl
    23. Stir sugar into tea
    24. Serve tea

    So, it takes an attention to detail to code. Is your son like that at all? Does he think through stuff methodically?
  • robrooo wrote: »
    Its true that Guido van Rossum designed Python to teach programming, but it is still very powerful, and your pseudocode tends to just run ;) Its being used right now in many critical systems in industry, often as "glue" interfacing between systems, and it can be compiled if you want using the tools to convert it to c/c++.

    In my experience programs written in Perl have a tendency to become a twisted unmaintainable mess of bugs. Its flexibility is abused and its syntax often cryptic.

    Knowing and applying program architecture principles is a must for any serious application, whatever the language.
    We were studying Bioinformatics.. the 'industry language of choice' back in the early 00's was Perl. All the best books on the subject used Perl. There was no comparable books using Python.

    I eventually ended up coding most stuff in PHP when I finally got a job. Now I just use stupid niche programming languages that are a bit propitiatory.
  • closed
    closed Posts: 10,886 Forumite
    The programming thread has turned into a monitor thread.
    !!
    > . !!!! ----> .
  • samy888
    samy888 Posts: 241 Forumite
    edited 9 April 2014 at 4:59PM
    Ringo_24601, thanks for breaking it down, he probably does understand, but all I got is 'I need a cup of tea' x
  • samy888
    samy888 Posts: 241 Forumite
    closed wrote: »
    The programming thread has turned into a monitor thread.

    Oops, sorry, just wanted to make sure, it is kind of linked.
    I haven't mentioned the desktop yet...
  • closed
    closed Posts: 10,886 Forumite
    edited 9 April 2014 at 5:08PM
    just.. it's a big jump from a chat with a teacher who may start teaching a 14 year old kid next year to start programming in school, to buying a £1000's worth of self built kit and dual 24" monitors, and this that and the other.

    He can learn to program on any PC or laptop, just like he can write a document on any pc or laptop.
    !!
    > . !!!! ----> .
  • samy888
    samy888 Posts: 241 Forumite
    closed wrote: »
    just.. it's a big jump from a chat with a teacher who may start teaching a 14 year old kid next year to start programming in school, to buying a £1000's worth of self built kit and dual 24" monitors.

    Which is why I need all the help I can get!
  • closed
    closed Posts: 10,886 Forumite
    give him your laptop, and tell him to write a program then
    !!
    > . !!!! ----> .
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 352.2K Banking & Borrowing
  • 253.6K Reduce Debt & Boost Income
  • 454.3K Spending & Discounts
  • 245.3K Work, Benefits & Business
  • 601K Mortgages, Homes & Bills
  • 177.5K Life & Family
  • 259.1K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.