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

10-29-2013 , 06:23 PM
Quote:
Originally Posted by clowntable
This has always bothered me (even before starting my PhD) especially coming from startupy folks. Many PhDs are essentially the science counterpart to startups. Well I see the world this way and everyone sees it another way...**** them I'm right I'll just go ahead and show them.
Granted there's also quite a few "let me slightly improve this and do it in ONLY 6 YEARS!!" but then again there's plenty of lolbad programming projects as well. I think it's basically the counterpart to judging all programmers by some mindless corporate Javabots (or PHP cut&pasters).
Just to be clear, this isn't my attitude.

Or, at least, I know there are lots of good PhD programmers and lots of head-in-the-clouds-academic non-PhD programmers out there.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-29-2013 , 10:39 PM
i'm supposed to interview a phd next week. for a release engineering (really devops) position, of all things. will report back.

Last edited by tyler_cracker; 10-29-2013 at 10:41 PM. Reason: will not be asking for Prolog samples; sorry clown
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-29-2013 , 10:41 PM
I interviewed a Phd in Australia and I think the best question was what editor did he use.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-29-2013 , 10:43 PM
did he respond "three grad students working in shifts"?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-29-2013 , 10:54 PM
No, he laughed at the "One True Editor" ness of the question.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-29-2013 , 11:36 PM
i also would have accepted: "ed is the standard text editor"

Last edited by tyler_cracker; 10-29-2013 at 11:36 PM. Reason: http://www.gnu.org/fun/jokes/ed-msg.html ;; in b4 obligatory xkcd
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-30-2013 , 12:53 AM
Either that was the end of a long tail of frustration or the beginning of a downward slope.

A better answer would be MS Word, and when asked about syntax highlighting, he tells you that there are obivous hot-keys for bolding and italicizing the text, with all the elitist aloofness of a stereotypical PhD grad.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-30-2013 , 10:23 AM
Quote:
Originally Posted by adios
On number 2. it would be appreciated if you could provide some context with an example. Thanks
I hate artificial examples so here's a few examples from one of my hobby projects.

https://iccfixtureeditor.codeplex.co...Control/latest

Code:
        private DateTime ConvertToDate(Int32 day)
        {
            DateTime result = _dayZero.AddDays(day);
            // Fixture file format doesn't assume leap years. so March dates are 1 day behind on leap years.
            if (DateTime.IsLeapYear(result.Year) && result.Month == 3)
            {
                result = result.AddDays(1);
            }
            return result;
        }
Code:
        private bool HasMatchesAfter(Int32 address)
        {
            // Return true if there are new match definitions after the specified address.
            // The string of 14 consecutive CD bytes is the way to flag new match definitions.
            for (Int32 currentAddress = address; currentAddress < _fileContents.Count; currentAddress++)
            {
                // We are lazy so should be safe to check only the first 4 bytes. TODO: Check all 14 bytes.
                if (_fileContents[currentAddress] == 0xCD && _fileContents[currentAddress + 1] == 0xCD &&
                    _fileContents[currentAddress + 2] == 0xCD && _fileContents[currentAddress + 3] == 0xCD)
                {
                    return true;
                }
            }
            return false;
        }
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-30-2013 , 11:48 AM
Quote:
Originally Posted by muttiah
I hate artificial examples so here's a few examples from one of my hobby projects.

https://iccfixtureeditor.codeplex.co...Control/latest

Code:
        private DateTime ConvertToDate(Int32 day)
        {
            DateTime result = _dayZero.AddDays(day);
            // Fixture file format doesn't assume leap years. so March dates are 1 day behind on leap years.
            if (DateTime.IsLeapYear(result.Year) && result.Month == 3)
            {
                result = result.AddDays(1);
            }
            return result;
        }
Code:
        private bool HasMatchesAfter(Int32 address)
        {
            // Return true if there are new match definitions after the specified address.
            // The string of 14 consecutive CD bytes is the way to flag new match definitions.
            for (Int32 currentAddress = address; currentAddress < _fileContents.Count; currentAddress++)
            {
                // We are lazy so should be safe to check only the first 4 bytes. TODO: Check all 14 bytes.
                if (_fileContents[currentAddress] == 0xCD && _fileContents[currentAddress + 1] == 0xCD &&
                    _fileContents[currentAddress + 2] == 0xCD && _fileContents[currentAddress + 3] == 0xCD)
                {
                    return true;
                }
            }
            return false;
        }
