Remove ads, unlock a dark mode theme, and get other perks by upgrading your account. Experience the website the way it's meant to be.

Programming • Page 13

Discussion in 'Technology Forum' started by Dirty Sanchez, Mar 5, 2016.

  1. Timmiluvs

    I play video games fast Prestigious

    Its more that the first element in a linked list points to null and every element after that points towards the previous element. The last element in the list has null pointed to it.

    null <-- head <---> element <---> element <---> tail ---> null

    In a node struct, the head would have a previous element of null and a next element of another node. The tail would have a previous element of a node and a next element of null.
     
    devenstonow likes this.
  2. danielalee12

    Regular

    I thought it was the other way around. The linked list only has the element head and each Node has the it's data value and a pointer to it's next node that it's connected to (unless it's null)
     
  3. Timmiluvs

    I play video games fast Prestigious

    oh yeah you're right, what I said and "drew" was a doubly linked list.

    Same premise I just added an extra pointer in the opposite direction.

    But yeah, you're right in what you said. My mistake.
     
  4. danielalee12

    Regular

    haha no worries. I haven't done too much with doubly linked lists, but it sounds a little more complicated
     
  5. Timmiluvs

    I play video games fast Prestigious

    Its actually not aside from an extra pointer in the other direction. It actually makes removing the head or tail easier by just pointing the new head/tail's leading or trailing pointer to null.
     
  6. Malatesta

    i may get better but we won't ever get well Prestigious

    WHERE HAVE YOU BEEN THE PAST FOREVER i feel like you disappeared
     
  7. Timmiluvs

    I play video games fast Prestigious

    Hahaha, yeah, I did disappear. I stopped logging on here for a while. Most of my days were filled up with work so I just never logged on. But now that Im finishing up my final year of school I have a bit more time to check here every now and then :p
     
    Dirty Sanchez likes this.
  8. drewinseries

    Drew

    Got it. ;-)
     
  9. drewinseries

    Drew

    It's going to be between Mass General and Charlestown Naval Yard.
     
  10. Oh nice, I lived in Beacon Hill for a couple years so I know the MGH area pretty well.
     
    RyanPm40 likes this.
  11. Dirty Sanchez

    Prestigious Prestigious

    Spent like 6 hours last night fighting with the linux shell trying to do something impossible lol.
     
    RyanPm40 likes this.
  12. RyanPm40

    The Torment of Existence Supporter

    :heart: bash, what were you trying to do?
     
    Dirty Sanchez likes this.
  13. Dirty Sanchez

    Prestigious Prestigious

    I had some arguments that I was passing into a c program using argv and my arguments involved a '|' which I should have known wouldn't work with being passed. :hearno:
     
    RyanPm40 likes this.
  14. drewinseries

    Drew

    Yeah, it seems like a cool place to be. I am really excited to be able to get some professional coding experience on my resume.
     
  15. drewinseries

    Drew

    Now i'm starting to get stress about writing code in a professional setting, since this is my first job it's not like hobbyist or school work anymore. Anybody get like that? I don't think it helps that my manager is a Harvard Med Professor who codes as well.
     
  16. Derek

    Get stung

    Sounds like a great opportunity to learn a bunch!
     
  17. mercury

    modern-day offspring fanatic Supporter

    Totally, starting my first job was SO stressful.. personally I thought the hardest part was figuring out where to draw the line between "stuff I need to figure out on my own" and "stuff I need to ask for help with" - but when you find a balance that feels good to you, it helps a lot! Usually bosses and coworkers that have a tech background understand that training takes time, and they'll expect you to have questions/not know everything/need help with some things.
     
    RyanPm40 likes this.
  18. RyanPm40

    The Torment of Existence Supporter

    I got promoted this week to an associate dev position with a 10% raise :O I am so shocked and pumped about it. Apparently I've been doing something right.

    Curious, anyone use an adjustable standing desk for their work? I have one at work and I'm in love with it. I found this one online for only $250: $249 SmartDesk: The World's Best Standing Desk, Period.

    Seems almost too good a deal? Anyone hear of these? Really considering one at my next apartment.. I'll finally have enough desk space for dual monitors :p
     
    zigbigwig likes this.
  19. RyanPm40

    The Torment of Existence Supporter

    Very true from my experience. I was definitely pretty stressed and feeling like I didn't know WTF I was doing, but my manager has been super understanding throughout and has been reassuring me that he's impressed that I know to ask questions and want people to review my work before throwing it out to the public, while still being as independent as I can. After 9 months, I feel way more comfortable at my job.

    I've found as long as you put in the time to try to figure things out, and you can't, there's no shame in asking for help. It is tough, though, I still get my fair share of anxiety over it.
     
  20. drewinseries

    Drew

    It's an interesting mix of anxiety and excitement. I start the 24, so I have some time to brush up on things I want. My PI has noted its a teaching position, and as entry level as it can get, but it is still a little intimidating, especially when myself and the PI are the only ones who know how to code, everyone else we work with are physicians or PhDs.
     
    RyanPm40 likes this.
  21. zigbigwig

    I Miss Jake W Prestigious

    Not everyone gets that chance. That's awesome.
     
  22. drewinseries

    Drew

    Another monitor will probably be my first "I have a job now" upgrade to my at-home rig. Either that or a PS4.
     
    RyanPm40 likes this.
  23. RyanPm40

    The Torment of Existence Supporter

    Yeah haha I can't wait for that set up, it's crazy how unproductive i feel without them now.

    I got a new monitor as soon as I got my job and would have gotten dual but my current desk has shelving around that wouldn't fit two >_>.

    Hope the screen color/brightness won't be toooo noticeable between the two when I get my second, since the other has been used for nearly a year.
     
  24. drewinseries

    Drew

    At my job I'll have three systems running OSX, windows and linux. Cannot wait to swivel between them all. 2 days of orientation is in the way though...
     
    Dirty Sanchez and RyanPm40 like this.