Slashdot Mirror


User: JustNiz

JustNiz's activity in the archive.

Stories
0
Comments
6,109
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 6,109

  1. Re:Breaking out of the middle of a loop on Bad Programming Habits We Secretly Love (infoworld.com) · · Score: 1

    You may consider them clean but I don't.
    Their use is analogous to the "friend" keyword in C++, in that the fact you are doing it at all shows there's a deeper problem with your logic/system design.
    I've been a professional software developer for 35 years and In all that time I've never seen an example of code that breaks out of a loop early that was justifiable for either efficiency or readability, and where I couldn't easily write a much cleaner version that didn't.

  2. Re:"The code comes out cleaner"? on Bad Programming Habits We Secretly Love (infoworld.com) · · Score: 1

    Sorry I I have too many threads running in my brain. I meant TFA not OTA.

  3. Re:"The code comes out cleaner"? on Bad Programming Habits We Secretly Love (infoworld.com) · · Score: 1

    Yeah but none of the suggestions in the OTA actually make the code cleaner.

  4. Re:GOTOs in C on Bad Programming Habits We Secretly Love (infoworld.com) · · Score: 3, Insightful

    Wow. WAY too much code for what it actually needs to be. Furthermore the fix functions have now leaked scope all the way to main().

  5. Re:GOTOs in C on Bad Programming Habits We Secretly Love (infoworld.com) · · Score: 0

    Yuk on many levels.
    Try something like this:

    x=do_stuff();
    if ( x )
          x= do_more_stuff();
    if ( !x)
          {
          fix_my_mess();
          fix_it_4realz();
          }
    return x;

  6. >> There was less agreement when it came to employees using personal devices; approximately a third of respondents opposed surveillance in that case."

    So wait.... 2/3 of all Americans believe your employer should have full access to whatever you do with your personal devices and life? So much for the USA being the self-proclaimed "Land of the free". WTF are you guys smoking ?

  7. Re:Kyle worked at a grow on Marijuana Growers Need Software, Too (Video) · · Score: 1

    You're the one showing your ignorance. There is no definitive right or wrong with respect to art/music, only opinions. Yours is that rap is an amazingly creative music form. Mine is that rap is blatantly talentless commercial shit. These are all just opinions so there is nothing to be completely wrong about.

  8. Lets do nothing. on US Toddlers Involved In Shootings On a Weekly Basis (washingtonpost.com) · · Score: 1

    This is a clear example of natural selection in action guys.
    Please lets not eliminate every possible way that mother nature can weed out the less intelligent.

  9. Not just Putin on How Putin Tried To Control the Internet (vice.com) · · Score: 2

    How is this a Putin thing? Many if not most other governments are trying different approaches to pretty much the same goal (e.g. https://en.wikipedia.org/wiki/..., https://en.wikipedia.org/wiki/...).

  10. Re:Personal definitions on Ask Slashdot: What Non-lethal Technology Has the Best Chance of Replacing the Gun? · · Score: 1

    1) See the link.
    2) Dictionaries don't provide comparisons or highlight differences between things.

  11. Re:What's with the spam? on Ask Slashdot: What Non-lethal Technology Has the Best Chance of Replacing the Gun? · · Score: 1

    Its not my personal definition. Did you even see the link?

  12. No they cant.
    Republic=power is in the hands of elected officials,
    democracy=power is in the hands of the people

    http://www.lexrex.com/enlighte...

    Basically in a republic, the officials once elected can legitimately do what they like, even act in opposition to the peoples wishes, and also go against any promises of intent they made when they were elected.
    That can't happen in a Democracy, at least legitimately.

  13. Republic=power is in the hands of elected officials,
    democracy=power is in the hands of the people

    http://www.lexrex.com/enlighte...

    Basically in a republic, the officials once elected can legitimately do what they like, even act in opposition to the peoples wishes, and also go against any statements of intent they made in order to get elected.
    That can't happen in a Democracy, at least legitimately.

  14. Republic=power is in the hands of elected officials,
    democracy=power is in the hands of the people

    http://www.lexrex.com/enlighte...

    Basically in a republic, the officials once elected can legitimately do what they like, even act in opposition to the peoples wishes, and also go against any promises of intent they made when they were elected.
    That can't happen in a Democracy, at least legitimately.

  15. http://www.thisnation.com/ques...

    See I can do that too.

  16. Re:Well.... on Ask Slashdot: What Non-lethal Technology Has the Best Chance of Replacing the Gun? · · Score: 4, Insightful

    Yes, sadly morons like that exist in the UK too, but my point was, the UK cops generally don't start off by alienating people and already assuming everyone is a criminal that needs to be intimidated.

    Where as a US cop is apprently free to jump straight to tazing someone for any slight non-compliance or even pulling a gun and shoving their face into the sidewalk and kneeling on their neck, the UK cops would see that as an absolute last resort and a massively unprofessional failure because they have found out that surprisingly, people are a lot more compliant if you refrain from gratuitously intimidating/physically assaulting them.

  17. You do realise that the US is a republic and not a democracy right?

  18. Well the US is a republic not a democracy so that isn't actually whatâ(TM)s happening now.

  19. Re:Well.... on Ask Slashdot: What Non-lethal Technology Has the Best Chance of Replacing the Gun? · · Score: 4, Insightful

    >> to truly grasp any of this, you'd have to understand the world for what it is, not what you've been led to believe it is.

    As someone who has seen a lot of the world including having lived/worked in several different countries, and now lives in the US but wasn't born/raised here, I can clearly differentiate between the rampant patriotic brainwashing that goes on here in every school and throughout all the media, and what the rest of the world is actually like.
    it therefore seems to me that your assertion that I don't know the real world actually fits most Americans (including you?), and especially those that have never had their eyes opened by ever leaving the American continent, far better than it does me.

  20. I think you totally hit the nail on the head with all those changes.

  21. Re:Well.... on Ask Slashdot: What Non-lethal Technology Has the Best Chance of Replacing the Gun? · · Score: 5, Insightful

    >> Reform of policing so citizens actually trust the police?

    This. When I moved to the US, I was amazed to find that US cops are very clearly there to only protect the governments interests and are absolutely not there to help/protect citizens. That thinking was very alien to me coming from the UKwhere as long as you have done nothing wrong the cops are generally reasonable, approachable and even your friend because they realize the true value of community-minded policing. By comparison, the whole attitude, body language and even clothing style of cops in the US is designed to be immediately intimidating and aggressive. Its a stupid bullying attitude that actively alienates cops from the people so IMHO actually does way more harm than good.

  22. cute? really? on Chinese Company To Sell Genetically Modified Micro Pigs as Pets (abc.net.au) · · Score: 1

    It never ceases to amaze me what some people think is cute.

  23. Re:This guy should be a lawyer on Volvo Will Accept Liability For Self-Driving Car Crashes (bbc.com) · · Score: 1

    >> you cannot possibly know a better answer as a non-engineer.

    Ironically, I actually happen to be a software engineer in the auto industry. Looking at the weak software processes in the industry and the masses of crap code thats already deployed, there's no F'ing way I'd trust my life to a car. Hell from what I've seen in real life I wouldn't even trust it to navigate reliably.

  24. Re:Wait! on Debian Dropping Linux Standard Base (lwn.net) · · Score: 1

    All your base belong to us.

  25. Re:Best solution... on Apple Approves, Then Removes In-App Ad Blocker (reuters.com) · · Score: 1

    I would be right along with you if only nexus phones met both my minimum must-haves of an sd card slot and user-replaceable batteries.
    Meanwhile I use cyanogenmod on an old Samsung S3 and can do exactly the same.