• Breaking News

    Tuesday, March 26, 2019

    Finished my first project! Buggify, A Python Bugger. learn programming

    Finished my first project! Buggify, A Python Bugger. learn programming


    Finished my first project! Buggify, A Python Bugger.

    Posted: 25 Mar 2019 06:33 AM PDT

    Buggify is a Python bugger which automatically inserts a random variety of syntax and logical errors into a program file.

    I spend of lot of time lurking here and in /r/learnpython and I keep reading how the majority of programming is reading code and fixing bugs. I searched for tutorials to practice reading and debugging code and came up short. Buggify is my answer to that.

    Buggify generates a copy of your code into a file and puts a bunch of bugs into that copy. It also generates an answer key file so you can see which bugs were applied. Now that you have a broken version of your code, try and see if you can put it back together.

    It's not perfect, but I think its at a point now where it's good enough to release and see if anyone finds it useful.

    It's my first project and I learned a ton working on it.

    I'm here to learn so don't hold back! I appreciate any criticism - constructive or not.

    Thank you!

    https://github.com/roovyshapiro/Buggify

    *Edited for clarification

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

    Humble Bundle Book Bundle: Coder's Bookshelf by No Starch Press

    Posted: 25 Mar 2019 01:24 PM PDT

    Humble Bundle has had a lot of bundles related to programming recently, though a few of them seeming to have a bad rep in terms of the content of the bundle. The current one, however, seems to have some of the good content, at least judging from the reviews of the books. I'd recommend giving it a look if you're interested.

    Edit: As a matter of fact, there are quite a few more bundles available outside of this one. Give those a look while you're at it.

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

    need help on making a vb.net front-end and mysql back-end table where i can use it as a simple company 12 month budget

    Posted: 25 Mar 2019 11:32 PM PDT

    plz help me on vb.net code and correct datatype for making a mysql budget management system

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

    Is there an effective way to make money online as a developer?

    Posted: 25 Mar 2019 07:12 AM PDT

    I'm a CS student and I've been learning programming with recent tech by myself which allowed me to take on some projects for family and friends but nothing beyond, since from where I am most people only work with a master's degree...anyway, is there a way for me to work as a developer online with some skills but not a lot of experience?

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

    Should I continue with learning concepts or focus more on a app/Swift?

    Posted: 25 Mar 2019 09:50 PM PDT

    So here's my situation(or the gist of it).

    I graduated in December with a BA. I've been into CS for a long time, programmed since HS(on and off with 1 HS and 1 college class). Since then, but mostly February, I've been dedicated to actually learning programming.

    For learning I've been using Python in general and Swift for app development(the most recent thing). I use a Python roadmap I found on reddit, CS interview questions for practice problems, and Mimo. For concepts I'm through Linked Lists(next is Stacks). For Swift I switched to Apple's tutorial and feel good.

    My goal is enter Software and mobile development.

    Right now I'm working a part time job that's been going on but my hours are about to change(not for personally bad reasons) and I have an interview set up for a full time IT position(can't say much more than that).

    I'm asking my question because I'm wondering what I should focus on before trying to apply for entry level stuff in software development. I think I should have some sort of portfolio but some people are saying if I know how to program(something I'm not quite sure how to gauge at the moment) I should already be looking.

    Where should my focus be? For a portfolio I'm thinking about making a simple game for iOS, a desktop version, and maybe a web version. Should I wait till I have something like that to show, focus more on concepts, and/or go ahead and look at entry stuff?

    I'm asking here because I wasn't having much luck over at CSCarrierAdvice

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

    Channels that deep dive into code projects?

    Posted: 25 Mar 2019 07:32 PM PDT

    Are there any YouTube channels or videos that do deep dives or analyses of coding projects? I.e. a video that looks at some Github repository and describes the functionality in each file and how it pertains to the overall application. The projects can be anything. I think it would be cool to look at projects from a high level, top down point of view, and videos like this would also be good practice for understanding a new codebase.

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

    Is Codecademy Worth It?

    Posted: 25 Mar 2019 04:03 PM PDT

    So I've wanted to learn programming for a long time, and I had an html class that I really enjoyed last semester. However, I seem to have hit a point where I will have to teach myself from now on, but I remembered that I used to use codecademy many years ago when I was still in highschool and I have been checking it out again. The premium is expensive and as of now I'm using the free trial, but I can't help this fear that it isn't the best way to learn programming and that thought terrifies me. Any thoughts?

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

    LAMP to learning MEAN, advice?

    Posted: 25 Mar 2019 05:13 PM PDT

    My only stack that I know fully well is a LAMP stack. I wrote a decently sized application for a company I work for as my major first application ever. So far 9 months into it using Java & LAMP stack. I want to move on and see about doing a web app using a MEAN stack.

    Any advice on getting things rolling fast and are there any good suggestions on sites or samples I can learn from and build off of?

    Open minded about all opinions. Just trying to find a way to learn MEAN stack and figured changed my java & LAMP to MEAN & js would be a good start.

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

    JAVASCRIPT HELP: How to access a custom Object/Class's method

    Posted: 25 Mar 2019 08:44 PM PDT

    New to JS.

    Given that I have this custom class/object stored in an external .js file:

    let Rectangle = class { /* new syntax for declaring private fields #length; #width; */ constructor(length, width) { if (!(this instanceof Rectangle)) { return new Rectangle(length, width); } this._length = length; this._width = width; } ..... other stuff here... calculateArea() { return this._length * this._width; } get getArea() { return this.calculateArea(); } }; 

    The html file has input boxes asking for positive values of length and width. I know how to extract the values from these boxes but I amm confused with the syntax on how to actually call the method getArea from the Rectangle 'class/object' referenced in the external file.

    What I have right now is below:

    ..... some other stuff here... <script> var length = document.getElementById('num1'); var width = document.getElementById('num2'); let box1 = new Rectangle(length,width); </script> </head> <body> <div style="margin: 0 auto; width: 45%; background-color: yellow; padding: 20px;"> <label for="num1">Enter a positive length for rectangle:</label> <input type="number" id="num1" name="num1" required><br><br> <label for="num2">Enter a positive width for rectangle:</label> <input type="number" id="num2" name="num1" required> <br><br> <button type="button" onclick="box1.getArea">Go</button> </div> 

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

    How to create localhost database within HTML/CSS/JavaScript website in Visual Studio for Mac OS?

    Posted: 26 Mar 2019 12:05 AM PDT

    So I've created a website using HTML, CSS and JavaScript using Visual Studio in Mac OS. I'd like this website to be connected to a database that users can send information from the website to. How do I go about doing this?

    So far, I've downloaded MAMP and MySQL Workbench based on information I've found online, and have managed to create a localhost server and database. Great! But now I'm trying to figure out how to connect that database to my JavaScript/HTML. I've heard that I can use PHP to do this, however I also understand that PHP doesn't come installed with Visual Studio.

    Every tutorial I've found about this is either very confusing, outdated, doesn't work for me, or the programs demonstrated look very different to the ones I'm using. I feel completely overwhelmed and confused since I'm brand new to this. I'd appreciate it if anybody could point me in the right direction! Thanks.

    submitted by /u/00Terminator
    [link] [comments]

    Trying to figure out the best way to write a firefox extension that would let me toggle proxy settings with the click of a button.

    Posted: 25 Mar 2019 11:48 PM PDT

    So I am looking for a way to use Burp suite without having to constantly manually change the proxy settings in Firefox. So, I wanted to make a firefox extension that would let me do it by clicking it.

    It looks like the javascript framework that mozzilla provides for making extensions is pretty robust. But I haven't yet found the best way to interact with the settings. Any suggestions?

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

    UML Java Class model

    Posted: 25 Mar 2019 11:38 PM PDT

    For an assignment I've been asked to create a UML diagram based on a scenario given to me. I've so far attempted it and wanted to make sure i'm on the right track as i'm not quite sure if it's correct. I've tried adding in an abstract class for Blood Pressure as both classes have similar methods which both can implement.

    https://i.imgur.com/eGV4s7H.png

    Here's the link to the scenario I'm following: https://www.scribd.com/document/401208954/Pms

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

    Looking for a minamalistic text editor that is visually appealing to code with Python.

    Posted: 25 Mar 2019 11:17 PM PDT

    I've been using PyCharm for a little while and just don't like how "heavy" it feels if that makes any sense. I also am not interested in VIM. Have already tried out VSC. Does anyone have any other good suggestions?

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

    Wrote an article on an advanced JavaScript concept: Closures

    Posted: 25 Mar 2019 07:28 PM PDT

    Feel free to read it here. Also welcome any feedback. Thanks.

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

    Don't know how to render a code through company portal

    Posted: 25 Mar 2019 11:11 PM PDT

    My fiance has been writing a code for work over the past couple of days. She is not a programmer but she's picking it up fast. She wrote an HTML code that performed it's task in all rendering platforms that she's tried. However, whenever she tries to render the code through her company site, which is hosted by igloo, it does not work. She's been experiencing some stress and I'm not a programmer myself so I have no idea how to help. Also she's not a redditor otherwise I'm sure she would have been able to ask you all for help!

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

    Greenfoot/java infinite loop problem need help

    Posted: 25 Mar 2019 10:59 PM PDT

    public boolean isEven(int n)

    {

    return true;

    }

    else

    {

    return false;

    }

    }

    public void act()

    {

    int i = 1;

    int n = Integer.parseInt(Greenfoot.ask("Number?"));

    while(n != 0)

    {

    if(isEven(n) == true)

    {

    showText(n + "is not even" + "\nNumbers Processed" + i, getWidth()/2, getHeight()/2);

    }

    else

    {

    showText(n + "is not even" + "\nNumbers Processed" + i, getWidth()/2, getHeight()/2);

    }

    if(n == 0)

    {

    Greenfoot.stop();

    }

    i = i + 1;

    Greenfoot.delay(5);

    n = Integer.parseInt(Greenfoot.ask("Number?"));

    Greenfoot.stop();

    }

    }

    I get an infinite loop and greenfoot crashes, Im not sure why? sorry, I know it doesnt look great but this is also a Programming fundamentals class and i have no prior exp.

    this is the assignment

    Create a program that will allow the user to input an integer and then the program responds with whether that number is even or odd. The user should be able to continue entering numbers (one at a time) and getting responses until they are ready to stop. To make this work, use a loop that continues if the user has not entered a 0. When the user inputs a 0, the loop will end. After the loop ends, show to the user how many numbers you processed for them.

    To determine if the number is odd or even, you will write a separate method with the identifier isEven. This method will accept one int value as a parameter. The method body will look at this integer value and determine the remainder when dividing by 2. If there is no remainder, we know the number is even and we will return true. If there is a remainder, we know the number is odd and will return false. Call this isEven method from your loop in the act method.

    When the user inputs a number, show the following output based on whether the number is even/odd:

    12 is even.

    After displaying this, call the static method delay (from the Greenfoot class) to give the user enough time to see the evaluation. Then ask the user to input the next number (they can enter 0 to stop the process).

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

    Efficient way to determine largest set of items with largest set of shared attributes from dataset?

    Posted: 25 Mar 2019 06:32 PM PDT

    I came across an unexpected problem at work in a non-computer science related area that I think can be done, but am struggling to figure out how to do it.

    I have a massive dataset in Excel of part serial numbers and various measured dimensions on those parts. Each part has an essentially arbitrary selection of dimensions recorded. I need to break the main dataset into sub-pieces where each set contains all the part serial numbers that have the same measured dimensions and find which subset maximizes (total parts x dimensions) in common. The same dimensions on different parts are always referred to by the same name.

    I work mostly in python but am generally at a loss on how to approach this efficiently for extremely large datasets. If this class of problem has a name, please let me know.

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

    I need help with "DOING"! I want to DO stuff that will help me internalize Big O and data structures & algos. Do you have any recommendations?

    Posted: 25 Mar 2019 03:28 PM PDT

    Back when I was learning Python, I remember doing some combination of LPTHW and codeacademy, but Python never stuck until I actually started doing stuff, things like easy problems on /r/dailyprogrammer and, eventually, automation tasks at work. No amount of theory or even lessons could help me "get" Python; I had to do work in order to get it.

    Similarly, I'm teaching myself Big O notation and data structs and algs and I'm at a phase where I conceptually get these things. Yes, I know what Big O is measuring, but I am not yet at a point where I can quickly identify what Big O a given function is. To get to the next level, I want to be able to apply the conceptual knowledge I have. Unfortunately, I don't think I can grasp Big O by automating some spreadsheet tasks at work for example (which is how I made the jump in my Python knowledge). Do you have any suggestions for me?

    Thanks, and sorry in advance if this question was dumb or vague! Let me know if I can provide more info.

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

    Good place to pick up programming again?

    Posted: 25 Mar 2019 09:23 PM PDT

    New to this sub, so sorry if there's a format that I missed that I should follow.

    Lately, I've been wanting to get back in programming. I graduated a little less than a year ago and since college I've barely programmed. I've been working full-time since I've graduated and feel that I've somewhat been wasting my free time by just playing video games or just watching random movies or YouTube videos until I have to go to work again. I feel motivated right now, so I feel like I should ride it out before I lose it again aha. I have a minor in CS, so I have some background but by no means am I good at coding. If anything, I feel like I should review the basics since I did only average in most of my CS classes in school. Just wondering if anyone has a good place to start off for people with some experience in programming. I guess for now, I'm just interested in courses that are free then if I really get invested I'll perhaps jump on those membership-based programs.

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

    t-test strange outcome

    Posted: 25 Mar 2019 09:12 PM PDT

    So I am getting a strange output from Ttest_indResult feature in python.

    I am trying to get 10 t-tests (a comparison of each of the 10 elements in the list to 0, e.g. compare .0234 to 0, compare .0344 to zero) to run but so far I have tried a few things to no avail.

    The following represent the first and second things I tried, but instead got something else.

    list1=[.0234,.0344,.0494,.04394,.0348,.0485,.95884,.9593,.00384,.04905] print(scipy.stats.ttest_ind(list1[j],[0]*10)) 

    This produced Ttest_indResult(statistic=nan, pvalue=nan)

    list1=[.0234,.0344,.0494,.04394,.0348,.0485,.95884,.9593,.00384,.04905] print(scipy.stats.ttest_ind(list1,[0]*10)) 

    this produced just one t-test which I am not sure if it's even accurate and that is like so: Ttest_indResult(statistic=1.7906358908575917, pvalue=0.09018522164496795)

    I expected to get 10 pairwise t-tests outputted, but instead I get what you see here in these two attempts at it.

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

    C# vs Python for web scraping/scripting

    Posted: 25 Mar 2019 08:54 PM PDT

    I read this post here, and while helpful didn't have many responses. Some backstory:

    I've had formal education in C++, all the way up to sort algorithms and data structures. It'd like to get into web scraping and some scripting, so I'm thinking I should move to Python. I've been learning it on the side (not too deep in it yet) and don't have any complaints with it. However, I'm taking courses in college now that are teaching C# (connecting a form to a database, interacting with the common controls in C#, working with some SQL, nothing crazy).

    Ignoring my brief stint with both Python and C#, what would you all recommend? There is a lot of love for both languages out there. From what I understand Python is a better language for scripting, but that's where my knowledge ends.

    Once I graduate I imagine C# will probably be what I use for work and Python more for fun as a hobby. I'm a Computer Information Systems major but with a concentration in data analytics. So it could go both ways honestly.

    Your advice is greatly appreciated. Thank you!

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

    Python XML Classification Algorithm Help

    Posted: 25 Mar 2019 08:45 PM PDT

    Hi all! I'm currently working on a data science competition for sports analytics and I'm a beginner in the industry and looking for some guidance. Specifically, the competition (link: https://www.agorize.com/en/challenges/xpsg) gives you 190 different XML files of data (includes all events during the game. Ex. shots, goals, fouls, etc.), and the goal is to create an algorithm that will return data regarding a random event and predict values for future events (where the event took place on the field and what the outcome was). Since I'm new to the industry, I'm looking for any and all advice regarding how to approach this.

    I've been attempting to learn XML parsing in Python in addition to various machine learning methods over the past several weeks to learn more about how to approach the problem. I am at the point with my code that I have imported all of the data from the relatively large XML files, but I'm not sure what type of model to use to answer the associated problems. Would anyone have any recommendations?

    submitted by /u/soccer-analyticsguy2
    [link] [comments]

    Is leetcode-style conciseness good industry coding style?

    Posted: 25 Mar 2019 08:44 PM PDT

    I was doing some leetcode practice problems and ran across this solution for the linked-list problem to find the intersecting node: https://leetcode.com/problems/intersection-of-two-linked-lists/discuss/49798/Concise-python-code-with-comments

    I solved the problem itself easily, but it frustrates me because my solution took 38 lines, while this guy did it in less than 10 using some pretty creative logic. Is this a skill that I should be practicing in terms of becoming a better software engineer? I don't think that this specific instance is a good example; although the code is more concise and the logic is pretty clever, it takes thinking to understand, while my 38 line solution is pretty easy to understand. Still, I feel that being able to think of clever tricks like this is what separates good engineers from great engineers in scenarios where the concise solution also happens to be clear. Should I be spending time on improving the conciseness of my code to this extent? How do I go about training myself to write more concise/clever code?

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

    Are there any "games" that teach programming that are actually pretty good on the teaching side?

    Posted: 25 Mar 2019 01:52 AM PDT

    I remember seeing some games that can teach you various languages. They might not be great on the game side, but it's still an entertaining experience that can help you learn.

    Are there any such projects that are a decent learning experience? Thanks!

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

    No comments:

    Post a Comment