Open Side Menu Go to the Top
Register
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

04-02-2013 , 04:46 PM
Quote:
Originally Posted by SenorKeeed
I know it's just frustrating. My only programming experience is in matlab, which I've used quite a bit. I know it's not a real programming language but it's just so much easier to work with. I particularly miss just being able to just fool around at the command prompt.
idk what you're doing or how much control you have over what languagues you're using but I would recommend checking out Python sometime, with an eye toward numpy. That's actually why I ended up learning the language in the first place (I can't stand MATLAB)
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-02-2013 , 05:30 PM
Quote:
Originally Posted by SenorKeeed
I know it's just frustrating. My only programming experience is in matlab, which I've used quite a bit. I know it's not a real programming language but it's just so much easier to work with. I particularly miss just being able to just fool around at the command prompt.
please don't conclude from this that "real" programming languages are unnecessarily difficult with poor tools, or that your desire to be able to fool around at the command prompt is somehow noobish. It's not. It's the correct desire and your frustration is a valid complaint that has nothing to do with inexperience.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-02-2013 , 05:42 PM
Quote:
Originally Posted by Xhad
idk what you're doing or how much control you have over what languagues you're using but I would recommend checking out Python sometime, with an eye toward numpy. That's actually why I ended up learning the language in the first place (I can't stand MATLAB)
It's a class. C++ is required for this part, then we move to Java towards the end. I actually mostly enjoy the work. Everyone says python is a great language, I'm going to try and put it on my to do list this summer.

Quote:
Originally Posted by gaming_mouse
please don't conclude from this that "real" programming languages are unnecessarily difficult with poor tools, or that your desire to be able to fool around at the command prompt is somehow noobish. It's not. It's the correct desire and your frustration is a valid complaint that has nothing to do with inexperience.
I love the debugging tools in MATLAB. You could set break points in a function, pausing the function at various lines and actually seeing what's going on in the workspace at the command prompt. lol I guess from your post there aren't any comparable tools for C++? I only really figured out where I was going wrong in my problem yesterday by printing a bunch of stuff at various points in the function. Which is kind of the same but just a giant pain in the ass.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-02-2013 , 05:47 PM
Quote:
Originally Posted by SenorKeeed
lol I guess from your post there aren't any comparable tools for C++? I only really figured out where I was going wrong in my problem yesterday by printing a bunch of stuff at various points in the function. Which is kind of the same but just a giant pain in the ass.
Not that the tools don't exist. They are just hard to setup, learn, and use. At least as I remember them: I haven't done C++ programming in years. And obviously since it's a compiled language the REPL has a compiling step. Something like this may actually be of use to you:

http://ideone.com/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-02-2013 , 05:51 PM
Yeah I can't even overcome the inertia needed to switch to Xcode and quit using Aquamacs and running my programs from the terminal. Switching to a new IDE is pretty intimidating and not worth it for any given single small project, so it keeps getting put off.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-02-2013 , 06:05 PM
Quote:
Originally Posted by SenorKeeed
I know it's just frustrating. My only programming experience is in matlab, which I've used quite a bit. I know it's not a real programming language but it's just so much easier to work with. I particularly miss just being able to just fool around at the command prompt.
What are coding in C++?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-02-2013 , 06:10 PM
It's a class. It's Introduction to Software Engineering or somesuch.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-02-2013 , 08:36 PM
Learning an IDE will let you step through C++ like your used to with Matlab. It's worth the effort.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-02-2013 , 08:41 PM
Quote:
Originally Posted by kerowo
Learning an IDE will let you step through C++ like your used to with Matlab. It's worth the effort.
OK I will learn Xcode for the next assignment. Well, I have a signals test the day ater it is due. The next assignment though...I will learn Xcode
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-02-2013 , 08:42 PM
Or I guess I could quit drinking and posting on 2+2, that would probably free up some time
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-03-2013 , 07:23 AM
What ways would you guys recommend working with an XML file?

I've been working with fairly large XML data by opening it in Excel, but it has reached a point where Excel crashes when I try to open the XML file (possibly file too big?)

