Python Programming & other inferior programming languages thread

Discussion in 'The Mainboard' started by Walt Disney, Jul 15, 2015.

  1. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

    Code:
    (ns impressive.core)
    
    (defn -main
      "But it's so functional."
      []
      (println "...I couldn't agree more."))
    
     
    clemsontyger04 and Joe_Pesci like this.
  2. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

  3. Where Eagles Dare

    Where Eagles Dare The Specialist Show On Earth
    Donor
    Auburn TigersAtlanta BravesWashington Football TeamAtlanta United

    This kinda surprised me.

    There are seriously 1/3 of developers using 1 monitor??

    Screenshot_20180321-130904.jpg
     
  4. Walt Disney

    Walt Disney #Dawgzy
    Donor TMB OG
    Georgia BulldogsManchester City

    Erlang is #1 on highest salaries

    Let’s go
     
  5. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

  6. Walt Disney

    Walt Disney #Dawgzy
    Donor TMB OG
    Georgia BulldogsManchester City

    BINGOEARLY

    used to work, not sure if still, but only 15% off
     
  7. Walt Disney

    Walt Disney #Dawgzy
    Donor TMB OG
    Georgia BulldogsManchester City

    but I really like the course, the code and UI is niceeee
     
  8. kennypowers

    kennypowers Big shit like a dinosaur did it
    Donor TMB OG
    UCF KnightsAtlanta BravesJacksonville Jaguars

    Most all of ours use one normal then one tall skinny one
     
  9. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    is the tall skinny one just a regular widescreen in portrait orientation?
     
    Doc Louis likes this.
  10. kennypowers

    kennypowers Big shit like a dinosaur did it
    Donor TMB OG
    UCF KnightsAtlanta BravesJacksonville Jaguars

    Some do that but I feel like some may be custom. I’ve never really checked them out tbh.
     
  11. glimmer

    glimmer queen of tmb
    Donor
    Alabama Crimson TideMetalAntifaAnarchy

    Lots of them will rotate on their mount.
    [​IMG]

    I work with 3 x 24'' Dells (http://www.dell.com/yu/business/p/dell-p2417h-monitor/pd) beside each other in a sort of curved 5760x1080 setup. DisplayFusion is my ride or die.
     
  12. glimmer

    glimmer queen of tmb
    Donor
    Alabama Crimson TideMetalAntifaAnarchy

  13. Pile Driving Miss Daisy

    Pile Driving Miss Daisy It angries up the blood
    Donor
    Texas LonghornsAtlanta BravesAtlanta HawksAtlanta FalconsAtlanta UnitedGeorgia Southern Eagles

    That seems unlikely considering created and maintains Typescript which has only gotten more popular the past couple of years.
     
  14. clemsontyger04

    clemsontyger04 Two offensive coordinators are better than one
    Donor TMB OG
    Clemson TigersAtlanta BravesCharlotte HornetsCarolina PanthersCarolina HurricanesChelseaTiger WoodsCollege Football PlayoffNational LeagueGame of ThronesUnited States Men's National Soccer TeamBarAndGrillOlympics

  15. kennypowers

    kennypowers Big shit like a dinosaur did it
    Donor TMB OG
    UCF KnightsAtlanta BravesJacksonville Jaguars

    Anybody done any image processing in python? Going to be getting some high speed video next week and need to extract velocity. Have a feeling I’ll be stack overflowing hard.
     
  16. glimmer

    glimmer queen of tmb
    Donor
    Alabama Crimson TideMetalAntifaAnarchy

    The .Net frameworks are server-side frameworks. Blazor - or a similar javascript framework - allows for client-side execution of code. In this case, C# is run through WebAssembly (http://webassembly.org/) to do all the client-side work in the browser.
     
    clemsontyger04 likes this.
  17. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    this is my project team when we're trying to figure out who broke the build

    [​IMG]
     
    BellottiBold and Shiggityshwo like this.
  18. kennypowers

    kennypowers Big shit like a dinosaur did it
    Donor TMB OG
    UCF KnightsAtlanta BravesJacksonville Jaguars

    git blame
     
  19. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

    this is why I make my commit under a different name
     
  20. Pile Driving Miss Daisy

    Pile Driving Miss Daisy It angries up the blood
    Donor
    Texas LonghornsAtlanta BravesAtlanta HawksAtlanta FalconsAtlanta UnitedGeorgia Southern Eagles

    Being the only developer on a project is probably not going to help me whenever I have to work on a team again wrt proper git usage.
     
    Spike 80DF, leroi and colonelrascals like this.
  21. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

    hi

    edit: andI still blame someone else
     
  22. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    we still have a guy who, for whatever reason, can't manage to not break stuff, so we let him play in his own branch and merge for him
     
  23. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

    Python question of the day.
    How closely do you stick with PEP styling?

    for example I have to filter out an item in a list. My go to was this
    Code:
    if search_term in returned_keywords: returned_keywords.remove(search_term)
    
    one line, in english, and very straight forward.

    the idiomatic (and probably performant solution) version looks something like this:
    Code:
    while True:
        try:
            returned_keywords.remove(search_term)
        except ValueError:
            break
    I stuck with my original thought process, but thought'd it'd bring up an interesting discussion.
     
  24. kennypowers

    kennypowers Big shit like a dinosaur did it
    Donor TMB OG
    UCF KnightsAtlanta BravesJacksonville Jaguars

    Here is a dumb way

    list(np.array(returned_keywords)[np.in1d(returned_keywords,search_term,invert=True)])
     
    colonelrascals likes this.
  25. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

    brb changing now
     
  26. Doc Louis

    Doc Louis Well-Known Member
    Donor

    Ive seen devs using a larger oversized one, but no way in hell anything would get done on a regular sized one.
     
    Where Eagles Dare likes this.
  27. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

    crashed our production DB today

    [​IMG]
    [/gif]
     
    #1327 colonelrascals, Apr 18, 2018
    Last edited: Apr 18, 2018
  28. Henry Blake

    Henry Blake No Springsteen is leaving this house!
    Donor

    I'm wanting to learn object-oriented programming online. My experience in programming has largely been procedural, mostly PHP and JavaScript, but I'm open to tutorials based on other languages.

    I feel like every time that I try to dive into OOP, I get a smattering of different parts of it without getting the whole picture. I'm looking for a site that will force me to build projects from simple to complex. Any recommendations?
     
  29. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

    https://learnpythonthehardway.org/python3/
     
  30. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    In my oop class they had us write card games. That seems like a pretty popular way to do it
     
  31. Dwight Schrute

    Dwight Schrute 7 out of every 10 attacks are from the rear.
    Florida GatorsTampa Bay RaysTampa Bay Lightning

    anyone know how to integrate matplotlib with flask and jinja2?

    also, what IDE does everyone use? I started out with spyder since it's in the anaconda suite, but I'm really liking pycharm right now
     
  32. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

    save it as a .png and then render? see:
     
  33. Dwight Schrute

    Dwight Schrute 7 out of every 10 attacks are from the rear.
    Florida GatorsTampa Bay RaysTampa Bay Lightning

    That's exactly the example I'm going off of, but I guess my question needs to be more specific. I'd like to not have to save it as a PNG because the graph I need to create should be dynamic and change frequently. The route I'm thinking right now is recreating a PNG any time the graph adjusts to a change in a parameter, but I wasn't sure if there was a better/more efficient way of doing that.
     
  34. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

    at that point I'd use D3
     
    Walt Disney likes this.
  35. Dwight Schrute

    Dwight Schrute 7 out of every 10 attacks are from the rear.
    Florida GatorsTampa Bay RaysTampa Bay Lightning

    Oh damn I didn't know this was a thing. Thanks! Looking into it.
     
  36. BellottiBold

    Donor
    Oregon Ducks

    PHP got an oo model a few versions ago, so that might be a good entry for you?
     
  37. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    I've only ever seen/heard people complain about PHP
     
    colonelrascals likes this.
  38. BellottiBold

    Donor
    Oregon Ducks

    Yea. I don't have any desire to mount a big defense, but a lot of those people learned to hate it before it received oo
     
  39. Walt Disney

    Walt Disney #Dawgzy
    Donor TMB OG
    Georgia BulldogsManchester City

    I would quit my job if I had to learn PHP
     
  40. Pile Driving Miss Daisy

    Pile Driving Miss Daisy It angries up the blood
    Donor
    Texas LonghornsAtlanta BravesAtlanta HawksAtlanta FalconsAtlanta UnitedGeorgia Southern Eagles

    I'd probably feel the same, but at some point you're going to have to learn something you may not like. I have seen a scary number of longtime oldschool Java and .NET developers who have not been successful at staying employed in new jobs because they struggled to learn React or some other new framework. I legit worry so much about plateauing in a decade and suddenly struggle to find work.
     
  41. Walt Disney

    Walt Disney #Dawgzy
    Donor TMB OG
    Georgia BulldogsManchester City

    agreed and that's how I feel about learning Clojure right now

    I started with Python, and now this past year i picked up Elixir and Elm.

    Hoping to start with React soon to learn something a little more mainstream

    definitely good to always stat current and always try and learn new things
     
  42. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

    I welcome you with open arms
     
  43. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    I have to do another year long project for school, this time by myself. I'm indecisive as hell but I kind of want to do some kind of prediction modeling for sports betting and maybe make a web app out of it. Anyone have experience with that sort of thing?

    Or some other suggestion for what might be cool to work on.
     
    colonelrascals likes this.
  44. Henry Blake

    Henry Blake No Springsteen is leaving this house!
    Donor

    I use PHP quite a bit, so that would work. I'm open to working with C# or other oo languages. I only do this on the side, so I'm self taught.

    I could put some oo code together, but I feel like I wouldn't be learning the right way to do it (best practices). I guess I'd like to find a tutorial/book that would show example projects from simple up to very complicated so that I could correctly learn how to use oo concepts, like design patterns.
     
  45. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

    I helped write a a prediction model for one day fantasy stuff. I'll see if I can find it?
     
    Joe_Pesci likes this.
  46. Joe_Pesci

    Joe_Pesci lying dog-faced pony soldier
    Donor
    Wolfsburg

    :gfa:

    did you read any books before you wrote this thing?
     
  47. broXcore

    broXcore cat
    Donor
    Kansas State WildcatsNew York KnicksKansas City ChiefsSporting Kansas CityTottenham HotspurFormula 1

    currently on humble bundle. figured i'd post it just in case:

    https://www.humblebundle.com/softwa...ayout_index_2_layout_type_threes_tile_index_2

    includes some pretty cool stuff depending on what you pay, including a 2 month pycharm professional license, $50 credit for digital ocean, gitkraken pro, a 1 year subscription to pyup, and some other stuff. a lot of it is focused on people new to the language, but a good deal nonetheless.
     
  48. colonelrascals

    colonelrascals Mayonnaise-colored Benz, I push miracle whips
    Donor
    Texas Tech Red RaidersHouston AstrosHouston RocketsTennisTottenham HotspurTexas Tech Red Raiders alt

    nope. I still need to look though my stuff and find the proj.
     
  49. Pile Driving Miss Daisy

    Pile Driving Miss Daisy It angries up the blood
    Donor
    Texas LonghornsAtlanta BravesAtlanta HawksAtlanta FalconsAtlanta UnitedGeorgia Southern Eagles

    Jerking myself off again.

    Took me a while, a lot of studying and several practice exams, but I passed the AWS DevOps Professional certification exam. *pats self on back*
     
  50. glimmer

    glimmer queen of tmb
    Donor
    Alabama Crimson TideMetalAntifaAnarchy

    My next big learning process is going to be getting my existing projects onto continuous integration with Octopus Deploy and TeamCity. No real devops experience to speak of so this will be fun.