SporeBase Forum
January 16, 2018, 01:54:38 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: NOTICE: Outlook email addresses have been universally banned due to an endless wave of bots using this email provider. If you made an account using Outlook and got swept up by the wildcard ban, feel free to rejoin using a more common email provider such as Gmail, etc.
 
   Home   Help Arcade Search Shop Articles Links Gallery Login Register Wiki  
Pages: [1] 2
  Print  
Author Topic: Programming thread  (Read 3489 times)
GoldSpark
3rd Warning (Flaming)
Marine Veteran
***
Posts: 105
612.10 Spice

View Inventory
Send Money to GoldSpark

Software is the world's future.


View Profile
« on: February 21, 2013, 05:17:17 AM »

It would be nice if we had programming thread for some popular languages like: C++, C#, C, Java...python....

What would each topic have?

-Tutorial
-Sample programs

What stickies should "Sample Programs" have?
-Mathematics
-Graphic programs
-How to post your program

Please suggest more if you are interested.If this works out i will immediately post first math solving programs like Fractions, prime numbers, greatest common numbers and lowest common multiples and we can work for start on some small 2D game like pokemon or something.
Logged

MangoJuice
Official Beverage Inspector
Global Moderator
Strategic Assistant
*****
Posts: 2475
12626.80 Spice

View Inventory
Send Money to MangoJuice

Probably


View Profile WWW
« Reply #1 on: February 21, 2013, 07:33:33 AM »

What is this thread? Are we supposed to discuss programming here or are you asking us to do something different with the forums?
Logged

GoldSpark
3rd Warning (Flaming)
Marine Veteran
***
Posts: 105
612.10 Spice

View Inventory
Send Money to GoldSpark

Software is the world's future.


View Profile
« Reply #2 on: February 21, 2013, 08:30:42 AM »

What is this thread? Are we supposed to discuss programming here or are you asking us to do something different with the forums?

Its like Game Design thread like this Suggestion thread but just other. Just to add possibility for programming talks. Maybe some people join. We can talk about algorithms edit some  applications(Modding as you wish in short Cheesy). What you think? Smiley

EDIT: Sorry for my ultimate retarded grammar.
« Last Edit: February 21, 2013, 08:31:26 AM by GoldSpark » Logged

GoldSpark
3rd Warning (Flaming)
Marine Veteran
***
Posts: 105
612.10 Spice

View Inventory
Send Money to GoldSpark

Software is the world's future.


View Profile
« Reply #3 on: February 21, 2013, 08:52:09 AM »

Here for example i post in Mathematics section in programming thread how to make simple fraction class. Then users can plug in adding, multiplying, dividing...(i can add that too but for start i will just add shorting the given fraction like 4/2 we can make in just number 2 4 = 2 and 2 = 1 2/1 = 2).


This is in C++ language.

#include <iostream>
#include <cstdlib>  //cstdlib is included with iostream but i like manual job
   
using namespace std; //so we dont use std:: in front of standard library members
    //now the class

class Fraction{
public:
int num; //Numerator
int den; //Denominator
public:
void set(int n, int d){num = n; den = d; normalize();}
int get_num(){return num;}
int get_den(){return den;}
private:
void normalize();
//For now i will include lcm but it still doesent have use
int lcm(int a, int b){int n = gcf(a, b); return a / n * b;}
int gcf(int a, int b);
};

//I wont use int main here i will just define function members
void Fraction::normalize()
{
 
  if(den == 0 || num == 0)
{
  num = 0;
  den = 1;
}

 if(den < 0)
{
  num *= -1;
  den *= -1;
}

int n = gcf(num, den);
num /= n;
den /= n;

}

int Fraction::gcf(int a, int b)
{
 
if(b == 0)
return a;
else
return gcf(b, a%b);

}

« Last Edit: February 21, 2013, 08:54:18 AM by GoldSpark » Logged

MangoJuice
Official Beverage Inspector
Global Moderator
Strategic Assistant
*****
Posts: 2475
12626.80 Spice

View Inventory
Send Money to MangoJuice

Probably


View Profile WWW
« Reply #4 on: February 21, 2013, 06:21:19 PM »

Are you asking us to make a programming section? Because a thread is what you just made here.
Logged

GoldSpark
3rd Warning (Flaming)
Marine Veteran
***
Posts: 105
612.10 Spice

View Inventory
Send Money to GoldSpark

Software is the world's future.


View Profile
« Reply #5 on: February 22, 2013, 02:04:59 AM »

Yeah that  Cheesy Cheesy Cheesy Cheesy. Hahaha sorry... Cheesy
Logged

MangoJuice
Official Beverage Inspector
Global Moderator
Strategic Assistant
*****
Posts: 2475
12626.80 Spice

