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,860
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.
  • Necrokiller Necrokiller:
    The only valid thing from his pov he said in the video is AC dead since Black Flag. According to woke police that game was woke too. Welsh man in West Indies. So atleast he's consistent I guess lol
    Link
  • Link
  • XPremiuM XPremiuM:
    Necrokiller said:
    It's based on an actual real life person so I don't think the woke police have a valid case here.
    Nope. They have a very valid case. The above video explains it all.
    Link
  • Necrokiller Necrokiller:
    It's based on an actual real life person so I don't think the woke police have a valid case here.
    • Like
    Reactions: SolitarySoldier
    Link
  • XPremiuM XPremiuM:
    Meanwhile Ghost of Tsushima PC version is out now. Looks 100 times better than ASS Creed already.
    Link
  • XPremiuM XPremiuM:
    Did y'all see the new Assassin's Creed trailer? They finally made a AC set in Japan & then they put a negro as the male protagonist. Ubisoft is taking cues from Disney, and it isn't gonna end well for them, just like Disney. Go woke, go broke!
    Link
  • Necrokiller Necrokiller:
    First Fallout 4 update and now this 🤡
    Link
  • Necrokiller Necrokiller:
    MS and Bethesda continuing their streak of massive Ls 😬
    Link
  • Link
  • funky funky:
    Hello
    Link
  • NaNoW NaNoW:
    by closing down good studios
    Link
  • NaNoW NaNoW:
    well he is breaking barriers
    • Like
    Reactions: KetchupBiryani
    Link
  • iampasha iampasha:
    SolitarySoldier said:
    Phil keeps talking about breaking barriers to gaming, making it accessible on all platforms yada yada, while killing competition and creativity at the same time. the fact that i actually believed him for a second lol
    guys the biggest yapper in the Industry right now. All he do is yap
    Link
  • Necrokiller Necrokiller:
    Phil should be held responsible for this shitfest too, just like Sarah, but it's highly likely that these decisions are coming from Satya. And this isn't even the end of it. More closures are coming.
    Link
  • SolitarySoldier SolitarySoldier:
    if we are moving towards more and more popular trash across platforms that make billions for companies, I'm happy with all the barriers and exclusivity because at least that brings some pressure to create good stuff.
    Link
  • SolitarySoldier SolitarySoldier:
    Phil keeps talking about breaking barriers to gaming, making it accessible on all platforms yada yada, while killing competition and creativity at the same time. the fact that i actually believed him for a second lol
    Link
  • SolitarySoldier SolitarySoldier:
    "These changes are not a reflection of the creativity and skill of the talented individuals at these teams or the risks they took to try new things" ... seems to me that's exactly what it is
    Link
  • SolitarySoldier SolitarySoldier:
    why make good games when u can just buy everyone and shut them down lol
    Link
  • XPremiuM XPremiuM:
    I'm gonna say one last time, F*** Microsoft to infinity!
    Link
  • XPremiuM XPremiuM:
    Microsoft deserves all the hate they can get. Seriously i can't explain how much i want to curse them out.
    Link
  • XPremiuM XPremiuM:
    They could've sold the studios instead of closing them, but the nazi bastards just didn't want competition down the road.
    Link
  • Link
  • XPremiuM XPremiuM:
    F*** Microsoft, and F*** their fanboys.
    Link
  • XPremiuM XPremiuM:
    What's the f*** is wrong with them? I mean really? Have they completely lost it? F***ing retards.
    Link
  • XPremiuM XPremiuM:
    So i just found out that f***ing s***bag Microsoft shut down Arkane Studio (makers of the brilliant Dishonored series) and Tango Gameworks (makers of the iconic The Evil Within series), among some other studios. I just want to say a giant F*** Y**! to Microsoft. THEY'VE F***ED UP BIG TIME this time.
    Link
    Necrokiller Necrokiller: The only valid thing from his pov he said in the video is AC dead since Black Flag. According to...