As was foretold, we've added advertisements to the forums! If you have questions, or if you encounter any bugs, please visit this thread: https://forums.penny-arcade.com/discussion/240191/forum-advertisement-faq-and-reports-thread/
We're funding a new Acquisitions Incorporated series on Kickstarter right now! Check it out at https://www.kickstarter.com/projects/pennyarcade/acquisitions-incorporated-the-series-2

YA[Programming]T :: Interview? That's an MVC thing, right?

11819212324100

Posts

  • Jimmy KingJimmy King Registered User regular
    Some day I will figure out vim and finally be a programmer.... that incredibly expensive piece of paper I'm getting in August notwithstanding.
    I've been saying that for about 10 years now while using it nearly every day (I seem to bounce between vim and emacs depending on my mood as well and primarily use vim as my plain text editor in the shell). There are certainly features of it that would make me more productive if I knew them, but honestly, all I've ever truly needed is search, replace, save, quit, delete line, and occasionally I'll have to remember how to do a replace or delete for a range of lines.

  • bowenbowen How you doin'? Registered User regular
    nano is where it's at

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    Some day I will figure out vim and finally be a programmer

    it's not a requirement

  • ZerounZeroun Registered User regular
    While I'd probably never give up my IDEs when programming with Java or C#, I've found that coding python with vim is awesome.
    The keybindings feel natural after a while, and having good themes, splits and a few addons make it an awesome tool. You can also just symlink your vim profile and addon files to dropbox and have them around always.

    Here is a picture of my current vim setup running inside Terminator, the file browser is NERDTree.

  • urahonkyurahonky Registered User regular
    For some reason I always thought vim was strictly a command line editor. I must be thinking of something else... My professors didn't really delve into it all that much. Though one swore by it for debugging purposes.

  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    i have to write my own sprite-clicky-selecty thing for XNA today

    surprised that there is no real open source community for XNA

    oh wait

    no i am not surprised at all

  • bowenbowen How you doin'? Registered User regular
    I'm surprised there aren't message boards like stack overflow oriented around it though. I don't really care for XNA honestly. It seemed out of place. Have they updated it for the new Visual Studios yet or does it still require like C# express version 9 ?

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • TomantaTomanta Registered User regular
    bowen wrote: »
    nano is where it's at

    Nano is my default editor when I'm at a terminal prompt. I'm sure I could use emacs or vim if I spent the time to learn it, but nano is simple and does almost everything I need. Since I'm usually ssh'ing in, I'll also keep a notepad window open and copy/paste between the two if I need to.

    I also decided that I really like Sublime Text. But who doesn't?

  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    bowen wrote: »
    I'm surprised there aren't message boards like stack overflow oriented around it though. I don't really care for XNA honestly. It seemed out of place. Have they updated it for the new Visual Studios yet or does it still require like C# express version 9 ?

    it works on 2010



    i don't know what's to like or hate


    it's the most basic thin-layered framework to deal with timings and maths and in the case of 2D, just painting an image on the screen


    I'm writing basically all of the same code I would write if I just used GLUT with C++, barebones, except for the texture rendering itself

  • bowenbowen How you doin'? Registered User regular
    I was impressed with the irrlicht engine a while back, if I was going to do anything like that.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • KolosusKolosus Registered User regular
    Ok, anyone want to help out a Linux novice? Trying to do a make of nano and I get curses.h: No such file or directory.
    I checked and my libncurses5 and libncursesw5 are both up to date. Any ideas?

  • EndEnd Registered User regular
    Kolosus wrote: »
    Ok, anyone want to help out a Linux novice? Trying to do a make of nano and I get curses.h: No such file or directory.
    I checked and my libncurses5 and libncursesw5 are both up to date. Any ideas?

    install the development packages

    (so something like libncurses5-dev or whatever)

    I wish that someway, somehow, that I could save every one of us
    zaleiria-by-lexxy-sig.jpgsteam~tinythumb.png
  • KolosusKolosus Registered User regular
    End wrote: »
    Kolosus wrote: »
    Ok, anyone want to help out a Linux novice? Trying to do a make of nano and I get curses.h: No such file or directory.
    I checked and my libncurses5 and libncursesw5 are both up to date. Any ideas?

    install the development packages

    (so something like libncurses5-dev or whatever)

    This will sound really stupid, but when I try to do that I get "unable to locate package" and a search on my system doesn't find them. Do I need to get those and do a make of those as well?

  • bowenbowen How you doin'? Registered User regular
    Wow I thought nano and pico were installed by default?

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • KolosusKolosus Registered User regular
    bowen wrote: »
    Wow I thought nano and pico were installed by default?

    I snagged a VMWare image because I didn't want to have to install it myself. I may have to go back to square one it seems.

  • KolosusKolosus Registered User regular
    If I do a "sudo apt-cache search libncurses" should the dev files even show up?

  • bowenbowen How you doin'? Registered User regular
    sudo apt-get install libncurses-devel
    
    sudo apt-get install ncurses-dev
    
    sudo apt-get install libncurses5-dev
    
    maybe?

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • KolosusKolosus Registered User regular
    edited June 2012
    I'm just grabbing an ISO of the latest Ubuntu now. Stupid VMWare image. :(
    bowen wrote: »
    sudo apt-get install libncurses-devel
    
    sudo apt-get install ncurses-dev
    
    sudo apt-get install libncurses5-dev
    
    maybe?

    I tried that. :(

    Kolosus on
  • urahonkyurahonky Registered User regular
    Trying to edit this makefile to work on my computer is becoming a chore.
    TARGET = example
    TARGETDIR = ..\..\bin\x86
    
    ASM = ml
    CPP = \x86\cl
    RSC = rc.exe
    F90 = df.exe
    MTL = midl.exe
    REBASE = rebase.exe
    
    OBJDIR = .\obj\i386
    
    ASM_PROJ=/coff /c /Fo$(OBJDIR)\\
    
    
    
    CPP_PROJ=/nologo /MD /W3 /Oxs /Gz /Zi \
    	/I "..\..\..\..\inc" \
            /I "..\inc"  \
    	/I "\NTDDK\inc" \
            /D "WIN32" /D "_WINDOWS" \
    	/Fr$(OBJDIR)\\ /Fo$(OBJDIR)\\ /Fd$(OBJDIR)\\ /c
    
    LIB32= link.exe 
    LIB32_FLAGS = /LIBPATH:..\..\..\..\lib /LIBPATH:\NTDDK\libfre\i386 /DEBUG /PDB:$(TARGETDIR)\SYMBOLS\$(TARGET).PDB  -entry:DriverEntry  /SUBSYSTEM:NATIVE /nologo $(LIBS) /out:$(TARGETDIR)\$(TARGET).sys
    
    
    
    OBJS   = \
    	$(OBJDIR)\entry.obj \
    	$(OBJDIR)\functions.obj
    
    LIBS = \
           wdm.lib \
           ntoskrnl.lib
     
    # This is a comment
    $(TARGETDIR)\$(TARGET): $(OBJDIR) $(TARGETDIR) $(OBJS) $(RESFILE)
        $(LIB32) $(LIB32_FLAGS) $(OBJS) $(LIBS) $(RESFILE)
        $(REBASE) -b 0x00400000 -x $(TARGETDIR)\SYMBOLS -a $(TARGETDIR)\$(TARGET)
    
    {.\}.c{$(OBJDIR)}.obj::
    	$(CPP) $(CPP_PROJ) $<
    
    {.\}.cpp{$(OBJDIR)}.obj::
    	$(CPP) $(CPP_PROJ) $<
    
    
    {.\}.asm{$(OBJDIR)}.obj::
    	$(ASM) $(ASM_PROJ) $<
    
    
    {.\}.rc{$(OBJDIR)}.res::
    	$(RSC) $(RES_PROJ) $<
    
    $(OBJDIR):
        if not exist "$(OBJDIR)/$(NULL)" mkdir "$(OBJDIR)"
    
    $(TARGETDIR):
        if not exist "$(TARGETDIR)/$(NULL)" mkdir "$(TARGETDIR)"
    
    
    CLEAN:
    	[email protected] /S /Q $(OBJDIR)
    

    I can't seem to find this "df" it's looking for.

  • urahonkyurahonky Registered User regular
    edited June 2012
    thanks for the double post, Vanilla!

    urahonky on
  • KolosusKolosus Registered User regular
    So, I have been tasked with simplifying the API for our product. It's actually been interesting so far gathering information about what other developers just can't grasp about our framework.

    I learned that these things are challenging: Serialization, XML, Command Pattern, "Cloud" Processing.

    This is going to be fun.

  • ShivahnShivahn Unaware of her barrel shifter privilege Western coastal temptressRegistered User, Moderator mod
    I can't really help, but that is an excellent comment you have there.

    A self-documenting comment, even.

  • quietjayquietjay Indianapolis, INRegistered User regular
    urahonky wrote: »
    Trying to edit this makefile to work on my computer is becoming a chore.
    F90 = df.exe
    

    I can't seem to find this "df" it's looking for.

    Do you have a Fortran 90 compiler installed?

    Become a Star Citizen
  • bowenbowen How you doin'? Registered User regular
    It's not surprising people struggle with that first one (how many programmers do you know understand how integers and such are mapped in memory let alone how to represent that as binary data in a file?), the second one is just :)

    The last two are business buzz words so there's no real meaning behind it? As far as I knew Command Pattern was just a fancy way to say "Implement an interface and keep a collection of objects of that interface".

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • KolosusKolosus Registered User regular
    edited June 2012
    bowen wrote: »
    It's not surprising people struggle with that first one (how many programmers do you know understand how integers and such are mapped in memory let alone how to represent that as binary data in a file?), the second one is just :)

    The last two are business buzz words so there's no real meaning behind it? As far as I knew Command Pattern was just a fancy way to say "Implement an interface and keep a collection of objects of that interface".

    The interesting part is the last two. I have tried to explain how we accomplish what we do, and when I do explain it the closest approximation I can come up with is Command Pattern.

    What I am going to end up doing is giving people a class they can create an instance of that contains one method that they can call and pass a string and an enum value.

    Kolosus on
  • urahonkyurahonky Registered User regular
    quietjay wrote: »
    urahonky wrote: »
    Trying to edit this makefile to work on my computer is becoming a chore.
    F90 = df.exe
    

    I can't seem to find this "df" it's looking for.

    Do you have a Fortran 90 compiler installed?

    I don't. Just going through these examples that I'm finding haven't had me install one yet. And nothing on his article suggests that I need one. Should I find one and install it? Most of the stuff that's listed in the makefile are located in the Windows DDK.

  • quietjayquietjay Indianapolis, INRegistered User regular
    If there aren't any .F90 source files, I'd just comment out that line.

    Become a Star Citizen
  • bowenbowen How you doin'? Registered User regular
    Kolosus wrote: »
    bowen wrote: »
    It's not surprising people struggle with that first one (how many programmers do you know understand how integers and such are mapped in memory let alone how to represent that as binary data in a file?), the second one is just :)

    The last two are business buzz words so there's no real meaning behind it? As far as I knew Command Pattern was just a fancy way to say "Implement an interface and keep a collection of objects of that interface".

    The interesting part is the last two. I have tried to explain how we accomplish what we do, and when I do explain it the closest approximation I can come up with is Command Pattern.

    What I am going to end up doing is giving people a class they can create an instance of that contains one method that they can call and pass a string and an enum value.

    That is pretty much a command pattern, AFAIK. Common ways of implementing that are with interfaces/virtual inheritance (I think that's what it's called in c++ anyways).

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • KolosusKolosus Registered User regular
    bowen wrote: »
    Kolosus wrote: »
    bowen wrote: »
    It's not surprising people struggle with that first one (how many programmers do you know understand how integers and such are mapped in memory let alone how to represent that as binary data in a file?), the second one is just :)

    The last two are business buzz words so there's no real meaning behind it? As far as I knew Command Pattern was just a fancy way to say "Implement an interface and keep a collection of objects of that interface".

    The interesting part is the last two. I have tried to explain how we accomplish what we do, and when I do explain it the closest approximation I can come up with is Command Pattern.

    What I am going to end up doing is giving people a class they can create an instance of that contains one method that they can call and pass a string and an enum value.

    That is pretty much a command pattern, AFAIK. Common ways of implementing that are with interfaces/virtual inheritance (I think that's what it's called in c++ anyways).

    Yeah, we just had a lot more boilerplate that they needed in order to be able to get our service to execute the command they wanted.

  • SaerisSaeris Borb Enthusiast flapflapflapflapRegistered User regular
    Kolosus wrote: »
    So, I have been tasked with simplifying the API for our product. It's actually been interesting so far gathering information about what other developers just can't grasp about our framework.

    I learned that these things are challenging: Serialization, XML, Command Pattern, "Cloud" Processing.

    This is going to be fun.

    I would hope that they say XML is "challenging" because it's heinously overused and rarely fully applicable. It's the jack-of-all-trades markup: suitable for everything, ideal for nothing. Dealing with it directly, instead of through some convenient API, is the very definition of a chore.

    The rest are reasonable though, I think. Serialization can be a pain to get right on all the edge cases, remote processing has to be centralized to avoid conflicts and resource scarcity, and... well, the command pattern could be considered complex, depending on the language. It's just the object-oriented version of a function closure for languages without proper first-class functions.

    borb_sig.png
  • bowenbowen How you doin'? Registered User regular
    Speaking of XML, I'm really pissed off they decided to use it for "HL7 version 3" or whatever. God is that a terrible clusterfuck of horribleness.

    It'd have been great if it was simple, nope, they have an overabundance of tags in the spec.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • urahonkyurahonky Registered User regular
    Shivahn wrote: »
    I can't really help, but that is an excellent comment you have there.

    A self-documenting comment, even.

    Haha I didn't even see that. Like I said I pulled this from a guy's tutorial on windows drivers.

  • CantidoCantido Registered User regular
    I started using PDO again, what does this mean? "Call to a member function prepare() on a non-object." I'm on a new server so I think it's just an error on my part.
    $sql = "INSERT INTO online_customers (customer_id, first_name, middle_name, last_name, company_name, email, phone, password, is_active,activation_key) VALUES (:customer_id,:first_name,:middle_name,:last_name,:company_name,:email,:phone,:password,:is_active,:activation_key)";
    $q = $conn->prepare($sql);
    $q->execute(array(':customer_id'=>$customer_id,':first_name'=>$first_name,':middle_name'=>$middle_name,':last_name'=>$last_name,':company_name'=>$company_name,':email'=>$email,':phone'=>$phone,':username'=>$username,':password'=>$hash,':is_active'=>$is_active,':activation_key'=>$activation_key));
    

    3DS Friendcode 5413-1311-3767
  • KolosusKolosus Registered User regular
    So bowen, I got an iso of the latest Ubuntu from their site, and no nano pre-installed. gedit it is for me.

  • admanbadmanb unionize your workplace Seattle, WARegistered User regular
    Cantido wrote: »
    I started using PDO again, what does this mean? "Call to a member function prepare() on a non-object." I'm on a new server so I think it's just an error on my part.
    $sql = "INSERT INTO online_customers (customer_id, first_name, middle_name, last_name, company_name, email, phone, password, is_active,activation_key) VALUES (:customer_id,:first_name,:middle_name,:last_name,:company_name,:email,:phone,:password,:is_active,:activation_key)";
    $q = $conn->prepare($sql);
    $q->execute(array(':customer_id'=>$customer_id,':first_name'=>$first_name,':middle_name'=>$middle_name,':last_name'=>$last_name,':company_name'=>$company_name,':email'=>$email,':phone'=>$phone,':username'=>$username,':password'=>$hash,':is_active'=>$is_active,':activation_key'=>$activation_key));
    

    It means it's not reading $conn as an object. Are you positive it's declared and accessible in that file?

  • CantidoCantido Registered User regular
    admanb wrote: »
    Cantido wrote: »
    I started using PDO again, what does this mean? "Call to a member function prepare() on a non-object." I'm on a new server so I think it's just an error on my part.
    $sql = "INSERT INTO online_customers (customer_id, first_name, middle_name, last_name, company_name, email, phone, password, is_active,activation_key) VALUES (:customer_id,:first_name,:middle_name,:last_name,:company_name,:email,:phone,:password,:is_active,:activation_key)";
    $q = $conn->prepare($sql);
    $q->execute(array(':customer_id'=>$customer_id,':first_name'=>$first_name,':middle_name'=>$middle_name,':last_name'=>$last_name,':company_name'=>$company_name,':email'=>$email,':phone'=>$phone,':username'=>$username,':password'=>$hash,':is_active'=>$is_active,':activation_key'=>$activation_key));
    

    It means it's not reading $conn as an object. Are you positive it's declared and accessible in that file?

    Aw damn, you're correct. I need a PDO connect first. Thank you.

    3DS Friendcode 5413-1311-3767
  • bowenbowen How you doin'? Registered User regular
    Kolosus wrote: »
    So bowen, I got an iso of the latest Ubuntu from their site, and no nano pre-installed. gedit it is for me.
    https://help.ubuntu.com/community/Nano


    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • KolosusKolosus Registered User regular
    bowen wrote: »
    Kolosus wrote: »
    So bowen, I got an iso of the latest Ubuntu from their site, and no nano pre-installed. gedit it is for me.
    https://help.ubuntu.com/community/Nano

    Bless your heart.

  • Monkey Ball WarriorMonkey Ball Warrior A collection of mediocre hats Seattle, WARegistered User regular
    bowen wrote: »
    Wow I thought nano and pico were installed by default?

    Pico is almost always just an ln -s to nano. Pico was part of the Pine suite of command line utilities for various shenanigans like email that the UW wrote back in the precambrian, whereas Nano is an improved gpl rewrite of it.

    "I resent the entire notion of a body as an ante and then raise you a generalized dissatisfaction with physicality itself" -- Tycho
  • GnomeTankGnomeTank What the what? Portland, OregonRegistered User regular
    Nano isn't even a full re-write, it's just a license change. Pico was released under a non OSI complaint license, so they forked it, made a few changes, re-did the license, and called it Nano.

    Sagroth wrote: »
    Oh c'mon FyreWulff, no one's gonna pay to visit Uranus.
    Steam: Brainling, XBL / PSN: GnomeTank, NintendoID: Brainling, FF14: Zillius Rosh SFV: Brainling
This discussion has been closed.