Deprecated: Assigning the return value of new by reference is deprecated in /var/www/serverdude.dk/public_html/wp-settings.php on line 512

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/serverdude.dk/public_html/wp-settings.php on line 527

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/serverdude.dk/public_html/wp-settings.php on line 534

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/serverdude.dk/public_html/wp-settings.php on line 570

Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with Walker::start_lvl(&$output) in /var/www/serverdude.dk/public_html/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with Walker::end_lvl(&$output) in /var/www/serverdude.dk/public_html/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::start_el() should be compatible with Walker::start_el(&$output) in /var/www/serverdude.dk/public_html/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::end_el() should be compatible with Walker::end_el(&$output) in /var/www/serverdude.dk/public_html/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_PageDropdown::start_el() should be compatible with Walker::start_el(&$output) in /var/www/serverdude.dk/public_html/wp-includes/classes.php on line 1244

Strict Standards: Declaration of Walker_Category::start_lvl() should be compatible with Walker::start_lvl(&$output) in /var/www/serverdude.dk/public_html/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::end_lvl() should be compatible with Walker::end_lvl(&$output) in /var/www/serverdude.dk/public_html/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::start_el() should be compatible with Walker::start_el(&$output) in /var/www/serverdude.dk/public_html/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::end_el() should be compatible with Walker::end_el(&$output) in /var/www/serverdude.dk/public_html/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_CategoryDropdown::start_el() should be compatible with Walker::start_el(&$output) in /var/www/serverdude.dk/public_html/wp-includes/classes.php on line 1442

Strict Standards: Redefining already defined constructor for class wpdb in /var/www/serverdude.dk/public_html/wp-includes/wp-db.php on line 306

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/serverdude.dk/public_html/wp-includes/cache.php on line 103

Strict Standards: Redefining already defined constructor for class WP_Object_Cache in /var/www/serverdude.dk/public_html/wp-includes/cache.php on line 431

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/serverdude.dk/public_html/wp-includes/query.php on line 61

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/serverdude.dk/public_html/wp-includes/theme.php on line 1109

Strict Standards: Declaration of Walker_Comment::start_lvl() should be compatible with Walker::start_lvl(&$output) in /var/www/serverdude.dk/public_html/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::end_lvl() should be compatible with Walker::end_lvl(&$output) in /var/www/serverdude.dk/public_html/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::start_el() should be compatible with Walker::start_el(&$output) in /var/www/serverdude.dk/public_html/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::end_el() should be compatible with Walker::end_el(&$output) in /var/www/serverdude.dk/public_html/wp-includes/comment-template.php on line 1266

Strict Standards: Redefining already defined constructor for class WP_Dependencies in /var/www/serverdude.dk/public_html/wp-includes/class.wp-dependencies.php on line 31

Strict Standards: Redefining already defined constructor for class WP_Http in /var/www/serverdude.dk/public_html/wp-includes/http.php on line 61

Warning: Cannot modify header information - headers already sent by (output started at /var/www/serverdude.dk/public_html/wp-settings.php:512) in /var/www/serverdude.dk/public_html/wp-includes/feed-rss2-comments.php on line 8
Kommentarer til Serverdude http://serverdude.dk Yet another personal wordpress blog on programming, books, life, and other weird things Tue, 19 Mar 2019 06:07:01 +0000 http://wordpress.org/?v=2.7 hourly 1 Kommentar til Why Why is more important than What af serverdude http://serverdude.dk/?p=251&cpage=1#comment-1435 serverdude Fri, 26 Apr 2013 16:58:03 +0000 http://serverdude.dk/?p=251#comment-1435 Ahh yes, I forgot about Simon Sinek's great talk - and naturally he has the http://www.startwithwhy.com/ domain. But it fits so well if Ford had said it ;) Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/serverdude.dk/public_html/wp-includes/kses.php on line 1002

Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/serverdude.dk/public_html/wp-includes/kses.php on line 1003

Ahh yes, I forgot about Simon Sinek’s great talk - and naturally he has the http://www.startwithwhy.com/ domain.