I'd like to run basic analysis of the data, i.e. breakdown of % of total with this attribute, etc., and would be interested in using this opportunity to new programming techniques. I've heard stuff like MySQL tossed around but am not exactly sure what it applies to.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-03-2013 , 12:05 PM
So, about the switch(true) thing. Here's the code in question:

Code:
<?php
    $i = "";

    switch (true) { 
        case (!preg_match('([a-zA-Z].*[0-9]|[0-9].*[a-zA-Z])', $i)):
            $isvalid = false;
            break; 
        case (strlen($i) > 30): 
            $isvalid = false;
            break;               
        default: 
            $isvalid = true;
            break;
    }

    ?>
I actually told the author what I thought of it and he ultimately removed it. The response (emphasis added by me):

Quote:
Actually, from my knowledge, there's nothing bad using "switch (true)", considering for example Zend, Symfony and Laravel uses it in some occasions. It probably isn't the best in this example. I did consider leaving out the exercise because of the RegEx, but I decided to leave it. I'll consider removing it, or making it more simple.
I'm tempted to ask for some production examples.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-03-2013 , 12:37 PM
It also irritates me because it misses the point of switch statements and has two conditions that do the exact same thing.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-03-2013 , 12:41 PM
Quote:
Originally Posted by Xhad
I'm tempted to ask for some production examples.
http://enterprise-js.com/25
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-03-2013 , 12:51 PM
Quote:
Originally Posted by Xhad
I'm tempted to ask for some production examples.
because we all know that ridiculous, terrible code never ends up in production?

Last edited by tyler_cracker; 04-03-2013 at 12:51 PM. Reason: lol doing a regex match *before* checking the length. herp derp, i wonder which operation is more expensive
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-03-2013 , 01:03 PM
Quote:
Originally Posted by tyler_cracker
because we all know that ridiculous, terrible code never ends up in production?
Well, the part that raised my eyebrow is that the first company on that list develops the language in question. Paging eevee?

Last edited by Xhad; 04-03-2013 at 01:06 PM. Reason: I noticed the performance thing too, but actually ran out of fingers while enumerating the *other* issues I saw
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-03-2013 , 08:43 PM
pretty much.

eevee lives in seattle; you guys should hang out. i think you'd get along famously .
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-03-2013 , 09:11 PM
Quote:
Originally Posted by candybar
Quote:
Computer cycles are cheaper than developer cycles: Include your favorite javascript framework to maximize productivity regardless of whats already included on the page.

$.fail()

Submitted by: foobarfighter
ShoeLace?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-03-2013 , 09:14 PM
Quote:
Originally Posted by daveT
ShoeLace?
Nope, but if I have an unknown brother or sister out there (s)he is likely it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-03-2013 , 09:17 PM
Actually, according to the Twitter link, foobarfighter is a core Dojo developer. So, probably Shoe's twin from Bizarro World.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-03-2013 , 09:37 PM
Quote:
Originally Posted by daveT
Actually, according to the Twitter link, foobarfighter is a core Dojo developer. So, probably Shoe's twin from Bizarro World.
He's talking about someone including jQuery in a project that's built in Dojo to do basic dom manipulation that's plainly supported in Dojo.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-04-2013 , 04:32 AM
Quote:
Originally Posted by daveT
ShoeLace?
Quote:
Originally Posted by Shoe Lace
Nope, but if I have an unknown brother or sister out there (s)he is likely it.
Shoe's position was much stronger than that. His position was, "Don't use jquery even if you're using jquery on the page, because with enough work you can find a lighter weight alternative" -- correct, shoe?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-04-2013 , 07:01 AM
Quote:
Originally Posted by gaming_mouse
Shoe's position was much stronger than that. His position was, "Don't use jquery ever, because with enough work you can write exactly what you need and only what you need".
fyp
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-04-2013 , 07:05 AM
ty
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-04-2013 , 07:22 AM
The fixed quote is more accurate. I would rather use a bunch of small components instead of 1 massive thing where I only use 10% of it most of the time. My views changed a bit on run time performance since then, but I still think it's 100% negligent to shove jquery down your user's throat when all you really need is a small cross browser dom selector. Especially when like 10 of them exist already.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m