Alexey Shrub
- Website: worldmind.livejournal.com
- About: I blog about Perl.
Recent Actions
-
Commented on The clearest way(s) to check if a List contains...
All variant is bad, good variant is: do_something if 'flour' in @ingredients but I don't now how make it...
-
Commented on Three Command-Line Utilities
You can use remind utility http://www.linuxjournal.com/article/3529...
-
Commented on SSH Can Do That? Productivity Tips for Working with Remote Servers
For multiple connection use screen utility - it is make many window in one ssh connection and (main feature) all your windows stay live after connections is broken, connect again, run screen -d -RR and see all your shell windows...
-
Commented on Non-functional perl code testing - automated code review
I experiment with Code::Statistics - if I rigth undestand ccomp it is cyclomatic complexity, but cyclomatic complexity is not depend of nesting, for this metric those codes is equal: 1. if(1){if(1){if(1){if(1){if(1){if(1){}}}}}}; 2. if(1){};if(1){};if(1){};if(1){};if(1){};if(1){}; But now I need test for nesting...
-
Commented on Non-functional perl code testing - automated code review
I experiment with Code::Statistics - if I rigth undestand ccomp it is cyclomatic complexity, but cyclomatic complexity is not depend of nesting, for this metric those codes is equal: 1. if(1){if(1){if(1){if(1){if(1){if(1){}}}}}}; 2. if(1){};if(1){};if(1){};if(1){};if(1){};if(1){}; But now I need test for nesting...
-
Commented on Non-functional perl code testing - automated code review
@ rjbs: Thanks, I found a couple interesting test modules in Dist::Zilla::PluginBundle::TestingMania...
-
Commented on Non-functional perl code testing - automated code review
@Mithaldu Thanks, I saw this module, but now don't remember why I don't use it....
- Posted Non-functional perl code testing - automated code review to Alexey Shrub
Comment Threads
-
Shlomi Fish commented on
Three Command-Line Utilities
Hi Alexey,
reminder looks interesting. I have packaged it for Mageia (= Linux distribution) already and will take a further look. Its tk interface - "tkreminder" appears to be confusing, but maybe I can figure out the command line stuff.
My shell reminders thingy was easy to write, and scratched an itch, but reminder may prove as a more flexible solution.
-
Diogo Melo commented on
SSH Can Do That? Productivity Tips for Working with Remote Servers
Hi,
Nice post. I wrote a few ssh tricks on my own http://diogomelo.net/blog/10/ssh-tricks
-
Shlomi Fish commented on
Three Command-Line Utilities
Hi Steven,
OK, the new release of App-Countdown, supports timeouts such as 2m or 1.5h or whatever (in input - not in output yet - I have yet to determine if and when I should display the minutes and hours etc. - maybe a command line option and/or environment variable and/or configuration file). I also added a --help and --version flags.
Thanks for your input again.
-
mascip commented on
The clearest way(s) to check if a List contains...
What do you mean "all variant is bad"?
Do you know Perl's TIMTOWTDI motto?
http://en.wikipedia.org/wiki/There%27s_more_than_one_way_to_do_it
(the examples on this page suck...i might go and propose something better later). And (as NOT written in this wikipedia page unfortunately) TIMTOWDI does not only enable to write concisely, but also very expressively. -
chimerix commented on
The clearest way(s) to check if a List contains...
From 5.18, if warnings are enabled, using smart match will trigger a warning that the feature is still experimental.
Yeah, that's really annoying. I had to use Carp::Always to figure out where those warnings were coming from in one of my scripts. Turns out it was Perl6::Junction way down in the stack. PITA.
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.