Author Topic: Coding and Scripting  (Read 12529 times)

Offline venks

  • Full Member
  • ***
  • Posts: 163
    • Sri Agathiar Sanmarka Sanggam
Re: Coding and Scripting
« Reply #15 on: November 22, 2009, 07:09:46 PM »
Hi,
this is an intersting topic for me.  I was thinking of starting a project myself but am too busy/lazy to get started.

Chomp, you can use Kdevelop to do your coding, there you don't have to worry about which syntax to use to compile as the IDE should take care of it for you.

As for me, I come from C/C++ background on Windows but have not touched it for the past 5 years.  But always have this nagging at the back of my mind to go back to programming.  Atleast as hobby project.

Coming to project, I found there is a need for KDE/Linux users to share folders and documents easily with their friends & collegues on the same network.  Imagine if you will, an IM like plasmoid that tells you who else are logged in to other systems.  You can click on a user and if it the first time you are connecting to the user it will ask for permission from that user to add as a friend.  Once a friend is added, you can share folders and files with them and view what they share with you.  So individual firends can have different shares.

So everytime you want to access a friends share, you will have to "knock" on their PC (actually session) and ask to be allowed to come in to get the files or folders you want to view.  You can only "come in" if your friend allows you or if you are among the trusted friends list.

Now, what do you guys/gals think about this?

Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3793
Re: Coding and Scripting
« Reply #16 on: November 22, 2009, 07:18:37 PM »
I've run several C and C++ tutorials over the last several years. At first, I had a terrible time setting up the build environment. Then, getting the graphical examples to build was a hurdle. But, each time I was done, I still didn't know enough to go out and work on a real project. So, if we are going teach/learn together, I think we should go through everything step by step. This includes system setup, the language basics (one language only, at first), the gui toolkit (again, only one at first), and very similar if not exactly the same tasks.

Neal, I would be honored to be an associate teacher. I don't know much about coding (other than html), but I can participate and make suggestions to keep the focus and forward momentum. :D

Galen

Offline Chomp

  • Full Member
  • ***
  • Posts: 173
Re: Coding and Scripting
« Reply #17 on: November 22, 2009, 07:29:28 PM »
Chomp, you can use Kdevelop to do your coding, there you don't have to worry about which syntax to use to compile as the IDE should take care of it for you.

That is true but I think it's important to understand at least the basic concepts of C++(or whatever language you're going to learn) before moving on to using an IDE, but I fully plan on using Kdevelop when I feel I am ready  :).  Additionally, I think Kdevelop would intimidate me at first(too many things I am unfamiliar with to look at) and would like to keep it simple with just a text editor(for now), but that's me.  Thank you for your suggestion though!

Edit:

Coming to project, I found there is a need for KDE/Linux users to share folders and documents easily with their friends & collegues on the same network.  Imagine if you will, an IM like plasmoid that tells you who else are logged in to other systems.  You can click on a user and if it the first time you are connecting to the user it will ask for permission from that user to add as a friend.  Once a friend is added, you can share folders and files with them and view what they share with you.  So individual firends can have different shares.

So everytime you want to access a friends share, you will have to "knock" on their PC (actually session) and ask to be allowed to come in to get the files or folders you want to view.  You can only "come in" if your friend allows you or if you are among the trusted friends list.

Now, what do you guys/gals think about this?

There is all ready an existing project very similar to this called Opendesktop which you can find in Add Widgets via the cashew.  Opendesktop "...places a plasmoid on the desktop where users can find other KDE users in the same city or region. You can contact users, ask questions, become friends and do screensharing".    Doesn't appear to offer folder and file sharing, but the code and API already exists, so someone could either attempt to add your suggestions to the Opendesktop plasmoid, or use the source code as an example to assist them in building a new plasmoid based on your idea.
« Last Edit: November 22, 2009, 07:52:10 PM by Chomp »

duxbookstore

  • Guest
Re: Coding and Scripting
« Reply #18 on: November 22, 2009, 08:17:38 PM »
Dang all this from a simple request for a programming section because I do not understand gambas.

I read somewhere "we teach best what we we need to learn most."

Then I ran into my college psych teacher some 20 years later and he told me that he was going to the university and would just teach us what he learned the day before.

We tore that poor man apart!

