Closed (fixed)
Project:
Beautifier (Abandoned)
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2009 at 04:38 UTC
Updated:
20 Sep 2009 at 07:04 UTC
Jump to comment: Most recent
Comments
Comment #1
danielb commentedIt's just that I've had no feedback about the project so I'm not sure what my next move should be
Have you installed Beautifier on your site? Why? Did it do what you thought it would? Will you continue to use this module? Do you plan to customise your own presets? Have you encountered any problems?
Comment #2
danielb commentedoh come on, at least 7 people installed this module since I posted this....
Comment #3
danielb commentedokidoki
Comment #4
dman commentedI've not installed it yet, but am just looking at the online demo - thanks heaps for making THAT available!
First impressions:
It converted
into
... which made me celebrate!
... but then it converted
$settings['DB_DRIVER'] = $creds['driver']; $settings['DB_HOST'] = $creds['host']; $settings['DB_USERNAME'] = $creds['user'];down to :
$settings['DB_DRIVER'] = $creds['driver']; $settings['DB_HOST'] = $creds['host']; $settings['DB_USERNAME'] = $creds['user'];... which made me sad again.
I'm not keen on indenting the closing ) in arrays and things.
Mine:
$excludes = array( '.DS_Store', '.svn', );becomes:
$excludes = array( '.DS_Store', '.svn', );... but I know that's maybe a debatable preference.
I like it because it REALLY helps visual nesting matches.
if (!empty($enabled_paths)) { foreach ($enabled_paths as $path) { sitesynch_exec_rsync( $settings, $peer_settings, ); } }Check the closing braces, vs the unbalanced 'beautified':
if (!empty($enabled_paths)) { foreach ($enabled_paths as $path) { sitesynch_exec_rsync( $settings, $peer_settings, ); } }:(
...
OK, something went wrong here:
Input:
'Beautified':
!! That actually destroyed some code, as well as added some extra lines.
I know that using # for comments may not be supported, but I use # for scaffolding and debug code, and // for persistent real comments. # is a legal comment.
... anyway, this was just a once-over review on one file based on the published demo. I'd LIKE it if this could be used to fix up all those whitespace complaints that coder.module has (boring!) but I'm not sure I can trust it just yet...
Feedback you wanted?
Comment #5
nancydruI'm checking it out now. Perhaps you should run it on itself - lots of messages from Coder.
Please change the "package" to "Development" so it goes in the same group as Devel.
Comment #6
nancydruBefore I could see anything, it went away. Where did the results go?
Comment #7
danielb commentedThanks guys! I will run it on itself when it is trustworthy enough I guess. Thanks for the samples - I can use those to debug what the algorithm thought it was doing there.
What went away?
There are some usability issues with customising your own format too - you have to enter a name, hit save, and then choose your new preset from the list and hit 'use selected preset' before you can actually modify it properly.... should make that more intuitive.
Also a lot of the subfunctions don't have a description and so the function name is shown in the interface.
Comment #8
nancydruWhatever messages if tried to throw up on the screen disappeared faster than I could see them.
Also, please change the package to "Development" so it goes in the same group as Coder.
Comment #9
danielb commentedThis module is not meant to be in a package with coder, please see http://drupal.org/node/536640
I am not aware of such functionality? It is possible you were looking at output from a different module being tested on the same site at the time. :/
Comment #10
nancydrufrom http://drupal.org/node/231036
I would prefer to see this moved under the other heading rather than having an entirely new one (for only two modules). It has nothing to do, really, with being in a package with Coder, any more than with Devel or Helpers, which also use that package name. The modules admin page is slow enough without an extra package group.
Comment #11
danielb commentedYes it should be under 'other', I didn't find that info until after publishing this module.
Comment #12
nancydruNo big deal. I would just as soon see it under "Development" because it's more for developers, but it is your module.
Comment #13
danielb commentedI've fixed up a couple things I found as a result of #4, but there are a couple things that didn't replicate for me as well and may be related to other code around the example code. I think though those sorts of matters will have to be investigated case by case in their own issues as they are quite complex problems that may require discussion and research.
Thanks for showing some interest guys!