• Breaking News

    Monday, December 11, 2017

    Is there any good reason NOT to learn Python? learn programming

    Is there any good reason NOT to learn Python? learn programming


    Is there any good reason NOT to learn Python?

    Posted: 11 Dec 2017 06:24 AM PST

    When I read about Python, it seems like a simple language to learn, widely used, multi-purpose (data science, web development, GUI, etc. etc.), multi-paradigm (OOP + procedural), with tons of libraries, modules, and frameworks to go along with it.

    So, unless one already is aiming towards a particular job/career which involves the use of something which isn't Python, is there any good reason not to learn Python?

    The only thing I've read is "speed", but I think that's a poor reason, because if you don't know which job/career you are headed towards, then you are likely a beginner programmer, and since when does a beginner programmer need to worry about speed? Obviously optimization and effective code is important, but you can learn that within Python. If you need something faster, you are most likely not in a position where you'd ever need to ask "hey guys, should I learn python?", so I think the "speed"-answer is a bit pointless.

    submitted by /u/Jin555555
    [link] [comments]

    There are too many cool things to learn. How do you choose one to focus?

    Posted: 11 Dec 2017 07:58 AM PST

    Hey guys,

    I've been learning programming for some years, mainly in college. During my time there, I developed a solid knowledge of the basic concepts and now I feel like I have the tools to go further.
    The problem is that I can't decide where to dedicate my efforts, because I would be missing learning more about something else equally interesting. There is GameDev, NetSec, Machine Learning, Robotics, etc... I just can't pick one to deepen my knowledge.
    Anybody else can't pick something, even as a hobby, jumping from thing to thing and never commiting?

    submitted by /u/AzorAHYPE
    [link] [comments]

    New to programming, I'm wondering if making my own personal assistant would even be possible.

    Posted: 11 Dec 2017 06:27 PM PST

    So as the title says, I've never programmed before but I'd like to learn. I've had an idea about making my own digital personal assistant/secretary with some simple commands but I'm not sure if that's even possible. I'd want to be able to type things in a command box (or whatever I would actually use) such as "What are my tasks today, when is this due by, show me my calendar, open up this program," and things along that line. I'd imagine it would have to access spreadsheets and text documents with that kind of information on it. And if it isn't 100% out of the realm of possibility, I'd like to one day be able to use voice commands.

    Would anyone be able to point me in the right direction for a programming language to learn in order to do this? And if there are any online guides that I wouldn't be able to find in this subreddit I would greatly appreciate it.

    submitted by /u/analpleasuremachine
    [link] [comments]

    Good starting resources for Ethereum blockchain programming? For someone inexperience in blockchains, but experienced in other areas of programming

    Posted: 11 Dec 2017 03:19 PM PST

    Been following cryptos and blockchain tech superficially for a while, own some, but want to dive deep into understanding the tech behind it. I'm already an experienced programmer, with years of web development experience under my belt, and have also dabbled in game development as a hobby. I know JavaScript, C#, and a bit of C++. But I have yet to code anything with blockchain-based technology.

    The idea of writing decentralized apps with Ethereum was confusing at first. What finally got me to click into getting more into Etherum was the CryptoKitties app. It's very silly and likely gonna be just a trading card fad, but it did a good job showing how you can use decentralized data and proof of concept on owning something that cannot be copied, even if it's just pictures of cartoon cats.

    So far I'm reading this hello world Ethereum decentralized app using JS for the stack language. What next? How to apply the concept of smart contracts and in a way that can make sense to an experienced programmer in other areas?

    submitted by /u/ExitTheDonut
    [link] [comments]

    I am a new subscriber to this subreddit as well as very new to programming, software, computer science, and other things of the sort. Currently I am trying to learning programming by self-means and have joined a Java Programming I course at my local community college (this will be my 2nd semester)

    Posted: 11 Dec 2017 10:29 PM PST

    I am looking for advice on getting step ahead in my programming/computer science knowledge and experience. The means of information could be books, internet sources, podcast, conferences, anything of the likes for I am very open minded when it comes to obtaining knowledge. I hope to hear the opinions of this subreddit for I have seen similar questions being asked. Looking forward to talking to all of you

    submitted by /u/yvesvvs
    [link] [comments]

    I'm 34 and getting bored with the career path I've taken. JavaScript or Python?

    Posted: 11 Dec 2017 08:25 PM PST

    I'd love to make an app that I don't feel guilty about my kid getting on. Or helping a small company build a nice website they couldn't usually afford. Any Redditors have advice??

    submitted by /u/Johnnyinthesun1
    [link] [comments]

    Can’t figure out how to break the wall

    Posted: 11 Dec 2017 08:45 PM PST

    BACKGROUND: I have a CS degree. When I was in school (graduated 6 years ago) have learned Java, Python, and C++. I always excelled at it in my group and loved it.

    Needed money, got an internship as a data center rat. Discovered SysAdmin Universe. Didn't fall in love with it but paid bills. Found opportunity and developed data center inventorying app in PHP. Got good at Linux administration. Found full time gig and now fast forward 6 years I am a Senior Systems engineer.

    I can code basic things, I have learned the basics all the way to OOP in Java and Python and then I stopped. No real application in my everyday job. I started learning JavaScript and node.js last year, got all the way to create my own blog engine and my own website (learning HTML and CSS on the side too), and then, just like with Java, Python or PHP, I didn't know what else to do and can't find a way to keep engaged.

    It seems as every 8-10 months, i catch that "hitch" again, and I want to be able to become a proficient programmer, maybe even able to consider a career change at some point in the future. But since I started and stopped so many times, i grow tired of having to go through the basics again for 3-4 weeks to refresh. Or if i don't grow tired to learn again, i get all the way through learning syntax and features of a language aaaaaand then i feel lime it's a waste of my free time and i will never find a way on how to be proficient.

    So my TL;DR question is... what do I need to do to get over the basics and actually learn in depth and well how to code as a professional software engineer?

    submitted by /u/lostBitBite
    [link] [comments]

    Wanna find a friend.

    Posted: 11 Dec 2017 08:43 PM PST

    Hello everybody from Russia. I wanna find a friend to chat on english about programming or chess. So, I know php, a little native js and a Jquery, Css, Html, also I've started learning C# a couple of days ago. That is not the edge of my knowledge. I would like to find an english speaking friend, because I wanna train my english skills. I think I could share some of my knowledge with begginers. Besides, that would be great to meet someone, how would Iike to talk about It, computer indestry or even life. I hope find someone ;) =)

    submitted by /u/NikitosGolubev
    [link] [comments]

    Using machine learning to detect text in a video game ?

    Posted: 11 Dec 2017 10:43 PM PST

    I want to build a tool that watches a video or stream of someone in a video game going through their inventory box. As they are doing this the tool will log (via computer vision) the player's items.

    I have no experience with machine learning or statistical analysis but are there developer friendly tools out there to train a model to do this? I understand this can be done with just regular computer vision tools like OpenCV but I want this tool to be able improve on it later to watch the player and log some simple things like when the player collects loot etc. I know I sound silly with the "just add machine learning" request but after popular tools like Tensorflow being released have there been any friendly machine learning platforms for the braindead developers like me?

    submitted by /u/one_p
    [link] [comments]

    Hackathons

    Posted: 11 Dec 2017 07:29 PM PST

    Hey everyone I'm currently in HS and was wondering if there are any good hackathons I️ can attend sometime within the next year (that still have spots open) that allow high schoolers and doing well at them actually holds weight and is an accomplishment to do well at it. (In the Bay Area/Silicon Valley)

    submitted by /u/Aw3someBoss
    [link] [comments]

    Getting rid of words "category/posts" in WordPress.

    Posted: 11 Dec 2017 07:15 PM PST

    Alright! I need some help! I've posted in r/WordPress but no answer yet. Y'all are more active.

    I'm trying to remove the words category and posts from the banner image. https://imgur.com/a/8VOEn

    I'd like it just to say Cosmetic instead of Category:Cosmetic

    And I'd like to remove "posts". If it could say the category it belongs to, that'd be cool. But just have it go away is the minimum I'd like.

    There is this: add_filter( 'get_the_archive_title', function ($title) { if ( is_category() ) { $title = single_cat_title( '', false ); } elseif ( is_tag() ) { $title = single_tag_title( '', false ); } elseif ( is_author() ) { $title = '<span class="vcard">' . get_the_author() . '</span>' ; } return $title; });'

    Which will apparently remove the category word. Any other guidance?

    submitted by /u/oc57anaf
    [link] [comments]

    Newbie Project

    Posted: 11 Dec 2017 05:02 PM PST

    Hello. I started to learn programming about 2-3 months ago and I just wanted to share my first project. I really struggle with JS so I found a finished gallery and edited it in CSS. And i just cant make a website that looks good on mobile(that looks just awful on mobile) and would appreciate any tips for that. I really hope that I can make better websites in a future! There is s link! https://marcinzelaskov.github.io

    PS sorry for any kind of mistakes, i am mit native speaker :(

    submitted by /u/vladisbalanced
    [link] [comments]

    Does (n % 2 == 1) Always Return an Odd Integer?

    Posted: 11 Dec 2017 07:43 AM PST

    I can't see why not, but sometimes I just miss little things. Even if it is, does anyone else have any better suggestions for determining if a number is odd?

    Edit: Didn't mean return, but meant equates to*

    Edit #2: Thank you, everyone, for the answers, I was really tired when I wrote this question and I knew that my expression returns a boolean. I was really tired and what I meant to ask was more like "Is (n % 2 == 1) Always True When n is Odd?" There were some really helpful and interesting answers here and I would like to thank everyone!

    submitted by /u/Jacksons123
    [link] [comments]

    [C++] Error when trying to overwrite 2D array index

    Posted: 11 Dec 2017 07:50 PM PST

    Here is my code: https://pastebin.com/JyLSt5ag

    My question is about the generatePlayer function at line 94 and the generateExit function at line 107. More specifically the last lines in each function.

    This is the error I'm getting: https://pastebin.com/e7FGS5tg

    So I have a 2d array filled with spaces and I am trying to randomly replace one of the spaces with a Player and one of them with an Exit. However I cannot work a way to change a Space to a Player or Exit.

    If I change the last lines in each function from

    spaces[pRandX][pRandY] = new Player(pRandX, pRandY); spaces[eRandX][eRandY] = new Exit(eRandX, eRandY); 

    to

    spaces[pRandX][pRandY] = Player(pRandX, pRandY); spaces[eRandX][eRandY] = Exit(eRandX, eRandY); 

    I don't get an error and can run the program but the output looks like this: https://pastebin.com/S5FRwiVf

    For some reason none of the O's are being replaced with a P (for player) or X (for Exit).

    I would really appreciate any advice.

    submitted by /u/Jaylez
    [link] [comments]

    [Help] Help with marie simulator

    Posted: 11 Dec 2017 11:07 PM PST

    Hey guys I'm new in this field and I have the following problem to solve here's the question : https://ghostbin.com/paste/ubuwf

    Here's my answer : https://ghostbin.com/paste/tf9m7

    Can anyone correct if there are any mistakes ? Thx in advance.

    submitted by /u/elias1995ish
    [link] [comments]

    Automate report. Now Python + LaTeX. Optimal?

    Posted: 11 Dec 2017 11:00 PM PST

    Hi!

    At work I'm going to automate a weekly report that is going to be applied on 20 data sets or so each week. Right now I've built a Python module/package that creates all the graphs etc that I want to include. Right now I'm exporting all the figures to a folder, and then I have a LaTeX file in that folder, taking the pictures and generating the documents.

    This method doesn't seem solid enough. I would like to have a better programmer-solution.

    Any suggestions?

    Thanks!:)

    submitted by /u/EconEuler
    [link] [comments]

    Pushdown Automata trouble

    Posted: 11 Dec 2017 10:19 PM PST

    Really struggling trying to understand it. I have watched two tutorial videos on YouTube but when I stare at my assignment and solutions I don't get it at all besides how a stack works. Everything else I don't get. Honestly I'm not even sure how to read this: Construct an PDA that accepts the language { ai bj | 0 ≤ i ≤ j } Is it saying there are always more, or at least as many b's as a's? And at least 1 b and 1 a?

    Was there anything that helped PDA click for you? Thank you for any help.

    submitted by /u/DrRosie
    [link] [comments]

    Need a little help please...

    Posted: 11 Dec 2017 10:19 PM PST

    Basically, I do programming and maths at uni. I have some common sense but apparently I lacked it during the first 12 weeks of uni. I have not turned up to a lot of lectures and I am currently catching up.

    I was wondering if there is any good YouTube Channels I should know about that could help me out. Basically like a guide for dummies.

    submitted by /u/THATFUCKINGPOLISH
    [link] [comments]

    Trying to get my feet wet in data analytics. Should I do Udacity nanodegree or Georgia Tech MicroMasters?

    Posted: 11 Dec 2017 10:18 PM PST

    I am considering some courses in data analytics both for personal and professional reasons. Not knowing much about the industry I am looking for advice deciding between these two programs.

    Udacity Data Analyist Nanodegree Program-

    https://www.udacity.com/course/data-analyst-nanodegree

    Georgia Tech MicroMasters data analysis-

    https://pe.gatech.edu/master-science-degrees/analytics/analytics-essential-tools-and-methods-micromasters

    Both look to cover some good foundational topics but I wanted to get some opinions from people in the industry or anyone that has completed either (though I think they are both new programs) as to which would be the better choice for someone new (some programming experience and good statistical foundation)

    submitted by /u/ronkuby
    [link] [comments]

    Inheritance... can't that cause problems...?

    Posted: 11 Dec 2017 04:19 PM PST

    Isn't the goal of OOP to be modular in nature and not crippe stuff with changes in code. Should I avoid Inheritence where I can or openly embrace it? Am I right to have this thought ?

    submitted by /u/pretenddev
    [link] [comments]

    Trying to learn programming but school and work get in the way.how to deal with this?

    Posted: 11 Dec 2017 10:15 PM PST

    It's very difficult to focus on programming with school and a part time job in the way. I'm a junior majoring in cs with no internships. Trying to get an internship is too hard cause I don't know much programming. Unfortunately, I thought just doing good In school would be good enough to land something . The CS program feels like a waste of time. What's the point of a degree if i don't even learn anything to be a software engineer ? It's just wasting my time I could use to actually study practical skills.Would it be a good idea to stop caring about grades and just focus on getting better at programming ? anyone else have a similar dilemma ?

    submitted by /u/DimmedDistention
    [link] [comments]

    [Python] How to know why my subprocess.Popen() unable to start?

    Posted: 11 Dec 2017 10:15 PM PST

    I have a program that's been using Google Cloud Speech API. I used subprocess.Popen() to start arecord command to record speech and stream it to the API. It's working fine for a few months now but suddenly last week it stops working after I updated the python google-cloud-speech library. Seems like there's a deadlock that prevents the subprocess to load? No error message, it just stuck there trying to start it up. I changed this to os.system() and it's working fine.

    submitted by /u/nyamuk91
    [link] [comments]

    learning c++ to write wacom driver emulator for Oculus Dash

    Posted: 11 Dec 2017 02:20 PM PST

    I'm a Unity developer that knows C# pretty well, and a bit of the .net framework.

    I am wanting to write an application that records pressure/orientation inputs from an Oculus touch controller, and forward those into a Wacom/Wintab driver emulator/wrapper.

    The use case for this is Photoshop/ZBrush, or other creative applications that require pressure/tilt input devices. The Oculus touch controller hardware is there, but how would I wrap that into something that, say, ZBrush could read?

    I was thinking at first that I could write a C#/.NET wrapper application that when running, reads the input from the hardware controller and wraps it into a Wacom tablet emulator. I've done something similar with DIY midi devices, I was thinking it shouldn't be too different here.

    But I hit a roadblock in figuring out the path it would take to get there.

    Here's the signal flow I envisioned:

    Oculus Touch Controller --> Wrapper Application that reads oculus input --> converts oculus hardware input values to "tablet pen" input values --> sends those values to a tablet emulator that can be detected by photoshop and ZBrush --> photoshop/ZBrush

    I don't know if this could be done with C#/.NET, what would be the path I would have to take to do this?

    Thanks to all you experienced developers.

    -ram

    submitted by /u/ryanalexmartin
    [link] [comments]

    [Scheme] Lists and element frequencies

    Posted: 11 Dec 2017 09:32 PM PST

    I'm trying to create a function (p X) where it is true when X is a list of 1s & 0s that appear an equal number of times

    My thought process is that I should check the frequency of the first element, then check the frequency of the last element and compare the two numbers. The whole organization of how to write this out is confusing me and I'm not even sure if what I'm trying to do is correct. Here's something I was trying.

     #lang racket (define (p X) (if (and(equal? first X (first (rest X) (equal? last X )) 

    Examples of what output should look like: (p '(1 1 0 0)) => #t

    (p '( 0 1 )) => #f

    (p '(1 1 1 0)) => #f

    I'd appreciate it if someone could give me a walk through on this.

    submitted by /u/Anoneemus3
    [link] [comments]

    [C] How to optimize a for-loop

    Posted: 11 Dec 2017 05:43 PM PST

    Hi guys, full transparency this is a homework assignment.

    I'm having some trouble figuring out how to optimize this code...

    My instructor went over unrolling and splitting but neither seems to greatly reduce the time needed to execute the code. Any help would be appreciated!

    for (i = 0; i < N_TIMES; i++) {

     // You can change anything between this comment ... int j; for (j = 0; j < ARRAY_SIZE; j++) { sum += array[j]; } // ... and this one. But your inner loop must do the same // number of additions as this one does. } 
    submitted by /u/mikeisreptar
    [link] [comments]

    No comments:

    Post a Comment