Welcome Guest, Not a member yet? Register   Sign In
database access by code igniter
#9

[eluser]jedd[/eluser]
[quote author="Aishwarya.M.B" date="1252152983"]i think a programmer can understand which is the code....
so no need of code blocks[/quote]

This may be true, but consider the context.

If you're asking for help, it is polite and more effective to provide as much useful information as possible. That includes making the information more readable. Most programmers these days use a colour-highlighting editor to programme in, consequently they're more familiar with seeing code as is shown inside [ code ] tags. Most question-askers post code from several different files, and at least one error message, so it's not just 'understanding' code, it's understanding which code goes with which type of file or error.

It takes very little effort for the poster of a message to write 'and here's my controller code ...' and then open a code block, close it when done and then do similarly with their model, their helper, their view, etc. It means each section really stands out and can be quickly identified by the reader.

Remember also that the poster : reader ratio is typically upwards of 1 : 100. This thread, for example, has had a 150 views. Going back to my original point - it's polite here to format it properly as it's a minute of the poster's time, but interpreting what the message actually means will take an additional 150 minutes (distributed). And it's effective to format it properly because it's very likely that if you post a lump of code that is difficult to read, it's not going to get the same love and attention from those 150 people as an easily readable question would. In other words, by being lazy and inconsiderate you'll get less help. Kind of like a scale model of Life.


Messages In This Thread
database access by code igniter - by El Forum - 08-28-2009, 05:27 PM
database access by code igniter - by El Forum - 08-28-2009, 06:27 PM
database access by code igniter - by El Forum - 08-29-2009, 01:44 AM
database access by code igniter - by El Forum - 08-31-2009, 05:19 AM
database access by code igniter - by El Forum - 09-01-2009, 12:46 AM
database access by code igniter - by El Forum - 09-01-2009, 09:09 AM
database access by code igniter - by El Forum - 09-05-2009, 01:16 AM
database access by code igniter - by El Forum - 09-05-2009, 03:19 AM
database access by code igniter - by El Forum - 09-05-2009, 04:43 AM
database access by code igniter - by El Forum - 09-05-2009, 05:15 AM
database access by code igniter - by El Forum - 09-12-2009, 11:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB