User forums > Using Code::Blocks

Making project is so inconvenient, isn't it?

<< < (4/6) > >>

oBFusCATed:
If you have a project you are in compile only mode. If you don't you're in compile-and-link mode.

codeur:

--- Quote from: MortenMacFly on April 21, 2012, 01:34:07 pm ---... If we do this I see one issue: We will have tons of newbies reporting "undefined references" because they didn't understand that it will need more than linking to compile e.g. a hello world OpenGL console application...

--- End quote ---

Morten, we have different users in mind:
I have the educational environment in mind (the Codeblocks-EP target audience) where this problem does not occur. There beginners usually write single file text based programs for several weeks before being guided by their teachers to write their first program using a simple graphics API. At that time they are introduced to the mysteries of APIs, SDKs and 3rd party libraries.

You are rather thinking of the self-learner who copies from the web into a new empty file some game code written for OpenGL or produced last century for turbo C++, clicks on "Build and run" and is angry at all these crappy messages that pop up onto the screen.
I have no idea what could be done in this case.

This automatic single-file default project is without doubt worth having in an educational distribution, but I agree that it may increase the self-learner's problems in the standard distribution.

codeur:

--- Quote from: oBFusCATed on April 21, 2012, 02:18:32 pm ---If you have a project you are in compile only mode. If you don't you're in compile-and-link mode.

--- End quote ---

It makes sense now.
However I would rather: When you select "Compile current file": if you have a project you are in compile only mode. If you don't, a new default project is created, also followed by compile only mode. If you want to also link, just press "Build" (the existing "Build" button or menu entry) after successful compilation.

Much better! Thanks for that.

The behaviour (when there is no project) can be enabled or not in a Settings option as suggested earlier by Morten. This would cancel his misgivings regarding that feature in trunk.

oBFusCATed:

--- Quote from: codeur on April 21, 2012, 03:12:27 pm ---The behaviour (when there is no project) can be enabled or not in a Settings option as suggested earlier by Morten. This would cancel his misgivings regarding that feature in trunk.

--- End quote ---
Why, just implement his suggestions.
Adding options to delegate to the user every little decision you have to make is just plain wrong.
Apple (I'm not their fan) are in fact right in this regard, the software just had to work...

codeur:

--- Quote from: oBFusCATed on April 21, 2012, 03:34:34 pm ---. . .
Why, just implement his suggestions.
Adding options to delegate to the user every little decision you have to make is just plain wrong.
Apple (I'm not their fan) are in fact right in this regard, the software just had to work...

--- End quote ---

Just a sec... In the Codeblocks-EP distribution I am going to implement the single file default project creation, whatever happens in trunk. I don't need to have it as a settings option in that educational distribution.

In trunk, whether you use the patch and make it a settings option or not in the end depends on you, Morten and the rest of the team.
I just think that Morten's worries regarding self-learners are valid.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version