• Breaking News

    Saturday, February 15, 2020

    A Step-by-Step Guide to Learning Python learn programming

    A Step-by-Step Guide to Learning Python learn programming


    A Step-by-Step Guide to Learning Python

    Posted: 14 Feb 2020 06:27 PM PST

    I came across a good article that teaches you the steps necessary to be good at Python.

    the tl;dr is:

    1. Learn Programming fundamentals: these are things that are not specific to Python but are common among any programming language.
    2. Internalize the Object-Oriented Programming Concepts
    3. Learn how to program using multiple threads.
    4. Master Networking concepts, and learn how to do socket programming in Python.
    5. Learn your Datastructures and Algorithms, and get familiar with the most popular Python libraries.

    Full article here

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

    Python Full Course - Learn Python in 12 Hours | Python Tutorial For Beginners

    Posted: 14 Feb 2020 01:07 AM PST

    https://www.youtube.com/watch?v=WGJJIrtnfpk

    Thought this might be really useful for others, it's fairly new but I apologise if it's a repost.

    Good luck!

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

    Asking r/learnprogramming: What's some bad advice you've received on writing code?

    Posted: 14 Feb 2020 01:45 PM PST

    I'm looking for bad advice that people have received when it comes to writing code (as opposed to bad programmer career advice or advice on which tool to use).

    For example: "functions and methods should only have one return statement" and "if your code has comments it's a sign that you didn't write it correctly" are ones I've heard. Anything else?

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

    Quirks when using chrome console for a JS terminal.

    Posted: 14 Feb 2020 07:18 PM PST

    Hey guys, so at my work I use an about:blank chrome tab for a impromptu JS terminal when testing scripts. I have noticed some strange quirks when doing this and I am unsure if this is just JS bring JS or something to do with running the scripts in chrome.

    A good example happened yesterday. I was using a foreach function to check the objects in the array against a dictionary and replace the objects. When I passed an array into a function it replaced the entries successfully but it also seemed to replace entries into a copy of the original array and the source object as well. Maybe I did something wrong but I thought I would come on here and ask if using the chrome terminal is somehow causing this to happen.

    Another example is when I am checking the entries on a nested array. I will run the code one and get the expected result. If I run it again however I get an undefined. Again I am unsure if this is something to do with JS or a quirk of the terminal.

    For context, my background is in Python. I am relatively new to JS.

    Edit: adding the code.

    Function:

    function valuesReplacer(values){ value = values var newValueDictionary ={ Small : 'Low', Medium: 'Medium', Large: 'High' Low : 'Low', High:'High' } value.forEach(myFunction); function myFunction (item,index,arr){return arr[index]=newValueDictionary[item] } } 

    Source data:

    const getData = (JsonPayload) 

    }

    Data objects: (usually data = a for loop that points to the data I need in a JSON file. For simplicity I hard coded it here.)

    data= [['Small'],['Low'],['Medium','Large']] dataBackup = data 

    Function call: for (x in data) {valuesReplacer(data[x]}

    When I call this the script replaces data and dataBackup as well as the entries in getData

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

    New to coding? Want to learn Java? Check out this newly updated course from the University of Helsinki!

    Posted: 14 Feb 2020 10:29 AM PST

    I'm not affiliated at all, just using these courses as a newbie to Java and sorta newbie to coding. Loving the courses! Wanted to share!

    The University of Helsinki offers two Java courses. They had not been updated since 2013, I think.

    They just released their new, updated 2020 courses for Java programming and this is SERIOUS beginner level stuff (in a good way).

    It, so far, does not have any Android focus (which is what I want to end up doing) but it is building a very good base knowledge of Java coding.

    Just go here and have a look!

    Hopefully, this can help some others get started! :)

    If you start and join the chat group (I highly recommend), I am 'Brian' in the chat group! Hit me up!

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

    A bit embarrassing... but how exactly do you create a simple website? (WebForm)

    Posted: 14 Feb 2020 06:26 PM PST

    Hello everyone,

    Thanks for not glossing over a noobish question. I'm a (not really) experience C# dev who's built a few .NET Core apps, one of which caught on to full production. Basically, what one of the components of the app does is that it auto generates PDFs forms that submit a JSON Post Request to a Google Sheet. The Google Sheet then processes that Http Request, interacts with a few other APIs, and spits out an email.

    The issue I'm facing right now is that the PDF's submit function is limited to just desktop computers with Adobe Acrobat. What I want to do is take my PDF form and replicate it as close a possible on a simple website. It doesn't need anything much, just a simple form that can accept parameters via URL, is fillable, and then submits a JSON Post Request with all of the form fields to my Google Sheet.

    Except I don't have a clue how to do that. Every "website builder" I've seen seems to want to build a full-scale website, and lacks form functionality. Furthermore, none of these website allow you to customize what the "send" button is used for. At this point, I'd rather just create the website from scratch. Any starting off points?

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

    What IDEs do you guys use?

    Posted: 14 Feb 2020 10:59 PM PST

    I'm very new to programming, and my class requires us to learn java, c++, and python essentially all on our own. All and well, but I'm looking for an IDE or maybe one for each to implement what I'm learning to practice and play with the syntax to learn it.

    Thanks for any help.

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

    figure out the length of a string without loops or python methods/functions?

    Posted: 14 Feb 2020 03:52 PM PST

    The function count_recursive() must compute the length without using a loop. It must call itself (use recursion).

    • Both functions receive a string as a parameter and return an integer (the length of the string).
    • You may not use the len() function while computing the length of the string. You must rely on the functions you are writing.
    • You may not use any built-in python function or method, except for print() and input().

    This is what I have so far just need to figure some way to find the length of the string and I can't think of anything that doesn't involve a loop to return length.

    def count_recursive(n): if n == '': return 0 else: return 1 + count_recursive(n-1) 

    If you could point me to some documentation I could read I would appreciate it greatly. Thank you!

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

    [PHP] Sending SQL queries to user's e-mail before applying to the DB as a security feature

    Posted: 14 Feb 2020 09:09 PM PST

    Hi, thanks in advance.

    As I have stated in the title, I'm currently developing my first "high exposed" project so I want to be as cautious as possible. My idea was, instead of users being able to execute SQL queries while on web (and had to wait DB engine to run every script) send every input to the user's email. Once there, the user can check once again if inputs are right and then click on "Confirm changes"

    What do you think? Where would you store temporarily SQL queries before they are accepted? Is is safer doing this mechanism or am I actually creating another point of failure?

    Thanks you all once again.

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

    Getting into C++

    Posted: 14 Feb 2020 06:52 PM PST

    Hi all,

    I'm looking into getting familiar with C++. Does it have any well known, and referenced source of learning like java has the Helsinki MOOC?

    TIA

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

    Python installation Doubt?

    Posted: 15 Feb 2020 12:29 AM PST

    Hey Guys, installing WSL will also install python, but for running python in VS Code should python be installed as exe also?

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

    Necessary Keys?

    Posted: 14 Feb 2020 11:59 PM PST

    Dunno if this is the right sub, but I'm just wondering if I need specific keys for programming? I've only dipped my toes in so far, so input would be great.

    To specify, I'm planning on building a custom mechanical keyboard in a few months. I'm planning to do away with an integrated numpad, and I'm wondering how compact I can go.

    How important are the function keys? And also the navigation keys? Is the "fn" key used a lot? And what about the "OS/Win" key?

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

    Do you want to learn how to build Android Games in Java?

    Posted: 14 Feb 2020 11:52 PM PST

    Hi, do you want to learn how to build Android Games in Java?

    IF SO, we have a BRAND NEW course for you!

    Android Game Development : Build a Math based Game is the highest quality course I've ever put out! And I'm proud to invite you to join us in the course today.

    MAKE BETTER ANDROID GAMES IN 2020

    Hone your programming skills by making a complete math-based game using only Android Studio and Java.

    What will students achieve or be able to do after taking your course?

    · You'll be able to build a complete game in less than 1 hour

    · XML layout designing with LinearLayout

    · How to work with CountDownTimer

    · How to get/set any view object

    · How to develop a fairly complex game logic

    · You'll be able to brush-up your Java skills

    · Learn Android Game Development Step By Step

    Enroll now for just $10

    What knowledge & tools are required?

    · We'll be using Java in this course, and since it's an OOP language, it's important to learn OOP fundamentals first. One of my courses titled "Object Oriented Programming Fundamentals" teaches that. Note that, it does not teach Java specifically.

    · You should have Android Studio up and running.

    · You should have some programming knowledge like variable, array, loops, method, etc.

    · You don't need prior knowledge in Android Game Development.

    Who should take this course?

    · Beginner to Android development

    · Beginner to Android Game Development

    · Beginner to Java programming

    If you want to make better games and improve your programming skills, this is the course for you.

    Remember, there is a 30-day 100% money-back guarantee. There is no reason to hesitate. Enroll now, see if you enjoy the course, and start making better games today! This coupon expires in 2 days. So, Hurry!

    ENROLL NOW FOR JUST $10

    Cheers

    Sandip

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

    Why won't this code work? Beginner Javascript questions

    Posted: 14 Feb 2020 11:42 PM PST

    cleaner = () => { for (let i = 0; i < recyclablesPile.length; i++){ if (recyclablesPile[i] == "plastic") {return "true"} else if (recyclablesPile[i] == "paper") {return "true"} else if (recyclablesPile[i] == "glass") {return "true"} else if (recyclablesPile[i] == "metal can"){return "true"} else {return "false"} }} 

    Im trying to write a function I can put into filter() that makes certain elements of an array remain while others dissappear. I thought an if...else statement would do it, but did I write this if...and wrong?

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

    When does a Python textbook become obsolete?

    Posted: 14 Feb 2020 11:32 PM PST

    When it's 5 years old? 3 years? 1 year? 4 months? Etc?

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

    How exactly would I find the index of an item in a linked list?

    Posted: 14 Feb 2020 07:31 PM PST

    I understand if it's a regular list I can just iterate through it - Linked lists seem like a different ballpark. Once I find the node that contains it how do I return a place value number?

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

    Newbie needs input about UML class diagram

    Posted: 14 Feb 2020 10:52 PM PST

    Ok, so I'm a beginner at both Java and UML. I'm trying to learn through a online course, but now I'm really stuck at a UML Class diagram practice. I would really appreciate some help and explanation. I have done some Classes with Attributes, setters, getters and methods. But first let me explain what the task is about and the specifications for it.

    20 Autonomous shuttle busses with room for 20 passengers will operate within a specified area, like a geofence.

    There are 2 terminals which the busses will start from 05:00 (5 am) every morning and return to at 22:00 (10 pm) every evening. The busses will also return to nearby terminal for charging after every trip. The terminal will also have employees who's in charge of surveillance over the busses, GPS position and if the buss reports any faults from its systems.

    People who are located within the geofence will be able to order a trip through a application. Application needs the user to register phone number to identify user, and credit card to pay for the trip. If the ordered trips origin and destination is within geofence, user will receive a unique code to enter when shuttle buss arrives to users origin destination. When code is accepted the doors on shuttle buss will open and the trip starts.

    So far, and definitely not correct I have done the following;

    image

    I'm open for all kind of help and tips, if you have suggestions, please briefly explain them.

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

    muCLIar: ALL YOUR MUSIC RIGHT ON YOUR COMMAND LINE

    Posted: 14 Feb 2020 10:41 PM PST

    My python software muCLIar is a Youtube Automator that handles ad-skipping, login, media control , playlist etc using just a single lined command.

    muCLIar

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

    Your opinion on Go tutorials

    Posted: 14 Feb 2020 04:41 PM PST

    For someone starting out with programming but with a grasp on much of the fundamental knowledge in programming, what Go tutorials have you come across that you feel are the best out there to learn from the ground up?

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

    Question Bank for Graph theory

    Posted: 14 Feb 2020 10:31 PM PST

    I am currently doing a undergrad course on graph theory. While i have been able to find good question to practice for the programming application, I want question banks on the theoretical graph theory. Where can i find such problems.

    Thanks

    submitted by /u/16thHorcrux
    [link] [comments]

    Any benefit to adding an else statement?

    Posted: 14 Feb 2020 02:56 PM PST

    Say you have only A and B as choices:

    if(A) return

    do this

    Is there any benefit to writing it as :

    if(A) Return

    else{

    do this }

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

    I wrote a program to remove duplicates in a linked list in C#

    Posted: 14 Feb 2020 02:54 PM PST

    I'm working through programming problems at the moment. I recently came across a problem in a book that I am following where the problem description says "write code to remove duplicates from an unsorted linked list". After writing my initial program and feeling satisfied with the solution I was floored when I checked the back of the book to see what the author did, and it was completely different. I'm wondering if an interviewer asked me to write a program to handle the problem description. Would the solution that I wrote be a legitimate and accepted solution or not? And why not? Below is the program that I wrote. I will attach a link to a similar solution as to what the author did right above the program. Thanks in advance guys.

    https://stackoverflow.com/questions/4542600/interview-question-remove-duplicates-from-an-unsorted-linked-list

    string[] words = { "the", "the", "jumped", "over", "the", "moon" };

    LinkedList<string> sentence = new LinkedList<string>(words);

    LinkedList<string> unique = new LinkedList<string>(sentence.Distinct());

    foreach (string word in sentence)

    {

    LinkedListNode<string> currentNode = new LinkedListNode<string>(word);

    Console.Write(currentNode.Value + ",");

    sentence.Find(word);

    }

    Console.WriteLine();

    foreach(string word in unique)

    {

    Console.Write(word + ",");

    }

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

    Got an idea but need some help

    Posted: 14 Feb 2020 10:18 PM PST

    Gonna keep this short but does any one know if u can use QR code's to fill out cellular network shortcode prompts ?

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

    First Steps into computer coding

    Posted: 14 Feb 2020 10:00 PM PST

    I just started looking into computer coding and I'm teaching myself computer coding...after I finish with sololearn then what should be my next steps

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

    How to get over the hump of learning coding?

    Posted: 14 Feb 2020 09:58 PM PST

    Hi all. I've been browsing this sub for a bit because I was interested in trying to find out more about coding because I've been contemplating my major at university. So I'm a junior(sorta, I'm a transfer) computer science major taking my second coding class (data structures and algorithms) alongside foundations of computer science and I'm struggling rather immensely right now. I feel like I'm just not grasping any of the concepts that other people are grasping and a lot of stuff in general confuses me in Java. We've been going over objects and I find myself forgetting very easily what we learned and I find it extremely hard to listen to the lessons(I have adhd and am not on any meds right now. It also doesn't help that we have a first year teacher who's terrible) and I feel kinda hopeless right now. I keep looking into what types of careers people have in computer science and everything just seems so intimidating, like I'm not going to be able to live up to the expectations of being in the field if I'm struggling this much right now. So I was hoping to see if anyone had any resources or advice to help me get out of the rut that I've been in and actually motivate myself to delve deeper into my coursework. I enjoy coding in general and enjoy making my own stuff but when there's an assignment where I'm tasked with specific things, I get confused and overwhelmed by it. And I feel overwhelmed in my classes because I feel like I'm not getting the material like some of the more advanced students are and I'm falling behind and won't be able to catch up. Thanks to anyone who read through this rant and has any advice :)

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

    No comments:

    Post a Comment