Page 1 of 6 123 ... LastLast
Results 1 to 10 of 57

Thread: Can someone explain to me how to write a program.

  1. #1
    Join Date
    Jul 2010
    Beans
    24
    Distro
    Ubuntu 10.04 Lucid Lynx

    Can someone explain to me how to write a program.

    Can some one explain to me what programing is. It may seem like a dumb question, but that is some thing that i have always wanted to know how to do. So if you can help me learn how to do build a program or show me how. It would be nice thanks you.

  2. #2
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Can someone explain to me how to write a program.

    You need to learn a programming language, before you can write programs. I would suggest python, as it uses almost plain english syntax.

    For a tutorial, have a look http://docs.python.org/tutorial/

  3. #3
    Join Date
    Jun 2010
    Beans
    2

    Re: Can someone explain to me how to write a program.

    If you want a quick look at what's involved, there are plenty of youtube videos that would give you a bit of insight.

    I wouldn't recommend them for actually learning though.

  4. #4
    Join Date
    Jul 2010
    Beans
    24
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Can someone explain to me how to write a program.

    thanks for the tips

  5. #5
    Join Date
    Jun 2007
    Location
    Paraparaumu, New Zealand
    Beans
    Hidden!

    Re: Can someone explain to me how to write a program.

    Forum DOs and DON'Ts
    Please use CODE tags
    Including your email address in a post is not recommended
    My Blog

  6. #6
    Join Date
    Jul 2008
    Location
    Sydney Australia
    Beans
    343

    Re: Can someone explain to me how to write a program.

    You can start with scripting if you already know some terminal commands. You can do some simple GUI scripts using zenity.

    Here is an example of a sleep timer script I did for someone (It needs to be run with sudo)
    Code:
    #!/bin/bash
    echo "Sleep Timer."
    TimeMinutes=$(zenity --entry --title "Sleep Timer" --text "How long before shutdown? (minutes)" --entry-text "30");
    TimeSeconds=$(($TimeMinutes * 60))
    if [ $TimeMinutes = 1 ]
      then
        echo "System power off in 1 minute. ($TimeSeconds seconds)"
      else
        echo "System power off in $TimeMinutes minutes. ($TimeSeconds seconds)"
    fi
    sleep $TimeSeconds
    echo "powering off now..."
    poweroff
    Once you learn how a program 1 language it is quite easy to learn program others.

  7. #7
    Join Date
    Jan 2008
    Beans
    4,305

    Re: Can someone explain to me how to write a program.

    Here are some links. I also recommend Python, it is very easy to see real results with it, even if you are a bit of an idiot like me.

    https://help.ubuntu.com/8.04/program...o-program.html
    https://help.ubuntu.com/community/Programming/Python

    Software written in python:

    Exaile Music Player
    Anaconda (Fedora Installer)
    Emesene Messenger
    Pitivi Video Editor
    Ubuntu Software Center

  8. #8
    Join Date
    Sep 2005
    Beans
    1,596
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: Can someone explain to me how to write a program.

    Quote Originally Posted by NightwishFan View Post
    Here are some links. I also recommend Python, it is very easy to see real results with it, even if you are a bit of an idiot like me.

    https://help.ubuntu.com/8.04/program...o-program.html
    https://help.ubuntu.com/community/Programming/Python

    Software written in python:

    Exaile Music Player
    Anaconda (Fedora Installer)
    Emesene Messenger
    Pitivi Video Editor
    Ubuntu Software Center
    You just showed me how powerful Python can be, I just switched to Exaile as Rhythmbox seemed "bulky" and Pitivi is awesome, just so much python no wonder I love it.

    Python is easy
    MBA M1 - M1 8GB 256GB - macOS Monterey
    MSI GL65 - i5-10300H 16GB 512GB GTX 1650 Windows 11
    Galaxy Book Go - Snapdragon 7c Gen 2 4GB 128GB Windows 11

  9. #9
    Join Date
    Jul 2010
    Beans
    24
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Can someone explain to me how to write a program.

    how many different languages are there?

  10. #10
    Join Date
    Jul 2010
    Beans
    24
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Can someone explain to me how to write a program.

    is there the names of the converters that are really good on the 10.04

Page 1 of 6 123 ... LastLast

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
  •