Slashdot Mirror


User: Dynedain

Dynedain's activity in the archive.

Stories
0
Comments
2,000
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 2,000

  1. Re:jQuery is crapware on To Learn (Or Not Learn) JQuery · · Score: 1

    You bitch about devs lazily abusing repeated DOM lookups instead of variables, but that is exactly what prompted the Javascript speed war that even resulted in massive improvements on IE. So even if you think it's bad practice, it helped everyone.

  2. Re:Define controversy... on To Learn (Or Not Learn) JQuery · · Score: 2

    Exactly.

    If you're browser-side JS developer (as opposed to something server-side like Node.JS) and you haven't worked with JQuery, then you're not really a browser-side JS developer. It's just far too widely used to pretend that it doesn't or shouldn't exist. And most of the consistency across other frameworks (like using the $ shortcut or css selectors to target elements in the DOM) comes from the popularity of JQuery to begin with.

  3. Re:I remember seeing a carpool club in the 90's... on Anti-Uber Taxi Protest Blocks Access To Airports In France · · Score: 1

    You answered your own question:

    The latter of these two was not actually permitted to be demanded by the driver, but it was still a general practice among club members

    If you volunteer to give your carpool driver $10 to help with gas - it's fine.

    If your driver asks for $10 to cover gas - it runs afoul of the livery laws. It's hard to enforce, but that's generally how the law is written (at least in the US).

  4. Re:Arrest on Anti-Uber Taxi Protest Blocks Access To Airports In France · · Score: 1

    Cabs predate the automobile by a long shot.

    Even cities with incredibly good public transportation options still have cabs because there is a natural market for being able to travel *directly* from point A to point B in a more expedient manner than public transportation could ever provide.

  5. Re:Infinity on Ask Slashdot: What's the Harm In a Default Setting For Div By Zero? · · Score: 1

    This is a little like saying it would be handy if the compiler knew what you meant when you wrote code that attemtped to do soemthing for which there is no specifically well defined answer.

    If the compiler or language has a consistent, documented behavior for the scenario, then by definition there is a specifically well-defined answer.

    For certain knowledge domains and programming patterns, this would not be a hurdle but a benefit. Languages are full of these behavioral "flavors".

  6. Re:Infinity on Ask Slashdot: What's the Harm In a Default Setting For Div By Zero? · · Score: 1

    According to another poster elsewhere, some processors do exactly what the OP requested, and that it's doable today in machine code. Other posters have mentioned that using unsigned or floating point integer types allow this behavior in various languages.

    There's no reason why it couldn't be supported by a language, and it's absolutely not impossible.

    Everyone's argument about it being impossible comes from expressing things in languages where it's explicitly "undefined" or NaN, or otherwise illegal in that language. If it's a standard and predictable behavioral rule of a language, then it's definitely usable in that language.

    Weak types in PHP or JS are very analogous. Sure, lots of people make mistakes with them (and there's other faults that encourage those mistakes), and most problems stem from inconsistencies in the language APIs when converting types, but if you understand how types work in those two languages you can write surprisingly complex behaviors using very simple and concise expressions. Simplicity and terseness is very important in a scripted language.

  7. Re:Infinity on Ask Slashdot: What's the Harm In a Default Setting For Div By Zero? · · Score: 1

    What's good for a particular algorithm buried in the code base is not necessarily good for user input which may be used a hundred other ways.

    0 could be a perfectly valid user input or calculated result of multiple user inputs that could cause the algorithm to choke.

    Prefixing every math operation you put in your code base with a check for 0 if the input values are unknown can be tedious, especially in obtuse languages/platforms that don't support good modularity - hence the OPs question about a globally consistent behavior.

  8. Re:If it must not happen, assert that it doesn't! on Ask Slashdot: What's the Harm In a Default Setting For Div By Zero? · · Score: 1

    Because in some languages and programming formats (especially ones where this kind of problem would come up frequently) it's painful to do validation checks before every mathematical operation. Jamming crap into Excel formulas comes to mind (thank God I don't have to do any real work there).

    I could totally understand the desire of a language that featured this or had it as a flavor setting. I think it could allow for some interesting logical expressions and verbosity reduction if it was understood to operate in a consistent manner.

  9. Re:I don't think you understand the definition on Ask Slashdot: What's the Harm In a Default Setting For Div By Zero? · · Score: 1

    Oh so you want to use this language: http://xkcd.com/1537/

  10. Re:Infinity on Ask Slashdot: What's the Harm In a Default Setting For Div By Zero? · · Score: 1

    Unless of course 0 is a valid entry for the external input.

    Or if two external inputs negate each other somewhere in the process.

    $10 in credits, $10 in charges, net $0, what's the daily interest charge on that? Oh right, now I need to add a conditional before I do the calculation, lather, rinse, repeat all over your business logic tier.

  11. Re:Infinity on Ask Slashdot: What's the Harm In a Default Setting For Div By Zero? · · Score: 1

    When two different fields in different areas of your app accept 0 as a valid entry for legitimate use, its pretty dam easy to run into a divide by 0 condition or even a 0/0 condition.

    The point of the original post is that it could be pretty handy to have a sane predicable default result instead getting a runtime error or having to introduce conditional logic every single time you do divide by a variable or calculated value..

  12. Re:Stop charging for checked bag on US Airlines Say Smaller Carry-Ons Are Not In the Cards · · Score: 1

    Amen.

    On every flight that I've been on in the last couple of years where the first checked bag was free, there has been ample overhead storage space, sometimes entirely empty bins on planes with filled seats!

    And the reverse has been true. The airlines that charge for the bag (*ahem* American Airlines) have consistently had departure delays as the flight attendants spend everyone's time to convince the last few people to check their bags because the've squeezed every possible bit of room out of the overhead bins already.

  13. Re:Linux developers know C/C++, Python, Perl on Reasons To Use Mono For Linux Development · · Score: 3, Insightful

    Since Java isn't terribly popular in Linux, .NET has no chance.

    Huh????? Most public facing Java service or site I've worked with as a developer have been running on a Linux box, normally RHEL or CentOS. Sometimes I've run into NetBSD, and occasionally HP-UX or Solaris.

    I cannot fathom how you equate a (non-real) lack of Java development on Linux as a reason why .NET has no future there.

  14. Re:$100,000,000 on FCC To Fine AT&T $100M For Throttling Unlimited Data Customers · · Score: 2

    AT&T knew full well what they were doing was illegal. They couldn't just cut off the plans mid-contract (though they could and did stop offering new contracts) without giving customers the ability to break contract without penalty. Which is why they kept calling them "Unlimited" plans as they started implementing limits.

  15. Re:Not meaningful on FCC To Fine AT&T $100M For Throttling Unlimited Data Customers · · Score: 1

    As a customer who has personally been affected by this shady practice, I like that the Government is stepping in and regulating what is clearly false advertising and deceptive business practices on the part of AT&T.

    AT&T took very intentional steps here to degrade what customers were promised, with the intent to switch them over to higher-priced service plans. It also was done in a way to prevent customers escaping via escape clauses when contract terms changes.

    As a customer, what are my options to avoid being screwed by a unsolicited unilateral material change to the service agreement I signed? I could buckle and pay more. I could stay with what I have and get something different than what I was sold. I could leave AT&T for one of the 3 competitors:
    - Sprint, not possible at the time because network technology differences prevented bringing over your existing phone, plus poor coverage in areas I want to use the phone
    - Verizon, not possible at the time because network technology differences prevented bringing over your existing phone
    - TMobile, not possible since leaving the AT&T contract early leaves you with a locked phone unusable on TMobile's network, plus poor coverage in areas I want to use the phone
    - Pay as you go and various 2nd-tier carriers that piggy back on the above. Exact same problems as already mentioned for switching to one of the other 3 major carriers.

    When we subsidize industries and regulate them in such a way that no real competition exists, then absolutely it is the role of the Government to also regulate them to protect the customers against abuse of customer contract lock-ins and deceptive business practices.

    Imagine if the power company offered you a fixed-rate 2 year contract and then halfway through it said "Switch to our new higher-price plan or we're cutting your line voltage after the first 3KWh of usage".

  16. Re:Works for "unlimited" but not for "infringe" on FCC To Fine AT&T $100M For Throttling Unlimited Data Customers · · Score: 2

    AT&T is/was intentional bottlenecking the traffic of "unlimited" customers if you hit 3GB in a month. On average AT&T LTE speed, you can hit that monthly chokehold in just over 10 minutes.

    10 minutes of full network usage a month, and they call it "unlimited".

    While simultaneously they spam you to switch to their convenient 4GB/mo plan with 1GB billing increments beyond that to avoid any speed limits.

    There is no possible way that a defined cap can be construed as "unlimited". Whereas "full usage up to network availability" is a pretty reasonable definition that the average layperson would agree with.

    No matter how you slice it, it's clearly false advertising and a shady way to try to force customers onto more expensive offerings without discontinuing the existing service contract.

  17. Re: It's never been in the news, but on ISP Breaking Net Neutrality? The FCC's Got a Complaint Form For That · · Score: 2

    You sure you aren't just overloading the crappy router's buffer with too many open TCP connections? I've seen that problem with a lot of routers and lowering the limit solves the issue.

  18. Have you been to downtown LA recently with the multi-million dollar condos and lifts?

  19. Re: Do people really take this risk seriously? on Asteroid Risk Greatly Overestimated By Almost Everyone · · Score: 1

    But before you die, do you care that I am going to kill you?

    Hence why it's a stupid argument to try to use for astroid-based extinction.

  20. Re: Do people really take this risk seriously? on Asteroid Risk Greatly Overestimated By Almost Everyone · · Score: 3, Interesting

    What a stupid argument. If I kill you tomorrow you won't care because you're dead. So why worry about if I'm out to kill you?

  21. Re:Brand? on 17-Year-Old Radio Astronomy Mystery Traced Back To Kitchen Microwave · · Score: 1

    The fridge that came with my condo died last year, my guess based on the design and model number is that it was built sometime around Y2K and was relatively high-end at the time. It even was energy star rated.

    My new fridge is bigger and was definitely not the most efficient model on the showroom floor. My electricity bill averages has been at least $30 less each month compared to the previous year. I thought it a fluke the first month because we had been traveling, but it has repeated over and over.

    At this rate, the electricity savings alone will pay off the new fridge in 6 years.

  22. Re:Brand? on 17-Year-Old Radio Astronomy Mystery Traced Back To Kitchen Microwave · · Score: 1

    Yep - I brought one like that to college. It was my great-grandparents' and the manufacturing stamp made it 7 years older than I was. It didn't even say "microwave" - it was labeled as a "radar range".

    Sadly, digital ones I've had to buy since it died have lasted 3-4 years tops.

  23. Re:Tabs vs Spaces on Stack Overflow 2015 Developer Survey Reveals Coder Stats · · Score: 1

    Why would you assume that from a reference to typewriters?

    I use command-line tools almost hourly.

  24. Re:Tabs vs Spaces on Stack Overflow 2015 Developer Survey Reveals Coder Stats · · Score: 1

    Funny, the 1928 Underwood that I'm staring at has little pins that you move to wherever you want the tab stops to be, just like margins are fully configurable.

  25. Re:Tabs vs Spaces on Stack Overflow 2015 Developer Survey Reveals Coder Stats · · Score: 1

    If you avoid spaces and use only tabs, OTOH, the code formatting will look correct on any editor with any tab setting.