Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 25 Jul 2014, 18:16
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Where to start on beginner programming?
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [26 Posts]   Goto page: Previous 1, 2
Author Message
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Sat 12 Jun 2010, 11:48    Post subject:  

Pizzasgood wrote:
For kicks and giggles, type the following into a terminal and press enter (it won't hurt anything):
Code:
\(-
Laughing
Back to top
View user's profile Send private message Visit poster's website 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Sat 12 Jun 2010, 12:17    Post subject:  

vovchik

for me the fist language I leaned was basic
I used to think in basic if you know what I mean

then I had to learn Assembly language for electronics
even though I can code in it its not fun to say the least
that will scare away anyone from writing code

basic on the other hand was the simple way to get something working very fast

in linux bash is the base language knowing how to use it saves you
time and time again

I like Xdialog it is unforgiving for errors but it will follow the gtk theme
you can even push it hard and have it do dynamic menus
with some will to make it work I find it very easy
I have many things I used it for
even a rewrite of slackwares package tools with it ....that was insane
but works beautifully

if you want to check the code
http://www.murga-linux.com/puppy/viewtopic.php?t=55772&start=26

I have been wanting to do something in bacon since you posted
so let me upgrade bash a bit (I'll have to test this a lot before adding it to the next iso )

the compile was clean

Code:
# bash --version
GNU bash, version 4.1.0(1)-release (i686-pc-linux-gnu)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>


just remember bash on puppy is in /bin
when its compiled and packaged its in /usr/bin
so dont forget to put it in just /bin so there isnt two versions installed


Joe

_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Sat 12 Jun 2010, 15:40    Post subject:  

vovchik wrote:
Dear seaside,

Barry K. has included Bacon in Quirky (devx), which is great, and a pet exists here: http://distro.ibiblio.org/pub/linux/distributions/quirky/pet_packages-quirky/. As for the Bash version, Bacon works perfectly with with:


Thanks vovchik,

Downloaded and tried the Quirky Bacon pet on Puppy431. Bacon complained about missing libs and wouldn't work. Barry mentioned that he compiled Quirky Bacon (ooh, that sounds like it might be spoiled Very Happy ) by temporarily installing Bash4.

Since Bash4 was also at that site, I downloaded and installed it. Then compiled the Bacon.bac program using Bash4 under Puppy431 and the resulting Bacon exec seems to work.

I packaged the latest Bacon build 14 with the latest documentation, examples, and HUG files into a pet below, in case any other Puppy users running standard puppy bash3 would like to try it out.

Cheers,
s
bacon-1.0.14-p431.pet
Description  Bacon for Puppy431
pet

 Download 
Filename  bacon-1.0.14-p431.pet 
Filesize  314.85 KB 
Downloaded  269 Time(s) 
Back to top
View user's profile Send private message 
gerry

Joined: 26 Jul 2007
Posts: 946
Location: England

PostPosted: Sat 12 Jun 2010, 18:02    Post subject:  

One thing that you do need in order to start programming is a problem to solve- ie a function that you need, and for which nobody else's solution will be adequate. My first BASH script was a version of Pnethood that ran automaticly at boot, and connected my printer which is attached to a windows computer, without any manual intervention from me. Find a problem to solve, then choose the best tool.


I started programming over forty years ago, with original Dartmouth Basic, and Fortran IV. Got into a position where all I needed was a spreadsheet and PertMaster (or similar) so no more after that.

I think interpreted languages are better for beginners- write it, run it, correct it, run it...... seems more direct and intuitive than compiling.

gerry
Back to top
View user's profile Send private message 
Invisible_Hobo737

Joined: 09 Jun 2010
Posts: 13

PostPosted: Sat 12 Jun 2010, 18:16    Post subject:  

I've been to so many ghost ship forums that its nice to see 17 posts on a simple noobie question...thanks so much guys for all your help...

Much appreciated, all of ya!

Smile

wish me luck
Back to top
View user's profile Send private message 
2lss

Joined: 20 Sep 2009
Posts: 225

PostPosted: Sun 13 Jun 2010, 01:27    Post subject:  

After reading so much about bacon I decided to give it a try and I must say, I am really impressed! I downloaded the ide and made a few 'hello world' programs easy as pie. My only gripe is that you never get to see the c code between converting and compiling. Other than that, I like it Very Happy

Quote:
wish me luck


Good Luck!
Back to top
View user's profile Send private message 
gerry

Joined: 26 Jul 2007
Posts: 946
Location: England

PostPosted: Sun 13 Jun 2010, 02:58    Post subject:  

@Invisible_Hobo737- that's Puppy Linux!

gerry
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6426
Location: Auckland, New Zealand

PostPosted: Sun 13 Jun 2010, 04:01    Post subject:  

You could learn tcl/tk or gnocl and write a killer app to make people bring tcl back Wink
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Sun 13 Jun 2010, 05:01    Post subject:  

Dear 2lss,

You can generate the c code and inspect it by passing bacon the -n option. The documentation file describes all the switches. It can also create shared libs and other objects.

Good luck.

With kind regards,
vovchik
Back to top
View user's profile Send private message 
pa_mcclamrock


Joined: 03 Jun 2005
Posts: 657
Location: Fort Wayne, Indiana, USA

PostPosted: Wed 16 Jun 2010, 05:32    Post subject:  

disciple wrote:
You could learn tcl/tk or gnocl and write a killer app to make people bring tcl back Wink


I learned programming, starting from zero knowledge, with Tcl/Tk. I picked it because it was the easiest general-purpose programming language I could find, including the easiest to produce a GUI in, and there was no wretched compiling required. After some initial difficulties arising from the fact that I didn't know anything about programming, it became almost as easy to write the programs and run them as to write HTML code and display it in a browser. Later on I picked up Gnocl so I could produce a GTK+ GUI using easy Tcl commands. Details available here: http://www.pa-mcclamrock.com/icebox.html#Tcl/Tk. Programs, which I think have pretty comprehensible code that should help you learn the language, available here: http://www.pa-mcclamrock.com/papenguinspacks.html.

_________________
It's stupid to use inferior software for ideological reasons.
--Linus Torvalds

Visit Pa Penguin's Icebox: http://www.pa-mcclamrock.com/icebox.html
Back to top
View user's profile Send private message Visit poster's website 
disciple

Joined: 20 May 2006
Posts: 6426
Location: Auckland, New Zealand

PostPosted: Wed 16 Jun 2010, 07:21    Post subject:  

If anyone does look at tcl they might also like to check out some of Rarsa's old programs - e.g. the tcl/tk tray volume control and the gnocl volume mixer.
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [26 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0859s ][ Queries: 13 (0.0168s) ][ GZIP on ]