November 25, 2018

SportsFilter: The Sunday Huddle:

A place to discuss the sports stories that aren't making news, share links that aren't quite front-page material, and diagram plays on your hand. Remember to count to five Mississippi before commenting in anger.

posted by huddle to general at 06:00 AM - 12 comments

I think the auto-login might be working now. I found a && that should have been a &.

posted by rcade at 11:52 AM on November 25, 2018

It's working for me now. Thanks!

How many lines of code did you comb through before you finally saw the issue? Or did you some sort of automated code checker thing?

posted by NoMich at 11:59 AM on November 25, 2018

Finding it was manual. There's a small block of PHP code that's loaded on all pages for things like auto-login and headers. I kept messing around with it until I saw the logic error.

My programming style is as mistake prone as a Jaguars passing scheme.

posted by rcade at 12:09 PM on November 25, 2018

& I must say well done.

posted by Howard_T at 01:11 PM on November 25, 2018

Well, maybe I spoke too soon. I closed Chrome and started it again and guess what? SpoFi had me logged out again.

posted by NoMich at 01:37 PM on November 25, 2018

Code was fine until it got corrupted by Jalen Ramsey's mouth.

In fluid physics, NoMich's logout is known as a Fournette precursor.

posted by beaverboard at 05:57 PM on November 25, 2018

Logged me out again too. Aargh!

posted by rcade at 08:07 AM on November 26, 2018

What's the difference between & and &&? I've only been taught to use && in my intro-courses.

posted by FLsportsman at 01:41 PM on November 26, 2018

& is usually for bit-shifting. In 20 years of coding I've used it about twice. I am suspicious that changing from && to & would fix things. It's like someone saying they adjusted a comparison from == to =

posted by yerfatma at 02:09 PM on November 26, 2018

What's the difference between & and &&? I've only been taught to use && in my intro-courses.

Using && instead of & will cause the second half of an expression to not be evaluated if the first part is false.

If an expression was if (x.foo() && y.bar()) and x.foo() was false, y.bar() would never be called.

The place I work makes heavy use of && in JavaScript. Here's a good Stack Overflow question on the subject.

posted by rcade at 05:20 PM on November 26, 2018

Javascript would be much more verbose without &&. Javascript also doesn't really do bit-shifting. :p

posted by billsaysthis at 11:44 AM on November 27, 2018

NERDS!!!!!

posted by tahoemoj at 01:14 PM on November 27, 2018

You're not logged in. Please log in or register.