Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: poll ideas quest 2013

by Tux (Abbot)
on Mar 22, 2013 at 15:21 UTC ( #1024943=note: print w/replies, xml ) Need Help??


in reply to Re: poll ideas quest 2013
in thread poll ideas quest 2013

Are those the only two options? See wikipedia for a longer list of styles. I use banner style, and I also have my reasons to use it: I thought about it. I'm afraid a lot of fresh coders just follow what they were fed at school or what their editor-of-choice gives as prefered style.

sub foo { if (bar) { # Blah! } } # foo

WAY more important than what style is used, is that the style is used consistently and by all members in the team.

FWIW I do not think this would be a good poll. It would lead to flame wars.


Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^3: poll ideas quest 2013
by B-Man (Acolyte) on Mar 22, 2013 at 20:53 UTC

    I agree that consistency in a team is important. I think that programmer should learn how to flexibly write their code to conform to a current project's standards. However, this question isn't asking for the "best" method or even the one you should use in practice on any given project. It's just asking for your preferred method that you would use if you were coding something all by yourself for whatever reason. What method would you use if you were working on a simple project at home or whatever?

    If this causes flame wars, than it speaks of the stubborness of Perl programmers in a very negative way. I hope you guys aren't really that stubborn. Geez. I'm not asking for a "correct" answer.

    P.S.: Do you have any idea how condescending it is to say that you use your style because you "thought about it," while others who aren't "veterans" like yourself "just follow what they were fed at school or what their editor-of-choice gives as prefered style." Of course us "newbies" can't actually have real justifications for why we use a style! We're just stupid like that, aren't we?

    P.P.S.: Okay, so there are more than just two styles. After all, whitespace is fairly "free form" and has no real affect on your code other than readability. If you want to take it that far, I could make some big huge list of styles and have them all be options, or "reference the names" and link to each type for people to actually look up. For most of us, that requires a lot of extra reading to use styles that we probably didn't even think of as having names. Seriously, I think it says a lot about you that you're linking to named styles. They're important, but most of us don't care what the styles are called! You really don't have to know that you're using "Lisp Style" to use it. e_e The only real purpose it "serves" as is a way to quickly referene what you mean without fullly describing it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1024943]
help
Chatterbox?
[1nickt]: marioroy Yes, I am using it with MCE, as is Discipulus I believe. I was trying to work out how to make a cpanfile that would be smart enough to know which deps to require.
[1nickt]: See this code. (I expected to simply eval loading threads as a check, but weirdness happened with Perlbrew so it's a grep of -V ...)
[choroba]: Config might be better than grepping -V
[Corion]: Also see Config::V, which is less of that hackery, or that hackery hidden in a module ;)
[1nickt]: The problem was with Perlbrew
[Corion]: Whoops - Config::Perl::V
[1nickt]: I found that when using Perlbrew as recommended, with cpanminus in the system perl lib, such tests were failing to detect the data about the perl that was the install destination.

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2017-10-18 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (249 votes). Check out past polls.

    Notices?