News for hackers. Stuff that matters.
Re:Devops Horror Stories by mkramlich on Thursday October 31, 2013 @03:02PM (#6649047)
> - Troubleshooting a bug in a site, view source.... and see SQL in the JS.

this is why I refuse to do "View Source" on the HealthCare.gov website. I'm afraid of what I might see.

Re:Devops Horror Stories by aaronem on Thursday October 31, 2013 @04:52PM (#6649764)
I'm just gonna leave this right here:

        if ('en' === 'en') {
            $('#desktop-nav .middle').append('<a class="liteac-login topnav myprofile" href="/marketplace/auth/global/en_US/myProfile#landingPage">My Profile</a>');
            $('.mobile-nav-right').append('<a class="mobile-right-bottom liteac-login" href="/marketplace/auth/global/en_US/myProfile#landingPage">My Profile</a>');
        } else {
            $('#desktop-nav .middle').append('<a class="liteac-login topnav myprofile" href="/marketplace/auth/global/es_MX/myProfile#landingPage">My Profile</a>');
            $('.mobile-nav-right').append('<a class="mobile-right-bottom liteac-login" href="/marketplace/auth/global/es_MX/myProfile#landingPage">My Profile</a>');            
        }
Re:Devops Horror Stories by illicium on Thursday October 31, 2013 @09:21PM (#6651238)
Ah, now I see why it has 500 million lines of source code.
Re:Devops Horror Stories by mkramlich on Thursday October 31, 2013 @10:12PM (#6651415)
and costs 200M$+

because, you know, static HTML and some CRUD/lookup logic behind-the-scenes is just that hard

Re:Devops Horror Stories by DCoder on Saturday November 02, 2013 @04:48AM (#6658584)
Seen this pattern many times before. One of those 'en' strings is the current user's language being written into the source, the other is hardcoded. If your server-side templating engine is impotent and only supports variable interpolation without conditionals, this approach is easier than pulling the right JS snippet from somewhere else.