I am open to any language but liked the fact that gambas was similar to VB and VFP with I used under windows. It is a basic language so we should all be able to learn it.

Of course if I need to connect to a mysql database I might as well use PHP and then I can run under windows and on the web.

Bernie 


Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Coding and Scripting
« Reply #19 on: November 22, 2009, 09:45:32 PM »
Okay, so lets start with some basic stuff.

In both coding and scripting languages, symbols other than letters and numbers are used. This example -->
Code: [Select]
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    return a.exec();
}

contains such symbols. (This is C++ -- QT Creator was used in its creation.) The { and the } wrap the rest of the code. Used in this manner, they show a block of code. There may be many blocks of code in any given program. Other languages may define these differently.
The other symbols, ();.  and ,  have their "definitions," also.
So add to this. Define the usage of these symbols, please. Create a block of code, if you will and define how and why the symbol is used.


Online wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2436
  • Any Bugs in site?
Re: Coding and Scripting
« Reply #20 on: November 23, 2009, 04:26:16 PM »
When the script is a couple of pages long  ;D, I would say it is time for using syntax higlighting editor?
I think both kwrite and I know kate can. Which editor are you choosing/suggesting  ;D
« Last Edit: November 23, 2009, 04:59:21 PM by wedgeling »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Coding and Scripting
« Reply #21 on: November 23, 2009, 05:24:09 PM »
Who are you asking?

I use kwrite most often, though sometimes I switch to kate. Scribes is an excellent editor for C, though you should really know C, if you use it. For smaller files, I may use Leafpad on occasion.


Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3793
Re: Coding and Scripting
« Reply #22 on: November 23, 2009, 09:34:35 PM »
I like kwrite. No emacs or vi here, just rookie stuff!

Galen

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Coding and Scripting
« Reply #23 on: November 23, 2009, 09:40:54 PM »
BTW, for those who have not used it, Leafpad has two versions - the GUI version and bin.leafpad. Check it out sometime.


Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: Coding and Scripting
« Reply #24 on: November 24, 2009, 07:02:25 AM »
Give tea a try, you may or may not like it, but it's pretty kool.  Syntax highlighting for a lot of languages, a "run" option (which I haven't configured yet) and tab between documents instead of a separate window for each. More features than I have had time to explore.
« Last Edit: November 24, 2009, 07:04:51 AM by Joble »
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Online wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2436
  • Any Bugs in site?
Re: Coding and Scripting
« Reply #25 on: November 24, 2009, 04:07:40 PM »
How do I find in Synaptic? I have searched (I think) but a quick look did not show.  Funny the name seems familiar, perhaps from Puppy Linux
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Coding and Scripting
« Reply #26 on: November 24, 2009, 04:18:43 PM »
Wedgeling,
Search for teaqt (kde) or teagtk (gnome, lxde, xfce).


Online wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2436
  • Any Bugs in site?
Re: Coding and Scripting
« Reply #27 on: November 24, 2009, 05:34:59 PM »
Neal,
thank you, I even expected it would be something like that, I got a lot answers in the search box, but tid not really make sense as tea was not in any of the lines I checked right through.  Repeating the search just now using tea and knowing it ought to be way down in the list, it was there. I will blame myself.

Have installed and had a very quick look. I am interested as it seem rather powerful deserve a closer look.

Just noticed that I had Scite installed as well and this also have syntax/language selection a mile long.
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3793
Re: Coding and Scripting
« Reply #28 on: November 24, 2009, 10:46:12 PM »
I think we should start with something fairly simple, like how to open a text file, add a line of text, save and close. Then, how to compile and run. What do you think?

Galen

duxbookstore

  • Guest
Re: Coding and Scripting
« Reply #29 on: November 25, 2009, 06:45:40 AM »
I think we should start with something fairly simple, like how to open a text file, add a line of text, save and close. Then, how to compile and run. What do you think?

Galen

Ok so we seem to be talking C, C++ for our language?

My suggestion being a complete newbie more or less to this language would be start very basic so us "stupid" people do not get lost, would be naming conventions we want to use and terminology, etc...

use of tabs versus spaces etc... This should get us all on the same page then we can figure out an open source project that we can all help create and give credit to users of PCLINUX OS

I have a million ideas on projects we could accomplish.

Bernie