The Official Programming Thread

gullfounder

Phoenix Dawn
Supervisor
Aug 25, 2008
970
3
24
Khanpur
Guys i just learnt Ruby... still have to learn OOP in Ruby but before that i was thinking of making some simple programs so that i can use the knowledge i have gained and you know i will be able to memorize it all... So i want some ideas on what program should i make...Code academy had an exercise where i made program which
1) stores My Movies and their ratings
2) Updates existing content
3) Delete existing content

So yeah programs like these will help me use all the knowledge making it easier to memorize all the methods etc.... Unfortunately i can't think of any... :p If anyone can help give some ideas it'll be great
Try making a calculater. That can store up to 50 calculations.

Another try making unit converters. Like kg to garam. Kilometer to meter.
 

puppet

Well-known member
Sep 30, 2013
2,169
0
42
hmm good idea i'll start with that.... by storing you mean that you want to access you result again like there is M+, M- ?
you can create an auction application , inventory system , library system , shopping management , hotel management blah blah blah , so many things are there we can create :)
btw whats your level ? :)
 

EternalBlizzard

Lazy guy :s
Moderator
Oct 29, 2011
2,732
1,195
129
Attractor Field Beta
you can create an auction application , inventory system , library system , shopping management , hotel management blah blah blah , so many things are there we can create :)
btw whats your level ? :)
By level what do you mean? You mean in what year i am? I've completed F.SC, will apply for UBIT this year....
 

puppet

Well-known member
Sep 30, 2013
2,169
0
42
By level what do you mean? You mean in what year i am? I've completed F.SC, will apply for UBIT this year....
i meant your programming level,
ok done fsc its mean you are a beginner , well for now focus on problem solving , debugging and cleaning the codes , later then you can go with difficult problems , you will enjoy this field alot ;)
 

EternalBlizzard

Lazy guy :s
Moderator
Oct 29, 2011
2,732
1,195
129
Attractor Field Beta
i meant your programming level,
ok done fsc its mean you are a beginner , well for now focus on problem solving , debugging and cleaning the codes , later then you can go with difficult problems , you will enjoy this field alot ;)
by debugging you mean finding error in codes? and by cleaning the codes you mean refactoring them like changing what it looks like but does the same thing?
But how do i do it? :D I don't have any codes or pre built program i could debug...
 

puppet

Well-known member
Sep 30, 2013
2,169
0
42
by debugging you mean finding error in codes? and by cleaning the codes you mean refactoring them like changing what it looks like but does the same thing?
But how do i do it? :D I don't have any codes or pre built program i could debug...
cleaning means make your program efficient , its gonna be so much bad for a programmer, because srsly i had so much problems in past due to this , do you know how to work with functions? well go with OOP then take care of efficiency later,

debug not your own code but any code you see you should be able to fix it , as i do ix the codes of my mates :p


hmmmm well i can help you in making projects , but as you mentioned ruby i dont know everything about it but as gulf said first create a calculator ,
i'd say make simple one , try to make it with less line of codes , then after being satisfied update it by adding more functions/features in it , and so play with it( with the code ofc)
* when your code will be clean you will be good enough to make it debug easily

so go with these things first , bcz i remember when i started learning programming , designing algo n converting it into code was the only thing for us :)
 

EternalBlizzard

Lazy guy :s
Moderator
Oct 29, 2011
2,732
1,195
129
Attractor Field Beta
cleaning means make your program efficient , its gonna be so much bad for a programmer, because srsly i had so much problems in past due to this , do you know how to work with functions? well go with OOP then take care of efficiency later,

debug not your own code but any code you see you should be able to fix it , as i do ix the codes of my mates :p


hmmmm well i can help you in making projects , but as you mentioned ruby i dont know everything about it but as gulf said first create a calculator ,
i'd say make simple one , try to make it with less line of codes , then after being satisfied update it by adding more functions/features in it , and so play with it( with the code ofc)
* when your code will be clean you will be good enough to make it debug easily

so go with these things first , bcz i remember when i started learning programming , designing algo n converting it into code was the only thing for us :)
Thanx i'l try doing this.. but first i wanted to ask what's the difference between a compiler and an IDE....
I read Ruby is interpreted meaning it don't need no compiler...
I worked with C# in the past ... in order to write programs i used Visual Studio 2010.... i need a similar kind of program for Ruby but i can't find one :s
Awrite i found a text editor and installed Ruby... but still clear the compiler vs ide thingy
 