Gracias
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-30-2013 , 12:05 PM
what's funny is those comments are pretty good while the code itself is, uh, not.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-30-2013 , 01:09 PM
Quote:
Originally Posted by tyler_cracker
what's funny is those comments are pretty good while the code itself is, uh, not.
i was thinking the same.

also: oh how i abhor putting open braces on their own line.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-30-2013 , 01:13 PM
Quote:
Originally Posted by gaming_mouse
i was thinking the same.

also: oh how i abhor putting open braces on their own line.
I agree.

I also almost never use braces, thanks to ruby/coffeescript.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-30-2013 , 01:53 PM
C# standard formatting is open braces on their own line.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-30-2013 , 02:14 PM
Quote:
Originally Posted by daveT
C# standard formatting is open braces on their own line.
then c# standard formatting is wrong.

Spoiler:
BOOM!!!!!!!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-30-2013 , 03:09 PM
I'm looking to make a visualization by plotting points in two dimensions. Essentially, I have a list of x-y points (roughly 500-1000) and I'd like to plot them on x- and y-axes and label each individual point.

Any recommendation for plot visualization tools? I'm familiar with PyPlot, but not sure if it has the ability to label each individual point.

Ideally, I'd also like the ability to upload an image to appear in the place of each point. Not sure though if any free visualization tools would have this sort of capability.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-30-2013 , 03:14 PM
except for the upload an image part, which i'm not sure i follow, d3 is great, or for a smaller learning curve one of the library built on it like nvd3.

also i just had a jerk store moment re: dave's "C# standard formatting is open braces on their own line." -- the correct response would have been, "exactly"
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-30-2013 , 04:22 PM
Quote:
Originally Posted by gaming_mouse
i was thinking the same.

also: oh how i abhor putting open braces on their own line.
Disadvantages of open braces on their own line are?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-30-2013 , 04:29 PM
Quote:
Originally Posted by adios
Disadvantages of open braces on their own line are?
you just wasted a line for no reason?

when i first started out programming i liked them, and it still strikes me as a newbie habit. it's sort of like the way they line up together seems to be simpler and easier to understand, and stuff looks less crowded and less scary. but in actuality, once you are at all used to reading code, it just looks like clutter and a waste of space.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-30-2013 , 04:33 PM
Quote:
Originally Posted by Urinal Mint
I'm looking to make a visualization by plotting points in two dimensions. Essentially, I have a list of x-y points (roughly 500-1000) and I'd like to plot them on x- and y-axes and label each individual point.

Any recommendation for plot visualization tools? I'm familiar with PyPlot, but not sure if it has the ability to label each individual point.

Ideally, I'd also like the ability to upload an image to appear in the place of each point. Not sure though if any free visualization tools would have this sort of capability.
R maybe? http://www.r-project.org/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-30-2013 , 04:39 PM
Quote:
Originally Posted by adios
Disadvantages of open braces on their own line are?
Visual Studio only allows you to do horizontal split on a file would be a major one, at least for me it was.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-30-2013 , 06:12 PM
Quote:
Originally Posted by adios
Disadvantages of open braces on their own line are?
For starters it's C# standard formatting :P

Some good answers for the editor question:
- Sarah over at <publishing company>
- Kile of course!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-30-2013 , 08:27 PM
Yeah I have to admit, as I'm learning C# I've been noticing the chronic { on it's own line and find it very tilting.

I start my C# dev job this Friday...What if everyone there does this? Should I just follow suit? Be an outlaw from the get go? Or wait till I am more established?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-30-2013 , 08:32 PM
Quote:
Originally Posted by gaming_mouse
except for the upload an image part, which i'm not sure i follow, d3 is great, or for a smaller learning curve one of the library built on it like nvd3.
Thanks, d3 looks cool. By uploading an image, I mean if I have points for various animals (a bear, a rabbit, a hawk), instead of just a point labeled "bear" I'd like actually to plot an image of a bear on the axes where the point would normally be.

Quote:
Originally Posted by MrWooster
I've heard of R before. How would you recommend learning it?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-30-2013 , 08:58 PM
Quote:
Originally Posted by gaming_mouse
i was thinking the same.

also: oh how i abhor putting open braces on their own line.
So using standard C# braces and conventions is bad?? Cool story bro.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-30-2013 , 09:19 PM
urinal mint,

you want matplotlib.

R is a handy tool but its learning curve is steep and it's (probably) overkill for your current application.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m