But it fits so well if Ford had said it ;)

]]>
Kommentar til Why Why is more important than What af Björn Brynjar http://serverdude.dk/?p=251&cpage=1#comment-1434 Björn Brynjar Thu, 25 Apr 2013 20:56:48 +0000 http://serverdude.dk/?p=251#comment-1434 Love the article ;) Understanding why is essential. Check out Simon Sinek take on this: http://www.ted.com/talks/simon_sinek_how_great_leaders_inspire_action.html Also, apperently there is no evidence existing Henry Ford ever said the "faster horse" quote, check out: http://www.ted.com/talks/simon_sinek_how_great_leaders_inspire_action.htmlhttp://blogs.hbr.org/cs/2011/08/henry_ford_never_said_the_fast.html All the best ;) Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/serverdude.dk/public_html/wp-includes/kses.php on line 1002

Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/serverdude.dk/public_html/wp-includes/kses.php on line 1003

Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/serverdude.dk/public_html/wp-includes/kses.php on line 1002

Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/serverdude.dk/public_html/wp-includes/kses.php on line 1003

Love the article ;)

Understanding why is essential. Check out Simon Sinek take on this:

http://www.ted.com/talks/simon_sinek_how_great_leaders_inspire_action.html

Also, apperently there is no evidence existing Henry Ford ever said the “faster horse” quote, check out:

http://www.ted.com/talks/simon_sinek_how_great_leaders_inspire_action.htmlhttp://blogs.hbr.org/cs/2011/08/henry_ford_never_said_the_fast.html

All the best ;)

]]>
Kommentar til Programming vs. Flow steps af serverdude http://serverdude.dk/?p=212&cpage=1#comment-1317 serverdude Wed, 27 Feb 2013 20:23:46 +0000 http://serverdude.dk/?p=212#comment-1317 Fixed the <span> issue - thanks for the heads up. This is actually far better feedback than I imagined. As I wrote - it was not to bash dotCMS, I've seen similar code elsewhere, I've written similar code. I simply think that the code depicts a common issue in the programming world - especially the incremental deterioration of an 8 year old code base. Well, deterioration may be the wrong terms. I looked briefly at the Eclipse source code - they too have some less than optimal convoluted classes. Previous blog posts call out Martin Fowler's code as the start of big balls of mud. Fixed the issue - thanks for the heads up.

This is actually far better feedback than I imagined.

As I wrote - it was not to bash dotCMS, I’ve seen similar code elsewhere, I’ve written similar code. I simply think that the code depicts a common issue in the programming world - especially the incremental deterioration of an 8 year old code base. Well, deterioration may be the wrong terms.

I looked briefly at the Eclipse source code - they too have some less than optimal convoluted classes.

Previous blog posts call out Martin Fowler’s code as the start of big balls of mud.

]]>
Kommentar til Programming vs. Flow steps af Will Ezell http://serverdude.dk/?p=212&cpage=1#comment-1316 Will Ezell Wed, 27 Feb 2013 16:25:37 +0000 http://serverdude.dk/?p=212#comment-1316 ServerDude: Great post and you are absolutly correct regarding proper delegation vs procedural code. dotCMS is a huge project and if you dig you will find many warts - the UtilMethods you mention is from 2002 (uggh). That said, we happy that you can examine the code and as an open source project welcome the visibility that comes along with that. Our newer classes are implementing a better pattern - see the WorkflowFactoryImpl. This code does a getInstance() that returns a different class based on the DB type running. This is a much cleaner pattern than a bunch of IF statements. Let us know what else you find, Will ServerDude:

Great post and you are absolutly correct regarding proper delegation vs procedural code. dotCMS is a huge project and if you dig you will find many warts - the UtilMethods you mention is from 2002 (uggh). That said, we happy that you can examine the code and as an open source project welcome the visibility that comes along with that.

Our newer classes are implementing a better pattern - see the WorkflowFactoryImpl. This code does a getInstance() that returns a different class based on the DB type running. This is a much cleaner pattern than a bunch of IF statements.

Let us know what else you find,

