Hey fellow coders,
I was thinking about the futur of the SDK. For now it's one big file, for simplicity's sake. But I was wondering whether you guys prefered multiple files.
On the one hand, a single file is easy to integrate in your project, and to update. But it's a bit cumbersome to browse the code.
On the other hand, multiple files are nice because you can have one class per file, so you'll quickly browser the code. But it's a bit more complicated to update (well, not really, it's just a matter of updating a directory of files...).
Answer the poll !
What do you prefer: single or multiple files for the SDK?
Moderator: NADEO
What do you prefer: single or multiple files for the SDK?
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer!
- w1lla
- Posts: 2287
- Joined: 15 Jun 2010, 11:09
- Manialink: maniaplanetblog
- Location: Netherlands
- Contact:
Re: What do you prefer: single or multiple files for the SDK
I dont mind to use one file or seperate files.
Its just a way for developers to code based on one file or seperate files.
However in the single file its better to understand the functions and you can just use one method to call the function. As for the multiple files it will be that you need to call the file call the function and export the output.
Its just a way for developers to code based on one file or seperate files.
However in the single file its better to understand the functions and you can just use one method to call the function. As for the multiple files it will be that you need to call the file call the function and export the output.
TM² Info
SM Info
QM Info
OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
SM Info
QM Info
OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
Re: What do you prefer: single or multiple files for the SDK
I'm not actively coding with it,but out of my experience it's usually easier if you have multiple files for the understanding of the code.
Re: What do you prefer: single or multiple files for the SDK
Bad practice. I'd never store more than one class in a single file. The only exception to this would be inner classes.
Mania Exchange - Share your maps!
ASUS Maximus IV GENE Z / i7 2600K 3.40Ghz QC / 16GB G.Skill Ripjaws DDR3 / GTX 560 Ti
Need technical help for ManiaPlanet? Click here.
ASUS Maximus IV GENE Z / i7 2600K 3.40Ghz QC / 16GB G.Skill Ripjaws DDR3 / GTX 560 Ti
Need technical help for ManiaPlanet? Click here.
Re: What do you prefer: single or multiple files for the SDK
I generally agree. This is what we did in ManiaLib and ManiaLive, and all our internal codebase is like that too.fastforza wrote:Bad practice. I'd never store more than one class in a single file. The only exception to this would be inner classes.
For the SDK, it's a bit different IMO. I see the SDK more as a DLL than as a project like ManiaLib ; therefore having one single file with the API is like having one DLL that you include in some project.
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer!
Re: What do you prefer: single or multiple files for the SDK
The structure of ManiaLib was good, at least I think it was. I don't use it any more (I have my own framework in .NET) though, so I can only guess from previous versions I used.gouxim wrote:This is what we did in ManiaLib and ManiaLive, and all our internal codebase is like that too.
Poor PHP, doesn't have the luxury of library referencing. I understand how you want it done, I guess it wouldn't really bother people in the long run. Beggars can't be choosers!gouxim wrote:For the SDK, it's a bit different IMO. I see the SDK more as a DLL than as a project like ManiaLib ; therefore having one single file with the API is like having one DLL that you include in some project.
Yes I'm the beggar in this case, begging for multiple files. But I'll concede for a single file. Not that I'll use the PHP one anyway, I just like weighing in on these things.
Mania Exchange - Share your maps!
ASUS Maximus IV GENE Z / i7 2600K 3.40Ghz QC / 16GB G.Skill Ripjaws DDR3 / GTX 560 Ti
Need technical help for ManiaPlanet? Click here.
ASUS Maximus IV GENE Z / i7 2600K 3.40Ghz QC / 16GB G.Skill Ripjaws DDR3 / GTX 560 Ti
Need technical help for ManiaPlanet? Click here.
Who is online
Users browsing this forum: No registered users and 0 guests