5 ms·
Stop advertising the NSA please
by crisisactor 10y ago
Stop advertising the NSA please
- BasDirks 10y agoThis surely isn't advertisement. The code is terrible. Try-catch jungle, ad-hoc URL manipulation, lack of caching, writing/constructing HTML in strange places, weak comparison operators in dangerous places (string vs lunch), etc.
- crisisactor 10y agoYeah but when visiting in Lynx, it displays fine. Lynx is the yardstick I use to judge a website. There are countless .GOV sites like this made on old Windows 2000 machines with Frontpage installed, but my point is the information is still communicated. It probably doesn't matter about some spagetti JS lumped in. I assume any sensible person will have JS turned off when visiting a URL like that anyway...
- BasDirks 10y agoI see. I think it's important to make websites work well for as many clients as possible, including lynx. Ideally, JavaScript should only be used for enhancement of necessary interactivity. But when a choice is made in favor of some technology, I like to see it used properly. In this case maintainability, performance and robustness could benefit from improving this code.
- kiya0 10y ago:) man have you even met today's web developers? Turning off js is like asking them to work in assembly. Now that Google has gone and built everything the OS does, into the browser the mordern day web dev is programmed to think that they exist to rebuild desktop apps in the browser. Communicating information simply in plain text is the last thing on their minds.
- BinaryIdiot 10y ago> have you even met today's web developers? Turning off js is like asking them to work in assembly. To be fair asking them to build apps that don't require JS is like the old man yelling to get off their lawn :) It's hard maintaining two ways of doing things and it's not always easy to make them both use the same avenue. I'm getting to the point where I honestly don't care either way.
- geekamongus 10y ago.gov websites are supposed to be ADA Section 508-compliant, so most of them do work in Lynx.
- honua 10y agoThe point here isn't how well it works but the interesting style of code.
- honua 10y agoAs well as declaring variables in if blocks if (!undeclaredVariable) { var undeclaredVariable = false; }
- BasDirks 10y agoYes. I'm very glad with the addition of 'let' to ES.