General - how are you able to focus on coding for a while?

Discuss the development of future releases of phpBB (phpBB 3.x minor releases) and MODing/Coding related questions.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
SuperRoach
New member
New member
Posts: 2
Joined: 09 Feb 2010, 08:42
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

General - how are you able to focus on coding for a while?

Postby SuperRoach » 23 May 2010, 03:29

Like the topic says I guess. I find that when I'm trying to make a phpbb mod, that because its a hobby, I'm not actively learning the ins and outs of it. This means that I need to recap where I was, and what part I was actually changing. By the time I've done that, I get almost nothing actually done!

What have you done that helps you get more coding done?

User avatar
Lord Le Brand
Website Team
Website Team
Posts: 223
Joined: 08 Sep 2006, 15:44
Real name: Leroy
Location: Parkstad, Limburg, the Netherlands (GMT+1)
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: General - how are you able to focus on coding for a whil

Postby Lord Le Brand » 25 May 2010, 18:54

I find it very useful to add bookmarks in my code editor and add todo blocks in comments (I made a habit of using the phpDoc format for this).
It is also a good idea to comment your code a lot, rather too much than too little.

User avatar
Mr. Bond
Member
Member
Posts: 89
Joined: 30 Mar 2008, 20:34
Real name: Bobby
Location: 127.0.0.1
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: General - how are you able to focus on coding for a whil

Postby Mr. Bond » 28 May 2010, 10:02

Comment everything, and I mean everything. Anything that does anything, comment it so that you will know exactly what it is doing if you need to go back and change it 6 months later. Just simple things like "this checks this and then does this to that" will help you get the feel of the code later on, and it will help anyone new that comes along and sees your code as well.
• •

imkingdavid
Supporter
Supporter
Posts: 32
Joined: 12 Aug 2009, 16:16
Real name: David
Contact:

Re: General - how are you able to focus on coding for a whil

Postby imkingdavid » 29 May 2010, 01:51

phpBB.com Development Team Member | |
Please do NOT contact for support via PM or email.


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “phpBB Development discussion”

Who is online

Users browsing this forum: No registered users and 2 guests