Will

]]>
Kommentar til Programming vs. Flow steps af Jorge Urdaneta http://serverdude.dk/?p=212&cpage=1#comment-1315 Jorge Urdaneta Wed, 27 Feb 2013 14:20:26 +0000 http://serverdude.dk/?p=212#comment-1315 Hi, the method getStatusIcons has some html tags inside the strings. it looks like you didn't quote them here in your post. So they seems to only add empty strings. For the rest I see your point here. It would be interesting to have te resources to rewrite our legacy of 8 years of code so we don't have different patterns arround. We have been trying to fight with that db pattern. See for example a recent rewritten part (workflows). We started creating a class with all the querys and then subclasses for every db that can modify the base querys where needed. See Base class: https://github.com/dotCMS/dotCMS/blob/master/src/com/dotmarketing/portlets/workflows/business/WorkflowSQL.java Oracle subclass https://github.com/dotCMS/dotCMS/blob/master/src/com/dotmarketing/portlets/workflows/business/OracleWorkflowSQL.java Postgres https://github.com/dotCMS/dotCMS/blob/master/src/com/dotmarketing/portlets/workflows/business/PostgresWorkflowSQL.java MsSQL https://github.com/dotCMS/dotCMS/blob/master/src/com/dotmarketing/portlets/workflows/business/MSSQLWorkflowSQL.java MySQL https://github.com/dotCMS/dotCMS/blob/master/src/com/dotmarketing/portlets/workflows/business/MySQLWorkflowSQL.java So, we agree with you and we're working hard everyday to make the right patterns in the code. Still there is a ton of old code hard and expensive to rewrite. Hope we will do it before we need to support another DB manager :D Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/serverdude.dk/public_html/wp-includes/kses.php on line 1002

Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/serverdude.dk/public_html/wp-includes/kses.php on line 1003

Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/serverdude.dk/public_html/wp-includes/kses.php on line 1002

Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/serverdude.dk/public_html/wp-includes/kses.php on line 1003

Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/serverdude.dk/public_html/wp-includes/kses.php on line 1002

Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/serverdude.dk/public_html/wp-includes/kses.php on line 1003

Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/serverdude.dk/public_html/wp-includes/kses.php on line 1002

Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/serverdude.dk/public_html/wp-includes/kses.php on line 1003

Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/serverdude.dk/public_html/wp-includes/kses.php on line 1002

Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/serverdude.dk/public_html/wp-includes/kses.php on line 1003

Hi,

the method getStatusIcons has some html tags inside the strings. it looks like you didn’t quote them here in your post. So they seems to only add empty strings.

For the rest I see your point here. It would be interesting to have te resources to rewrite our legacy of 8 years of code so we don’t have different patterns arround.

We have been trying to fight with that db pattern. See for example a recent rewritten part (workflows). We started creating a class with all the querys and then subclasses for every db that can modify the base querys where needed. See

Base class:
https://github.com/dotCMS/dotCMS/blob/master/src/com/dotmarketing/portlets/workflows/business/WorkflowSQL.java

Oracle subclass
https://github.com/dotCMS/dotCMS/blob/master/src/com/dotmarketing/portlets/workflows/business/OracleWorkflowSQL.java

Postgres
https://github.com/dotCMS/dotCMS/blob/master/src/com/dotmarketing/portlets/workflows/business/PostgresWorkflowSQL.java

MsSQL
https://github.com/dotCMS/dotCMS/blob/master/src/com/dotmarketing/portlets/workflows/business/MSSQLWorkflowSQL.java

MySQL
https://github.com/dotCMS/dotCMS/blob/master/src/com/dotmarketing/portlets/workflows/business/MySQLWorkflowSQL.java

So, we agree with you and we’re working hard everyday to make the right patterns in the code. Still there is a ton of old code hard and expensive to rewrite. Hope we will do it before we need to support another DB manager :D

]]>
Kommentar til Building and testing with Gradle af Tim Berglund http://serverdude.dk/?p=85&cpage=1#comment-568 Tim Berglund Wed, 07 Sep 2011 20:37:22 +0000 http://serverdude.dk/?p=85#comment-568 Your Serverdudeness, Thanks for buying and reading the book. As for your conclusion that it's just not enough, I am going to have to agree with you! That's why Matthew and I are hard at work on the sequel, tentatively called Programming Gradle. There's a lot more you'll have to know to be a Gradle power user that just couldn't fit into the first book, given the desire to keep it small. (This lets us favor electronic distribution—which the community is already doing—and lets us get a book out to the community faster, rather than making everyone wait for us to write a longer book.) I can't thank you enough for publishing a review. Keep using Gradle, and email the user list or contact us if you have questions. Warmly, Tim Your Serverdudeness,

Thanks for buying and reading the book. As for your conclusion that it’s just not enough, I am going to have to agree with you! That’s why Matthew and I are hard at work on the sequel, tentatively called Programming Gradle. There’s a lot more you’ll have to know to be a Gradle power user that just couldn’t fit into the first book, given the desire to keep it small. (This lets us favor electronic distribution—which the community is already doing—and lets us get a book out to the community faster, rather than making everyone wait for us to write a longer book.)

I can’t thank you enough for publishing a review. Keep using Gradle, and email the user list or contact us if you have questions.

Warmly,
Tim

]]>