JeffreyWay / Laracasts-Bugs

Exclusively for user-submitted bugs and errors at laracasts.com
9 stars 0 forks source link

Demos and Folder Naming Syntax #5

Closed markalanevans closed 10 years ago

markalanevans commented 10 years ago

I noticed that in many of your demos, your creating folders Pascal Casing

MyNewClass

where as everything else in laravel is all lowercase

Do you have suggestions thoughts on this?

JeffreyWay commented 10 years ago

Not sure what you mean. Laravel core class names are pascal case, too.

markalanevans commented 10 years ago

https://laracasts.com/lessons/where-do-i-put-this 2:59 marker.

All of your directories are Pascal cased rather than lowercased.

Probably a good talk would be "The Larval Way" by Jeffrey Way ;)

Where you talk about: class / directory / file / method / variable

naming conventions

location php__html

Perhaps i should make that a "Request"?

markalanevans commented 10 years ago

Right, so whats the Logic for when it should be Pascal vs lowercased?

JeffreyWay commented 10 years ago

Oh, that's because those are vendor packages, installed through Composer. If you look at Laravel's core classes (like within the Auth folder you pointed to), they'll all be PascalCase.

markalanevans commented 10 years ago

Ok. Cool. So basically lowercase for generic directories. Pascal for Package Directories.

Thank Jeffrey.