Slashdot Mirror


User: helixcode123

helixcode123's activity in the archive.

Stories
0
Comments
86
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 86

  1. Re: Very simple on Ask Slashdot: How Do You Make Novice Programmers More Professional? · · Score: 1

    If you're looking at someone else's code (or even your own, a year later), would you rather see...

    for (i = 0; i 3; i++) // Loop three times { some_fn(i); }

    Or...

    for t in 0.. MAX_TASKS { scheduler.grantTimesliceToTask(t); }

    Hmm.. Looks like an off-by-one bug. Should probably be
    for t in 0.. (MAX_TASKS -1)

  2. Microsoft wants to modify /etc/hosts.deny on Microsoft Seeks Trump Order Exemption for Workers With Visas (bloomberg.com) · · Score: 4, Funny

    # Trump/Bannon settings:
    ALL: ALL

  3. I don't think so. Even folks that love C++ will say "well, you don't really need to know foo-obscure-feature, but it's there if you need it. I was reading through Scott Meyers' "Effective Modern C++", an excellent book, but probably half of it was showing how to make sure you "move" your data instead of "copying" it. I'm no Java fan, but at least everything is a reference, so you don't have copy-by-accident ooga booga. If copying is so bad (which apparently it is because you'll definitely get reamed during a code review if you do), force a copy action via clone(), ike Java.

    The pain in C++ is on account of the "keep it compatible with C" mantra. C++ could be great if they'd just jettison that idiocy. It's like that stupid fighter that they're building that has to fit the requirements of every branch of the mility. It's complicated, overbudget, and doesn't work. They should build three fighters that work well in each domain. C++ should just be C++, and C can be C. That will probably happen eventually.

    Well, eventually C++ will re-implement Lisp according to Greenspun

  4. Yeah, I know. &&global_ref => &&universal_ref.

  5. The vagaries and complexities of C++ as it progresses in it's specification is reminiscent of efforts to get epicycles to explain motions of heavenly bodies. Geez, people are snide about Perl syntax. Now we have &ref, &&global_ref, [](args){my_lambda_code();}, copy constructors, move constructors, 'override' to fix virtual function breakage. This is just a mess of a language.

  6. Re:Right... on Companies Are Developing More Apps With Fewer Developers (fortune.com) · · Score: 2

    You hit the nail on the head. Wish I had mod points.

  7. Simple fix to old rogue source code issue on Rogue Source Code Repos Can Compromise Mac Security Due To Old Git Version (softpedia.com) · · Score: 5, Funny

    sudo port install nethack

  8. Faster and less power required. It's a win win. (probably lose a bit more at the cash register, though).

  9. I hate to blame the victim, but... on Chrome Extension Caught Hijacking Users' Browsers (softpedia.com) · · Score: 1

    Anyone installing an extension named "4chan Plus" gets what they deserve.

  10. Re:Glueing things together is how I teach OO desig on Overcoming Intuition In Programming (amasad.me) · · Score: 2

    I remember having a TA once challenge me - I had written an algorithm to operate iteratively, rather than recursively, because I had noticed the program would run out of memory if I did it the other way when fed large data sets - because to him, recursion was theoretically perfect and not using it was a personal affront. The fact that my code worked and his crashed after 4-5 minutes didn't matter.

    Tail recursion optimization usually takes care of problems like that, assuming the problem was running out of stack.

  11. Re:Emacs org mode on Ask Slashdot: Open Tools For Logbooks and Note-taking? · · Score: 1

    +2, and it has a nice table submode, and emitters for text, HTML, and PDF. If your boss asks what you've been doing this week, just C-c C-e and there's your report.

  12. ... hogs get slaughtered.

  13. A poor workman... on PHP At 20: From Pet Project To Powerhouse · · Score: 5, Insightful

    ... blames his tools. Crap code an be written in any language. Good code can be written in PHP. While not my first choice of languages, I have found myself on PHP projects and been fairly comfortable using it although during moments of frustration put in comments such as "These following 10 lines could be written in the following one line of Perl...".

  14. Re:Quiet? on Ask Slashdot: What Hardware Is In Your Primary Computer? · · Score: 1


    I know you're asking about user-built quiet systems, but I recently got a Dell 7910 and just love how quiet it is.

  15. Re:Yes & the sheer amount of existing code/fra on The Reason For Java's Staying Power: It's Easy To Read · · Score: 1

    I strongly agree with the parent. My favorite language implements this in a similar way to the parent's favorite:

    my @items = (1, 15, 27, 3, 54);
    my @result = grep { $_ > 10 } @items;

    I appreciate coding in a language that allows me to quickly and understandably (yes, Perl can be understandable... or not :-) get my thoughts into code. I used to enjoy coding in Lisp for the same reason (still would, if I could use Lisp at work these days). I enjoy coding in Java also, but the difference is noticeable.

  16. Nice to have a president with priorities on Obama Says Climate Change Is Harming Americans' Health · · Score: 2, Insightful

    Nice to have a president with priorities towards the well being of the citizens of our country, current and future.

  17. Re:How to totally screw up my ability to code: on Musician Releases Album of Music To Code By · · Score: 1

    Musician and programmer here (see shameless plug below). I completely agree. One of my colleagues always has music playing in one of our coding labs. It's nice music, often Mozart, but it just yanks my concentration. When I code I like to be able to immerse myself in it. Music keeps me buoyed up at the surface.

  18. Re:If it's cloud based like Office 365 on Microsoft Trademarks "Windows 365" · · Score: 1

    Yes. My kids do all of their school writing assignments on Google Drive (Docs); my daughter, now in college, did all of her work on the Google cloud during High School, and the kids love the real time collaboration features. My youngest, in 4th grade, uses a "private" Google service that their school set up. My point here is that I'm sure many people are using these Google services and Microsoft saw the writing on the wall. That is likely what helped the App group divorce themselves from the OS group in this matter.

    Note that the separation is not that strong. For example, I wanted to import a spreadsheet as a table into a Sharepoint wiki page (cloud based), and it required ActiveX. However, both Firefox and Chrome seem to be smart enough that if you do a CTRL-C from Libreoffice on the cells you want to import as a table, and then do a CTRL-V on the wiki page, it does the table conversion. That was a very pleasant surpise.

  19. If it's cloud based like Office 365 on Microsoft Trademarks "Windows 365" · · Score: 1

    it could be a decent service for folks on Linux. My company has gone with Office 365, and while the actual Office apps are currently a bit weak, Outlook works pretty well. Since I prefer Linux, and run it on my development machine, I have to boot up my VPN to do Windows based tasks. Running their apps on the browser would be more convenient for me.

    However, my current take is that their cloud application suite (Word, PPT, Sharepoint) isn't nearly as functional as the Google Drive analogs.

  20. Could dovetail with current electric vehicles on Toyota's Fuel Cell Car To Launch In Japan Next March · · Score: 2

    The nice thing about fuel cell technology working it's way into to the automotive arena is that it can dovetail quite nicely with the ongoing developments being made with electric vehicles, since there is significant overlap between the two.

  21. Spoiler: Don't read if you haven't seen "Her" on Understanding an AI's Timescale · · Score: 1

    The OP's point is similar to the last conversation Theodore has with Samantha where she tells him that her relationship with him is like a book, but that the time between the words keeps getting longer and longer for her, and she is becoming what is "in between the words".

  22. Emacs "Org Mode" file on Ask Slashdot: Professional Journaling/Notes Software? · · Score: 2

    I use Emacs with "Org Mode". It lets me collapse each day's information to single line, but all of the information can be searched like a normal Emacs buffer and expanded as needed. You even get the handy table formatting. If you need to output sections they can be rendered to PDF, HTML, etc.

  23. Name suggestions? on Goodyear's New State-of-the-Art Airship Makes Its First Flight · · Score: 1

    They haven't named it yet. I'm guessing they won't be going with "Hindenburg II"

  24. Re:emacs on Ask Slashdot: What Software Can You Not Live Without? · · Score: 1

    Emacs is a necessity for me.
    For editing local and remote (via tramp) files.
    Run simple shells, compile, grep, diff, clean directories. All within emacs.

    Long time Emacs user here. Can you expand on "clean directories" please? Parent posters have mentioned Tramp, the ability to (nearly) seamlessly edit files on remote system. This is a wonderful feature, along with ediff, for merging updates on my development system (i.e. my laptop) with my deployed code on my remote VPS.

  25. Re:I wonder... a time machine and a NetBSD install on Apple Macintosh Turns 30 · · Score: 1

    Remember that many of the early UNIX variants (SunOS, HP/UX, some others) started out on the 68000 chip. It was a very well designed and flexible chip. Then PowerPC was supposed to be a platform. (Remember CHRP? of course not).

    Macs have this image of oddball hardware, but except for NuBus it really wasn't all that true.

    Early? You call Unix on a 68000 Early? By cracky, I started out back in 1981 on our shared university system that ran on a DEC PDP-11/70. Boy were we all excited when a few years later we got to run on a VAX!

    And fortunately this was in California so the 5 miles I had to walk up hill to get to the computer lab was free of snow.