As some of you might know I am a IRC Operator at irc.mibbit.net. Mibbit’s IRC server is the default server for the famous online IRC client Mibbit.
The lack of a good Mibbit plugin for WordPress made me decide to write my own and I’m proud to announce the release of this new plugin!
The plugin can be found at the WordPress Plugin Directory
If you find a bug or if you have any suggestions you can leave a comment on this blog post.
Do you find it difficult to remember which loop you should use when developing? There are a few rules of thumb:
- If you have to iterate over a collection of elements the use of a for-each-loop is almost always the most elegant solution.
- If you need a loop that is not used for a collection but in example to repeat a certain action a few times the for-each-loop can not be used. In that case you have to choose between a for-loop and a while-loop. A for-each loop can only be used for collections.
- The for-loop is a good choice if the number of iterations is already known (how often the loop should be passed). This information can be stored within a variable but may not change while passing the loop.
- The while-loop is a good choice if the number of iterations is not known. The end of the loop can be determined by a condition. For example looping trough a file line by line till you reach the end of the file.
- If you iterate over a collection of elements and you want to remove an element out of the collection you should use a for-loop in combination with a Iterator if you want to go through the entire collection. You should use a while-loop if you want to discontinue execution of the loop before it has reached the end of the collection.
I do use these rules of thumb when developing applications in the JAVA programming language. Each language may have it’s own way of doing things best.
My WordPress experience!
The past two days I have been busy with configuring WordPress the way I want it. I have installed a theme, a few plugins and made some changes in the settings. Thus far everything is pretty easy and I never thought I would like WordPress. I’ve always said that WordPress sucked. This proves once again that I should not judge about something before I have tried it.
And a little note to those people who want to post comments with code highlighting: This option is only available for registered users with a specific role. I will only assign this role to people whom I trust.