Questions on style
#2
(06-25-2023, 06:18 AM)justsomeguy Wrote: Hello

I was wanting to ask the forum on how you guys prefer to organize your code, especially on larger projects. I've posted a few of my projects on here and people had trouble getting them to work due to the way I structure my code. I want to make it as easy as possible to share across platforms, since I'm a Linux guy. 
  • Do you prefer a large monolithic source file, or it broken up into libraries?
  • If you use "libraries", do you keep them together with your original project, or do you separate them for reuse on other projects?
  • Do you put the executable in the QB folder or in the source folder?
  • How do you handle assets in regards to your file structure, so that it is easier to share?

Any other tips to help me better share my projects would be appreciated.

Thanks
justsomeguy

Hi @justsomeguy

I've got to check out your pool game, looks very good. Just from screenshot I see you offer an option of putting English on cue ball. I assume that IS what that white circle is for in lower left corner, I am sure.

About libraries, I don't have much of opinion, I use to use them in old QB4.5 work my own commonly used subs and functions but now with QB64, so many Subs and Functions more than 95% of code would go unused for projects. It's a pain to always have to include and explain with every post I make here at forum.

I would read what Terry has about libraries and coordinate with him about style issues from his Game Programming tut here: https://www.qb64tutorial.com/games
this work is most likely to get all newbies started on same page.

Now I would most definitely recommend storing all files related to project in a Folder of it's own for easy zip and extract sharing with he rest of us at forum just remove exe before zipping. I don't like sub-paths for assets but that is purely opinion if you have allot of files to go with project it makes sense to keep them organized in sub folders.

I have my Run's geared to save Exe's in same folder as source code the only exception might be for a library if QB64pe can find them without a bunch of monkey business to get paths correct and find the bi and bm.
b = b + ...
Reply


Messages In This Thread
Questions on style - by justsomeguy - 06-25-2023, 06:18 AM
RE: Questions on style - by bplus - 06-25-2023, 01:12 PM
RE: Questions on style - by Kernelpanic - 06-25-2023, 01:25 PM
RE: Questions on style - by bplus - 06-25-2023, 02:05 PM
RE: Questions on style - by justsomeguy - 06-25-2023, 07:09 PM
RE: Questions on style - by OldMoses - 06-25-2023, 08:30 PM
RE: Questions on style - by justsomeguy - 06-25-2023, 09:25 PM
RE: Questions on style - by TerryRitchie - 06-25-2023, 11:39 PM
RE: Questions on style - by OldMoses - 06-25-2023, 11:22 PM
RE: Questions on style - by Ultraman - 06-26-2023, 11:32 AM
RE: Questions on style - by justsomeguy - 06-26-2023, 12:05 PM
RE: Questions on style - by Ultraman - 06-26-2023, 12:17 PM
RE: Questions on style - by madscijr - 06-27-2023, 02:56 PM
RE: Questions on style - by Ultraman - 06-26-2023, 12:29 PM
RE: Questions on style - by CharlieJV - 06-28-2023, 08:31 PM
RE: Questions on style - by bplus - 06-26-2023, 03:47 PM
RE: Questions on style - by madscijr - 06-27-2023, 02:49 PM
RE: Questions on style - by TerryRitchie - 06-27-2023, 04:18 PM
RE: Questions on style - by madscijr - 06-27-2023, 08:15 PM
RE: Questions on style - by SMcNeill - 06-27-2023, 04:48 PM
RE: Questions on style - by SMcNeill - 06-27-2023, 04:52 PM
RE: Questions on style - by bplus - 06-27-2023, 08:29 PM
RE: Questions on style - by Gets - 06-27-2023, 08:52 PM
RE: Questions on style - by justsomeguy - 06-27-2023, 09:32 PM



Users browsing this thread: 9 Guest(s)