Code Monkey home page Code Monkey logo

Comments (13)

mikebronner avatar mikebronner commented on August 29, 2024 1

If you like spaces, or any variation of tabs, why not set up and modify the templates directly? (Others shouldn't be expected to adhere to my programming quirks, right?)

php artisan generate:publish-templates (Just in case someone wants to do this.) :)

I have found it tremendously helpful.

from laravel-4-generators.

JeffreyWay avatar JeffreyWay commented on August 29, 2024

Ahh you're right. I'll push a fix that only uses tabs soon.

from laravel-4-generators.

 avatar commented on August 29, 2024

Jeffrey, Would you consider using 4 spaces instead per PSR standards? https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md

from laravel-4-generators.

laurentvd avatar laurentvd commented on August 29, 2024

j20, although you're right about the PSR standards, I'm really voting for tabs as this leaves the user to set their indentation width. There's been a lot of debate on this in the PSR group as well. Anyway, Jeffrey get's to do wathever the hell he wants ;-)

from laravel-4-generators.

JeffreyWay avatar JeffreyWay commented on August 29, 2024

I think I may stick with a tab, and then, in your editor, you can always have this map to four spaces.

from laravel-4-generators.

JeffreyWay avatar JeffreyWay commented on August 29, 2024

b79e9da

from laravel-4-generators.

 avatar commented on August 29, 2024

Cool. Either is fine with me. Hopefully the debate in the community will get settled some day. I see benefits to both sides. Just as long as it's not two spaces ;)

from laravel-4-generators.

dustingraham avatar dustingraham commented on August 29, 2024

@laurentvd "Leaves the user to set their indentation" while that's true, it doesn't mean the code will remain aligned in all cases. There's a good analysis of this http://paul-m-jones.com/archives/2312 one place this breaks down is if you change the tab width from 4 to 8, things that should be vertically aligned, are no longer. Clearly Laravel's decided to use tabs, but I wanted to point this out.

from laravel-4-generators.

laurentvd avatar laurentvd commented on August 29, 2024

@dustingraham Yeah, agreed. I understand why spaces are the better option. But since Laravel is using tabs (and personally, I prefer tabs) it would make more sense for this package to use tabs. Anyway, it's always 'fun' to troll on the spaces vs. tabs topic ;-)

from laravel-4-generators.

yadakhov avatar yadakhov commented on August 29, 2024

I really wished Laravel Version 4 had switched to spaces. They pretty much switched to PSR recommendations except decide to keep tabs.

No wonder this is the holy war.

from laravel-4-generators.

mettjus avatar mettjus commented on August 29, 2024

Sorry but I'd rather not... ;)

from laravel-4-generators.

18601673727 avatar 18601673727 commented on August 29, 2024

+1 for spaces.

from laravel-4-generators.

GrahamCampbell avatar GrahamCampbell commented on August 29, 2024

@18601673727 Not again...

from laravel-4-generators.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.