Last edited:

mubaidr

Me Gusta
Jan 15, 2010
1,859
3
44
Rawalpindi
mubaidr.github.io
first i wanted to ask what's the difference between a compiler and an IDE....
I read Ruby is interpreted meaning it don't need no compiler...
IDE = Integrated development environment, which usually includes a code editor and access to other tools like compiler.

Compiler is a tool which converts the program to machine readable or executable file.


e.g. Visual studio 2010 is IDE, which also includes a compiler, when you build project, it compiles code files to make them executable in respected format
 
Last edited:

staticPointer

PG LEGENDARY
Dec 7, 2012
3,266
0
41
افغانستان
www.pakgamers.com
This is because most of the work being done here is outsourced by the contractors from other countries, which, obviously, is not favorable for mentioned type of projects (robotics + machine learning). Plus we do not have any applications of these fields, result is we have no industries here. Even, i think, Machine learning is less adopted in research fields too.

This is what i think, please correct me if i am wrong.

not only outsources rather lazy project and fazol se project i mean to say (free lacners)... ML is NOT less adopted ..ye rozana ki life mei ho thi h like making s/w, h/w .. its now a part of cs ..
 

staticPointer

PG LEGENDARY
Dec 7, 2012
3,266
0
41
افغانستان
www.pakgamers.com
I agree on your point. There is not interest in these types projects. Also its true that sw here are just out sourceing. So, there is no real research going on here nor any type of work.

In my last year. I programmed atml chip to communicate over radio wave with computer. Using this i created a simple car with on board camera gps and ir. Camera would send live video over radio too. But i used seprate channel for that. Atml was programmed in c and c# app was developed to controll it from laptop or pc.

Since then i never touched any hardware project. Although i love to work on arduion board or .net hardwarea.
famous s/w houses like i2c, netsol, pasha making projects in android, web ya small apps .. i find most of s/w houses working in android, java, c# bla bla lang whch i didnt liked it alot !!!

yes, mery dost ne fyp banya tha room censor ka using android and web (c#, mvc etc etc) .. it was realy nice but now he dont wanna talk abt that .. same is the case with u as him

- - - Updated - - -

When i say less adopted, i meant in Pakistan. :) Most of the work done here is image processing based.
han bikil dip pe kam hota h ya ho rha h but market mei dip ka banda hy he NEI !!!! bcz no one knows what is DIP !!!!

- - - Updated - - -

@Eternal Blizzard - so u learnt ror right ?? now must be familiar with python and system programming (sp) ??
 

EternalBlizzard

Lazy guy :s
Moderator
Oct 29, 2011
2,732
1,195
129
Attractor Field Beta
@Eternal Blizzard - so u learnt ror right ?? now must be familiar with python and system programming (sp) ??
I have learnt Ruby not completely... i have yet to learn OOP in ruby plus i thought Ruby on Rails was different? it was for web development i guess? Anid Ruby is my first or to be more exact 2nd language.... i haven't learnt python.... I intend to complete my RPGMaker project after learning Ruby as that engine uses Ruby
 

EternalBlizzard

Lazy guy :s
Moderator
Oct 29, 2011
2,732
1,195
129
Attractor Field Beta
[MENTION=104069]puppet[/MENTION] [MENTION=5658]gullfounder[/MENTION]

I tried making a calculator but it will only work for two numbers.... What if i infinitely wanted to add random numbers... will i have to declare infinite variables holding their result...absolutely no i guess?
Do i need to learn OOP before that? I haven't touched classes yet...
 

MegamanEXE

Well-known member
Dec 7, 2007
1,958
1
43
28
Islamabad
@puppet @gullfounder

I tried making a calculator but it will only work for two numbers.... What if i infinitely wanted to add random numbers... will i have to declare infinite variables holding their result...absolutely no i guess?
Do i need to learn OOP before that? I haven't touched classes yet...
With 2 numbers done, you can do something like this.
2+2=4

Now store 4 in the first variable, and add a third number to the second variable and on and on. Something like that.
 
General chit-chat
Help Users
We have disabled traderscore and are working on a fix. There was a bug with the plugin | Click for Discord
  • No one is chatting at the moment.
    NaNoW NaNoW: ....