Homebrew will writing 3ds homebrew in c instead of c++ limit me?

geffgeff

New Member
OP
Newbie
Joined
Jan 6, 2022
Messages
2
Trophies
0
Age
32
XP
34
Country
Australia
hey all, im deciding if i should write my homebrew game in c or c++, even though they both compile to arm assembly at the end of the day (at least i think).

i already know c, mainly because i chose it over the behemoth, that is c++. would using c for my homebrew game limit me, should i just use c++? because i know a majority of nintendo titles use c++ for the 3ds, so im wondering if i should just suck it up, and learn c++, or continue developing it in c.

thanks for the input
 
  • Like
Reactions: Nutez
Solution
It is mostly a paradigm shift. If you are more of a functional programmer you will do fine with just C. Source code can look bit scrambled if you do not take proper measures and organice your sources and your headers properly but so does C++. If you are more of a natural programmer you will struggle a bit in C as you will find yourself struct-ing most of your data to give it shape. I personally find OOP the most handy tool for memory control/memory management/memory leak management specially if you are willing to write your own objects from scratch.

In no way C++ "is a behemoth". Sure it has plenty of features but its up to you as a developer to choose wether to to use them or not. Unused features are not compiled into the objects...

Urbanshadow

Well-Known Member
Member
Joined
Oct 16, 2015
Messages
1,578
Trophies
0
Age
33
XP
1,723
Country
It is mostly a paradigm shift. If you are more of a functional programmer you will do fine with just C. Source code can look bit scrambled if you do not take proper measures and organice your sources and your headers properly but so does C++. If you are more of a natural programmer you will struggle a bit in C as you will find yourself struct-ing most of your data to give it shape. I personally find OOP the most handy tool for memory control/memory management/memory leak management specially if you are willing to write your own objects from scratch.

In no way C++ "is a behemoth". Sure it has plenty of features but its up to you as a developer to choose wether to to use them or not. Unused features are not compiled into the objects generated. You can throw your C code to the g++ compiler and most likely it will do perfect first try. You can avoid the stl alltogether if that worries you.

TL;DR: No it wont limit you. Language of choice will only help you organice your code. If did well, code generated will be the same either you choose.
 
Last edited by Urbanshadow,
  • Like
Reactions: Nutez
Solution

geffgeff

New Member
OP
Newbie
Joined
Jan 6, 2022
Messages
2
Trophies
0
Age
32
XP
34
Country
Australia
In no way C++ "is a behemoth". Sure it has plenty of features but its up to you as a developer to choose wether to to use them or not. Unused features are not compiled into the objects generated. You can throw your C code to the g++ compiler and most likely it will do perfect first try. You can avoid the stl alltogether if that worries you.
huh, alright then! i might dive into c++, i'll check it out. thank you!
 

IC_

GBAtemp's ???
Member
Joined
Aug 24, 2017
Messages
1,571
Trophies
1
Location
The Forest
XP
5,490
Country
Antarctica
I don't think it will really limit you in any way, since I'm pretty sure that almost all of the 3DS homebrew development libraries are still written in C with no C++ version, so even if you were trying to write everything with OOP and in "the C++ way", you would still have to go back to writing C-style code for interacting with the 3DS libraries. Of course it's no problem if you want to use OOP and modern C++ features, but otherwise using C is really unlikely to limit you at all if you're already used to it, in fact writing modern C++ in this case might just result in messier code since you'll have to interact with standard C libraries all the time anyway.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    hmmm 360 even lol
  • Psionic Roshambo @ Psionic Roshambo:
    Well I was getting a discount so 320 is probably right
  • BigOnYa @ BigOnYa:
    That is cheap, I used to pay $100 for a tine.
  • Psionic Roshambo @ Psionic Roshambo:
    Tine? One gram?
  • BigOnYa @ BigOnYa:
    Sixteenth
  • Psionic Roshambo @ Psionic Roshambo:
    Also it was literally out of a kilo when I got it off the boat so absolutely pure
  • Psionic Roshambo @ Psionic Roshambo:
    Holy shiz that's a lot
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I was getting 3.5 Grams for 320 could have stepped on it and doubled my money easy lol
    +1
  • BigOnYa @ BigOnYa:
    I'd be afraid to it nowdays, my heart would explode prob. I just stick beers n buds nowdays.
  • Psionic Roshambo @ Psionic Roshambo:
    I would get to drive from tarpon springs to like Miami a thousand bucks lol do that twice a week and back in 92 that was good money
  • Xdqwerty @ Xdqwerty:
    @BigOnYa,
    @Psionic Roshambo what are you guys talking about?
  • Psionic Roshambo @ Psionic Roshambo:
    Blew it on women and muscle cars lol
    +1
  • BigOnYa @ BigOnYa:
    @Xdqwerty Hamster food, its pricey nowadays to keep PCs running.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    I don't do anything except cigarettes and gotta stop eventually lol
    +1
  • BigOnYa @ BigOnYa:
    I'd do shrooms again if could find, and I was outside camping/fishing, and had a cooler full of beer.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I wouldn't mind some LSD, laughing until my face hurt sounds fun lol
    +1
  • BigOnYa @ BigOnYa:
    You ever try soaper powder/qauludes? I did once and like a dumbass drank beer on top of taking, I woke up laying in my backyard in the pouring rain, it knocked me out. I have not seen it around in many many years.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    No never tried a lot of things but never that lol
  • Psionic Roshambo @ Psionic Roshambo:
    I did pass out one time on a floor after taking a bunch of Ambien lol thought it would help me sleep and did it lol
  • Psionic Roshambo @ Psionic Roshambo:
    Girlfriend was working at a pharmacy and stole like 500 of them, was and still is the biggest pill bottle I have ever seen lol
  • K3Nv2 @ K3Nv2:
    Ativan is pretty legit
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    The last time I had to take something to help me sleep, I was prescribed Trazadone it was pretty OK to be honest.
  • Psionic Roshambo @ Psionic Roshambo:
    Not something I need at all these days, doing a lot better lol
    Psionic Roshambo @ Psionic Roshambo: Not something I need at all these days, doing a lot better lol