View Inventory
Send Money to MangoJuice

Probably


View Profile WWW
« Reply #6 on: February 22, 2013, 03:09:05 AM »

I don't really think we need one. Nobody around here actually talks about programming enough to warrant an entire section.
Logged

GoldSpark
3rd Warning (Flaming)
Marine Veteran
***
Posts: 105
612.10 Spice

View Inventory
Send Money to GoldSpark

Software is the world's future.


View Profile
« Reply #7 on: February 23, 2013, 08:57:42 AM »

I thought it would lure some people who see that forum is less active and that they can have an idea to begin posting their codes here for start of their forum programming hobby xD Cheesy. Something like that Cheesy
Logged

MangoJuice
Official Beverage Inspector
Global Moderator
Strategic Assistant
*****
Posts: 2475
12626.80 Spice

View Inventory
Send Money to MangoJuice

Probably


View Profile WWW
« Reply #8 on: February 23, 2013, 04:40:29 PM »

Well, you could always make a programming discussion thread. That should have a similar effect without cluttering up the index.
Logged

GoldSpark
3rd Warning (Flaming)
Marine Veteran
***
Posts: 105
612.10 Spice

View Inventory
Send Money to GoldSpark

Software is the world's future.


View Profile
« Reply #9 on: February 23, 2013, 06:08:34 PM »

Well, you could always make a programming discussion thread. That should have a similar effect without cluttering up the index.

Where can i create such thread?
Logged

SporeCheater
Administrator
Officer
*******
Posts: 875
3518.05 Spice

View Inventory
Send Money to SporeCheater


View Profile
« Reply #10 on: February 23, 2013, 06:52:18 PM »

I kind of like the idea of a programing section. That was originally part of what I wanted game design to follow. We could re-work game design into an overall programing section instead. Let me know what you think.
Logged


GoldSpark
3rd Warning (Flaming)
Marine Veteran
***
Posts: 105
612.10 Spice

View Inventory
Send Money to GoldSpark

Software is the world's future.


View Profile
« Reply #11 on: February 25, 2013, 08:31:38 AM »

I agree.
Logged

Amber
MISUSE OF AA PRIVILEGES HERE
Administrative Assistant
Captain
*****
Posts: 1989
1370.90 Spice

View Inventory
Send Money to Amber

Mountain Dew is my life's blood


View Profile
« Reply #12 on: March 10, 2013, 09:18:06 PM »

I think the programming section could be a major section of the forum, with all the hacking/modding boards becoming child boards because technically, those are programming. Adding a general coding and programming board seems like a good idea to me. Even if it might not gain much activity straight away, it could attract a new member base.

EDIT: and I basically just reiterated SC's idea. I'm all for it. This would be hella fun for me because I want to scrape the rust off of my Java skills and learn to code goofy word games for self-amusement. I'm bored a lot these days and it would make use of my brain cells okay
« Last Edit: March 10, 2013, 09:21:08 PM by Amber » Logged

vexx32
1st Commendation
Visiting Administrator
Lieutenant
*
Posts: 1059
2114.10 Spice

View Inventory
Send Money to vexx32

Vengeance Warrior [1st Commmendation]


View Profile
« Reply #13 on: March 10, 2013, 11:30:10 PM »

Why do I get the weird feeling that having a programming board would lead to someone tossing around ideas for coding viruses...? O.o
Logged


Minecraft Username: vexx32
MangoJuice
Official Beverage Inspector
Global Moderator
Strategic Assistant
*****
Posts: 2475
12626.80 Spice

View Inventory
Send Money to MangoJuice

Probably


View Profile WWW
« Reply #14 on: March 11, 2013, 03:24:50 AM »

I know I'm not the administrator here, but we really don't need a programming board. The whole point of a section is to simply organize threads into one dedicated area. We don't have any such threads, so the board would be very redundant.

What I suggest is to simply make a programming thread and if it gets too big for its own good, then we can split it up into threads, and if need be, an entire section for it.
Logged

Pages: [1] 2
  Print  
 
Jump to:  


+-Today's Birthdays
Oistin16 (49), Oscarweatherburn (49), DarkSideGrox (23), kentl3vy (37), quincebird1 (36), cone2sort (43), grasssleep5 (34), verse6net (37), yarn99motion (38), violawoolen82 (40), pullsheet7 (34), land9robin (39), deal08oval (41), coursefriday80 (34), james83bamboo (36), pink9neck (39), june7double (39), hobbscapr74 (41), cork69bush (41), haildeal1 (37), flesh8planet (34), squash45napkin (39), coachcrocus89 (43), soda8sort (33), blousefloor98 (33), Ray (218), Mike2 (38)
Powered by EzPortal
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
SMF customization services by 2by2host.com
Valid XHTML 1.0! Valid CSS!