jasonlotito

- friends
398 link karma
1,698 comment karma
send messageredditor for

PSR-1 and PSR-2 to be Approved as Standards by hariktin PHP

[–]jasonlotito 0 points1 point ago

So then the only benefit for tabs in that scenario is you can set the tab width to be whatever you want, assuming that everyone remember to only use tabs on for indentation.

PSR-1 and PSR-2 to be Approved as Standards by hariktin PHP

[–]jasonlotito 0 points1 point ago

I feel like you're trying to be clever here as indentation is also a sort of alignment

That's what I said.

Thus spaces are used for indentation and spaces for alignment.

Did you mean what you just said? I think you mean, tabs are used to indent, and spaces are used to align the =.

Still, now you have to enter a space in for every space between $user and =. Rather than just hit tab once. Granted, you could repeat that so you don't actually have to type in all those spaces, but then you can also jump around spaces as well. I mean, the way you are describing this, the only benefit tabs have now is in terms of being able to set the tab width to be whatever you want it to be. However, the problem is, if a tab is used between $user and = true, it screws everything up.

So, you have to force a tabs on the left, spaces to the right approach. That's rarely what happens in practice. However, this is aptly named tabs for indentation, spaces for alignment.

Anyways, my assertion was never that tabs were bad (though I prefer spaces). Rather, that suggesting that tabs are easier when editing isn't an issue with spaces as much as it's a failure in the editor that you are using. Good editors, like vi (not only vi, for some reason, people seem to think I'm only arguing for vi and spaces here), don't have this issue.

PSR-1 and PSR-2 to be Approved as Standards by hariktin PHP

[–]jasonlotito 0 points1 point ago

Says who? Have you ever heard of version control?

Yes. We use git, along with gerrit to handle code reviews, and jenkins to actually push to test, staging and production.

It's very likely a development environment resides on the developer's computer instead of a remote server.

Yes, for basic, single person development setups, that might work. But then, that has many drawbacks as well. While developing locally is nice, it's limiting. Not to mention our setup relies on more than just a DB, a web server, and PHP.

Even if the development environment is located directly on the web server, there are plenty of more efficient ways than editing directly with vi.

vi isn't the only option. I never suggested it was.

PSR-1 and PSR-2 to be Approved as Standards by hariktin PHP

[–]jasonlotito 0 points1 point ago

Wait, what? Where did I say I was editing on the live server? I said dev server. We have a sandbox, where development occurs. We have test, staging, and production. Everything lives in git, get's code reviewed in gerrit, and gets pushed up via jenkins.

I develop on sandbox, which is remote, and I connect to it over ssh, startup tmux, and develop there.

Do not assume that development on a server means development on production.

PSR-1 and PSR-2 to be Approved as Standards by hariktin PHP

[–]jasonlotito 0 points1 point ago

Except, PSR-2 was based on popularity.

PSR-1 and PSR-2 to be Approved as Standards by hariktin PHP

[–]jasonlotito 0 points1 point ago

Tabs are only used for alignment. Show me tab use not for alignment.

PSR-1 and PSR-2 to be Approved as Standards by hariktin PHP

[–]jasonlotito -2 points-1 points ago

Why not? After all, that's where the development environment lives? How else is it going to run?

PSR-1 and PSR-2 to be Approved as Standards by hariktin PHP

[–]jasonlotito -1 points0 points ago

Because if you align with spaces while using tabs, when you change your tab size, the spaces remain the same size. Try to align spaces to a tab, and then change the tab width, and you'll see.

PSR-1 and PSR-2 to be Approved as Standards by hariktin PHP

[–]jasonlotito 0 points1 point ago

Vi isn't the only editor available. If you don't likeit, but don't use any others, the problem is with you. I didn't suggest vi was the only option, either.

PSR-1 and PSR-2 to be Approved as Standards by hariktin PHP

[–]jasonlotito 1 point2 points ago

That doesn't solve the problem. That is a big part of the problem. Mixing tabs and spaces for purposes of alignment (which indentation is) will cause problems. If you use tabs, you cannot use spaces. If you use spaces, you negate the benefit of using tabs.

PSR-1 and PSR-2 to be Approved as Standards by hariktin PHP

[–]jasonlotito -5 points-4 points ago

I cannot see how vi wastes time if you are editing on the server. Maybe it's just that you don't know vi or another quality text editor. In this case, it's an issue of ignorance.

Really, if you are working on a server, and you don't know how to use a good text editor, you are the problem.

PSR-1 and PSR-2 to be Approved as Standards by hariktin PHP

[–]jasonlotito 4 points5 points ago

That's an issue with your editor. Various text editors already solve that. vi, for example, and numerous others.

Indeed, I see no reason every to move anywhere using the arrows keys, especially back 16 spaces.

PSR-1 and PSR-2 to be Approved as Standards by hariktin PHP

[–]jasonlotito 0 points1 point ago

Actually: "When the argument list is split across multiple lines, the closing parenthesis and opening brace MUST be placed together on their own line with one space between them."

PSR-1 and PSR-2 to be Approved as Standards by hariktin PHP

[–]jasonlotito 2 points3 points ago

Then don't be PSR-2 compliant. It's not a requirement. However, it is an easy way to establish a set of standards. Indeed, nothing is stopping you from creating a "PSR-2 (Tabs)" standard that invokes a tabs over spaces and defines how those tabs are supposed to be used (do you only use tabs for indenting, or do you mix tabs and spaces).

PSR-1 and PSR-2 to be Approved as Standards by hariktin PHP

[–]jasonlotito -2 points-1 points ago

Not to get into the space/tab debate, but spaces should not waste time if you are working on a server. Any good editor will let you navigate regardless of spaces. vi allows you to easily jump around, regardless of tabs or spaces, without worrying about either one.

If you are traversing over individual spaces or tabs, you are doing it wrong.

African American Doctor Depicted as Gorilla at UCLA Event. Injustice and Racism continue... by kuruptmixerin videos

[–]jasonlotito -1 points0 points ago

Did you catch the part where that was just the first incident?

African American Doctor Depicted as Gorilla at UCLA Event. Injustice and Racism continue... by kuruptmixerin videos

[–]jasonlotito 0 points1 point ago

There is no AA in California. Parent was wrong.

How I feel every time I hear a Christian talking about separation of church and state.... by OhioJunglist2in atheism

[–]jasonlotito -2 points-1 points ago

It's called context. Ignoring the context of what he's answering and everything he said, and focusing on just selected elements is wrong, and dishonest. If you disagree, then do you mind answering this:

My wife and I can't have kids. So we shouldn't have been able to be married

Why do you believe you and your wife shouldn't have married? That's a pretty awful thing to say.

Oh ... good ... bestiality

Really? Sickening.

Context, it's kinda important.

How I feel every time I hear a Christian talking about separation of church and state.... by OhioJunglist2in atheism

[–]jasonlotito -2 points-1 points ago

According to Catholics, no.

But why are you getting angry with the poster? He doesn't subscribe to those beliefs, just explaining non-religious reasons some might come up with, however dumb. Attacking him for it is very rude.

But yeah, some say the reason for marriage is about kids. State sanctioning of this is to support future tax payers. Yes, it's stupid, but I've heard it.

Firing a Bolter... by MonstarDeluxein Warhammer

[–]jasonlotito 3 points4 points ago

A Marine issued bolter? No. A Marine issued bolter is tied to the Astartes.

http://warhammer40k.wikia.com/wiki/Bolter#Standard_Bolter_Round

"The Bolters used by the Space Marines are known to be coded to Astartes genetic signatures so that they are only functional for members of the Adeptus Astartes."

As for a non-Astartes bolter: "The Bolter is simply far too heavy to be wielded effectively by the average human being or Imperial Guard soldier."

This implies that while a human can wield one, it won't be effective. Some exceptions apply.

If you owned a 3,000 sq.ft. building zoned for commercial in a suburban setting, what otherwise low start-up cost business would you fill it with? by WonderHoneybeein Entrepreneur

[–]jasonlotito 2 points3 points ago

Depends on the location. There is always the option of going with a co-working space (again, depends on the location). Granted, you'd have to set the place up for co-working, and get the word out. But I'd imagine the overhead is not as fairly straight forward. People are renting out desk space and certain amenities.

Apple blocks Dropbox-based apps - should be Apple continues to block apps with links to pay for things without paying Apple 30% by nootopianin iPhoneDev

[–]jasonlotito 2 points3 points ago

Yeah, your rewording of the title is not accurate. The app takes you to a page where you can create an account. navigating from this page, you can eventually get to a page that allows you to pay money for an account upgrade. Indeed, the screenshot that's claimed to be provided by apple highlighting the problem does not show any way to pay for the upgrade.

"I wonder if Oracle followed that link, because if I were Oracle, it's the last thing I'd want the public or the jury to see." by kristovaherin programming

[–]jasonlotito 2 points3 points ago

They do.

Oracle might argue that Google didn't do it that way, and of course I'd like it if Google had used the GPL code,

They know they didn't fork the GPL code. That's not the issue.

'9223372036854775807' == '9223372036854775808' by tjanssonin programming

[–]jasonlotito 0 points1 point ago

Putting "quotes" around something doesn't make it "correct."

9223372036854775807.0 == 9223372036854775808

Is not correct. It is, however, something that has to be accepted and dealt with.

It is a known deficiency. It is not correct.

view more: next