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 9

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

  1. clucky

    Prestigious Supporter

    If your need to include more than 10-20 using statements, its a fairly good sign your file is either too long or you're dealing with too many namespaces.

    I love c# and at least getting into, android development seems so much more annoying and complicated than uwp development. but I finally got sick of not having enough apps on my phone >-p
     
  2. drewinseries

    Drew

    One of the things I dislike about a lot of my classes is how we work on projects with most of the code already written, and just have to add in new things. Makes me feel like what I'm exposed to is way above what I could actually do. I got permission to take a grad class and we do a project from scratch, after a while of not knowing why what I was doing wasn't working, I finally got it to. Feels pretty damn good, even if it isn't that exciting.
     
    Dirty Sanchez likes this.
  3. fishguts182

    Regular

    I had that same problem, but figuring out why some code is not working and getting it to work is such a good feeling.
     
  4. noxee

    Regular Prestigious

    I find it more concerning when something starts working and there's no logical reason why...
     
  5. They have you do that on purpose, usually. Real world devs are more likely to be working within a preexisting system than starting from scratch. It's a good thing to get used to.
     
    TotesAndGoats likes this.
  6. drewinseries

    Drew

    Yeah I get it, in the same way why in my C class we had to use our linux terminal as our editor/IDE. I'm going into my last class for my program though and I've been itching to be able to do something like that from scratch, it's been nice.
     
  7. I'm looking to hire a developer for what I think is a small project. The scope of work is as follows.
    • To create a Gantt chart for use online.
    • To provide support or instruction for me to update said chart with data indefinitely.
    The data will span years, not weeks or days. Years are the only type of date I need on the chart. jQuery.Gantt is the existing project I'm looking to adapt and this is the information i'm looking to chart in a more interactive way.

    If you are interested, please feel free to reach out to me here or by email. If you know someone that might like the work, feel free to share my contact information with them as well. Thank you!
     
  8. Deanna

    Trusted Supporter

    Been wanting to get into teaching myself to program since it seems like a great skill to have. I have a decent handle on HTML and CSS (although, I'm likely better at reading/editing both rather than making something from scratch). What language would be good to start with? I was thinking JavaScript, but this seemed like a good place to ask before diving in.
     
  9. TotesAndGoats

    Bear

    What is your end goal?

    I would learn something object oriented like Java of C#. Not only are they an important foundation, it will also help provide a platform for other languages.
     
  10. Deanna

    Trusted Supporter

    End goal is possibly knowing how web/mobile apps work. Likely wouldn't make one myself, but could be a possibility.

    Any good sites you'd recommend to get started on Java or C#?
     
  11. drewinseries

    Drew

    The New Boston YouTube channel has a ton of beginner and intermediate Java videos. Helped
    me out in some of my classes.
     
    Deanna likes this.
  12. TotesAndGoats

    Bear

    Mobile apps: Java, swift/objective-c, or c# are going to be your fundamental languages.

    Web apps: HTML, CSS, JavaScript, and php will be your best bets.

    I strongly recommend pluralsight. I know it costs monthly, but it is absolutely worth it. Everyone in my office uses it and loves it. We do have the advantage that our company pays for it.
     
  13. TotesAndGoats

    Bear

    This text book was super helpful when I was learning Java. I taught myself the core of the language in about a week using it.

    Javanotes 7.0 Table of Contents
     
    Deanna likes this.
  14. Deanna

    Trusted Supporter

    Thanks! I'll definitely check these out.
     
  15. clucky

    Prestigious Supporter

    Curious what you guys think is the best UX approach here:

    I have a mobile app, and a page for an artist. The page needs to vertically scroll if the artist has a lot of songs.

    Should I keep a fixed header and have the rest of the page content scroll underneath it so the under always has the proper context, or should the header also be able to scroll so there is more scrolling screen real estate?
     
  16. Depends on the size of the header I'd say, but also, I doubt a user would forget what artist they're listening to (or be upset at having to scroll up if they did).
     
  17. Deanna

    Trusted Supporter

    @TotesAndGoats @drewinseries grabbed a booked called java software solutions for $1 at a used book store. figured it couldn't hurt even if it's from 2007.
     
  18. drewinseries

    Drew

    I used that for my intro class, 7th edition I believe. It's pretty good! Nothing beats actual programming though, so program/type all that you see.
     
  19. drewinseries

    Drew

    In java...

    I have an amino acid sequence loaded as an array. I have a method that mutates a random index in the array to a new value. Is there a way to, when I run this method, to have it make a new array/save the old one? So say if I run the method ten times I have ten arrays to examine for similarities/differences?
     
    Dirty Sanchez likes this.
  20. drewinseries

    Drew

    Nvm kind of figured it out. Converted the array into an ArrayList in the method that "mutates" the original sequence. Now I just have to figure out a way to make it so that if I loop the method x amount of times, it will create a bunch of new lists that have unique names. Like vmat2List1, vmat2List2, etc... sounds like a for loop job, just have to figure out how to make sure it knows what number was the list prior.
     
    Dirty Sanchez likes this.
  21. Deanna

    Trusted Supporter

    Yeah it's the 5th edition, but I feel like textbooks never really change all that much, they just want more money for newer editions haha. Will definitely be getting more use out of a text editor soon because I agree that actually doing something is way better for remembering it.
     
  22. drewinseries

    Drew

    Does anybody know if there is a way to store multiple ArrayLists in java??

    My idea is to start with an initial ArrayList with a bunch of characters, then have a method "mutate" these characters to deleting them, adding some, or changing them, and once one loop of mutation is done, store that list somewhere, and do it again to the fresh, unchanged beginning ArrayList.

    Thanks!
     
  23. drewinseries

    Drew

    Wait, if it's a character array can I convert it to a string? and then put that into a queue?

    Sorry, if I am thinking out loud, but it is kind of helping.
     
  24. drewinseries

    Drew

    This line seemed to have worked

    String temp = vmat2List.toString().replaceAll(", |\\[|\\]", "");
     
  25. drewinseries

    Drew

    Actually, I think I should use a List instead of a queue. I'll need to access the strings held in the List to see what their states are after mutation, and the queue doesn't seem right for that.