• Breaking News

    Sunday, October 25, 2020

    What have you been working on recently? [October 24, 2020] learn programming

    What have you been working on recently? [October 24, 2020] learn programming


    What have you been working on recently? [October 24, 2020]

    Posted: 24 Oct 2020 09:04 AM PDT

    What have you been working on recently? Feel free to share updates on projects you're working on, brag about any major milestones you've hit, grouse about a challenge you've ran into recently... Any sort of "progress report" is fair game!

    A few requests:

    1. If possible, include a link to your source code when sharing a project update. That way, others can learn from your work!

    2. If you've shared something, try commenting on at least one other update -- ask a question, give feedback, compliment something cool... We encourage discussion!

    3. If you don't consider yourself to be a beginner, include about how many years of experience you have.

    This thread will remained stickied over the weekend. Link to past threads here.

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

    Any site that teaches data structures and algorithms along with coding interview questions?

    Posted: 24 Oct 2020 08:25 PM PDT

    What websites are there that happens to teach data structure and algorithms in any language interactively, and provide in depth guidance on how to properly complete coding questions asked during interviews?

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

    I made a summarized pdf of the Thinkful's Webinar "4 ways to code fast"

    Posted: 24 Oct 2020 10:46 PM PDT

    I myself am a beginner in coding. I have signed up for multiple courses and have bought and will buy more books. You see, there are a multitude of resources out there and there isnt exactly the "right-one". Everyone just has there own way of understanding tutorials or creating there own time management system. Keep that in my mind as I provide you guys with this summarized PDF.

    I checked the FAQ of /r/learnprogramming and came across this Thinkful article. I was quite curious to see a whole saved webinar which I watched and quite enjoyed. Now, I am not a bootcamp participant but may be in the future so I tweaked my summarization for beginners who want to learn outside a bootcamp and focus on tutorials & books.

    Summarized PDF

    Much of the resources that were in the reference sheet and webinar are there.

    Again, I wanna say a big thank you to /r/learnprogramming as they have provided a good catalyst to build off of when your in the infancy of learning code (like myself). I hope this helps you as it did me. If you have any questions, comments, or corrections please comment them. I hope this resource helps you and I wish you luck on your journies. Cheers!

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

    Is it normal to feel like a moron when you first start out?

    Posted: 24 Oct 2020 11:00 PM PDT

    And do you have any tips on how to stop from getting frustrated?

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

    Students, how do you take CS notes?

    Posted: 24 Oct 2020 09:51 PM PDT

    I'm planning on creating a master notebook for CS. It will contain definitions of key terms (abstraction, polymorphism, conditional statements, etc), algorithm explanations (best/worse case, when to use them, pseudo code for the algorithm ), and starter code for all the languages I learn on my journey (I'll write out the code so that it showcases how to create arrays, assign values, print statements, and it'll give a good sense of syntax for that language).

    How do you guys go about taking notes? Any tips and tricks you've learned on the way? Any recommendations?

    submitted by /u/Tuka-Cola
    [link] [comments]

    I need advice to learn a new programming language

    Posted: 24 Oct 2020 08:46 PM PDT

    For the past week I've been learning C#, just the basics (Varibles, If Statements, Methods, Operations) and I want to take it further. Does anyone have advice for learning a new language not just C# have advice that I can use to learn this more fast or effectively because I want to work as a software contractor or engineer by the time I'm out of high school so I don't turn up homeless :)

    After I learn at least one language and have experience in it I think it will be much easier to become adept in others. If you have any advice please, even just giving me a course or website will help me out so much.

    Have a good day :)

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

    I want to learn to code, but how?

    Posted: 24 Oct 2020 10:38 PM PDT

    I am a Digital Marketer by profession. Recently, I launched my own web store and a consultancy service. I am okay with using and building websites using WordPress and Plugins, but I wish to learn HTML, CSS, Javascript, MySQL and PHP apart from website hosting on AWS, or Google.

    I bought a course on Udemy to learn, but I am just not able to gather time to watch hours of coding lessons. Is there a more practical way to learn to code for WordPress somehow, probably an online bootcamp?

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

    [C] Stuck in an infinite recursion loop

    Posted: 24 Oct 2020 08:05 PM PDT

    Hey everyone, me again. On the off chance that you remember me, I mentioned a problem that I went to my teacher about and he just e-mailed me back saying good enough and gave me full credit. Well, that was a couple of weeks ago and I still don't know why I can't complete this maze (the assignment was to write a program that automatically finished a maze).

    My program is able to finish the first three moves and then it gets stuck in a corner. For some reason, it can't turn right and I can't figure it out. He said if I wanted more help I'd have to come to his office hours (virtual) but I'm in a different class during that time.

    I'd ask my classmates but there's a strict rule against posting about homework, it's a self-paced class. It was also, only worth 3 points so he told me not to stress about it too much because mazes don't pop up that often.

    Here's a link to the code. https://gist.github.com/Drewet88/b08ded1d356cddad9fb4a40d39519cd7


    Made it a step further thanks to u/dmazzoni. I updated the code on my gist (and I will again once I figure the rest out).

    It gets a lot further now. I just need to tell it to reverse its last move when it gets stuck so it can look for a path it hasn't taken.

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

    What are some of the non-coding things that a programmer should learn?

    Posted: 24 Oct 2020 07:27 AM PDT

    Things like Git, GitHub, Version Control, and other things.

    Looking forward to reading your suggestions! <3

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

    Partial Application in Python

    Posted: 25 Oct 2020 12:07 AM PDT

    I made a Jupyter notebook teaching how to use partial application in Python. I'm looking for some feedback on it, if anyone has any. Thanks for your time!

    https://github.com/Theta291/Partial-Application-in-Python/blob/main/Partial%20Application.ipynb

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

    Email with Python

    Posted: 24 Oct 2020 11:54 PM PDT

    Is it possible to handle email communications in python.

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

    HTML Help aligning and adding label to side-by-side input forms

    Posted: 24 Oct 2020 11:21 PM PDT

    I have two input boxes side-by-side and then below that are two textareas side-by-centered, centered in the middle of the page. When I try to add a label for the input and textareas it throws them out of alignment, the left side becomes higher than the right side. I cannot figure out how to fix this and have it all align perfectly.

    Is there a better way I can do this? I want two text input forms side-by-side and then below that I want two text areas side-by-side aligned below each text input form.

    Here is the code I have now. It works fine until I add a label and then it is no longer properly aligned.

    <style> .container { width: 80%; margin: 0 auto; background: rgba(0,0,0,.04); border-radius: 5px; padding-bottom: 2px; } input[type="text"], textarea { width: calc(45% - 16px); display: block; float: left; padding: 12px 10px; margin: 2px; box-sizing: border-box; border: 2px solid black; border-radius: 6px; } input[type="submit"] { margin: 0 auto; width: calc(45% - 16px); display: block; background-color: #4CAF50; border: none; color: white; padding: 16px 0; margin: 0 auto; border-radius: 4px; cursor: pointer; float: left; } </style> <body style="background-color:grey;"> <p style="text-align:center;">Centered paragraph.</p> <div class="center-div"> <div class="container"> <label for="fname">Visiting</label><br> <input type="text" id="fname" placeholder="Describe yourself here..."> <label for="fname2">Visiting</label> <input type="text" id="fname2" placeholder="Describe yourself here..."> <textarea id="text1" name="textbox" rows="15" cols="100" placeholder="Describe yourself here..."></textarea> </textarea> <textarea id="text2" name="textbox2" rows="15" cols="100" placeholder="Describe yourself here..."></textarea> </textarea> <input type="submit"> </div> </div> 
    submitted by /u/markmm
    [link] [comments]

    Combining other careers and programming

    Posted: 24 Oct 2020 11:16 PM PDT

    How many people here are combining coding alongside their regular job to leverage your niche knowledge base? I'm thinking bankers, doctors, nurses, lawyers, salesmen/women etc who aren't looking to change careers, but instead include an aspect of coding into their current one?

    How difficult do you find it to carve time out of work to learn? And what opportunities do you see being able to use your niche combination of skills for?

    I'll start: - Doctor dabbling in programming slowly for a few months - Study in the morning before work and weekends. It's difficult but I really enjoy the challenge. - Looking at programming mostly as a resource to analyse data. The amount of data just sitting in healthcare untouched is obscene.

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

    (C) Searching for string in text file

    Posted: 24 Oct 2020 07:29 PM PDT

    I need to search for a matching string (name) in a text file and output the line it is in.

    The text file looks like this:

    George Mark Mary John Cynthia 

    In the program the output should look like:

    Enter name: Mary They are 3 on the list. 

    How would I do this? Here is my code so far. I haven't written the code for finding the matching string yet. I'm not really sure where to start.

     FILE *fptr = fopen("names.txt","r"); char namein[100]; if(fptr == NULL) { printf("Error!"); exit(1); } while(getchar() != '\n'); printf("\nEnter name: "); fgets(namein, sizeof(namein), stdin); namein[strcspn(namein, "\n")] = 0; 
    submitted by /u/rainintheeve
    [link] [comments]

    i've completed React course at codecademy.com, what's next?

    Posted: 24 Oct 2020 10:50 PM PDT

    there are so many resources out there, not sure what to choose. my goal is to learn React to improve my employability, and to become a decent front end developer. would love to hear your suggestions. thanks in advance

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

    [C++] Confused about what [someNumber - 'a'] does for this indexing technique

    Posted: 24 Oct 2020 10:49 PM PDT

    Trying to solve this LC Easy: https://leetcode.com/problems/first-unique-character-in-a-string/

    This is a valid solution:

     class Solution { public: int firstUniqChar(string s) { int n = s.size(); vector<int> check(26,0); int res = 0; for(int i = 0; i < n; i++){ check[s[i] - 'a']++; //??? what is this? } for(int i = 0; i < n; i++){ if(check[s[i] - 'a'] == 1){ return i; } } return -1; } }; 

    As best as I can interpret, the "check" vector represents the alphabet.

    But I'm confused over what is going on when the code author writes "check[s[i] - 'a']"

    What does it mean and what's the intuition behind it?

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

    Programming

    Posted: 24 Oct 2020 10:34 PM PDT

    Any sites/videos that provide good explanation for Visual Basic and python? I am an A level student and struggling af. Like its easy to read and understand the codes, but difficult for me to write the code myself HELP

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

    Can you plug-in a graphics card to an all-in-one PC that is too slow to run programs?

    Posted: 24 Oct 2020 06:33 PM PDT

    I have learned the basics of four languages on my phone, but I realized that to actually develop a game, mod, or app It's much easier to do it on a PC, but the only PC that I have have is an all-in-one from 2014 and it is not fast enough to run games like Minecraft so I can't even test mods which I make, can I use everything my current PC has currently and just plug-in a graphics card only, will that be enough to run games like Minecraft, so that I can make mods?

    I don't really have much computer hardware knowledge so I don't know what I need, to be able to run programs.

    tl;dr: I am trying to develop mods and games but my PC isn't fast enough, can I just plug-in a graphics card to make Minecraft mods?

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

    Help with Python project

    Posted: 24 Oct 2020 06:27 PM PDT

    Help with project!!

    hello!

    I am a few months into learning python. I am currently working on a project with the following instructions/needs:

    I am to write a program that will process a data file that contains patient information. The hospital has 100 Covid-19 beds that can be used. When a patient shows up, place them in a bed and note what stage they are at. Each day generate a random number to determine if they have gotten better. If they have gotten better then update their status color. If they were a green patient and they got better, discharge them from the hospital. The format of the data in the data file will be as follows:[ Sex, Covid-19 status (G/Y/R/P), age ]. After all of the data has been processed at the end of each day, I need to print out the status of all of the beds in the hospital – G / Y / R / P. I also need to print out the following statistics: 1. Current number of patients who are in the Green status. 2. Current number of patients who are in the Yellow status. 3. Current number of patients who are in the Red status. 4. Current number of patients who are in the Purple status. My program should run until all of the Covid-19 patients have gone home.

    Here is the link to my current code.....

    I just need some tips on how to make this work better. Thank you so much in advance!

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

    Making a rougelike/rpg in only C

    Posted: 24 Oct 2020 06:23 PM PDT

    I know there a lot of resources on this topic but Is it possible to recreate a terminal like environment with OpenGL and sdl? I'm using windows and I understand that ncurses or pdcurses are used more so for roguelikes.

    The goal is to just get more familiar with graphics rendering and game development .

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

    Is it possible to develop software for a Bluetooth device? I have a device with a really bad app experience and it connects with Bluetooth. Does anyone have any useful info on how I can connect to it and send it commands myself?

    Posted: 24 Oct 2020 10:01 PM PDT

    I can provide more details if necessary but I think the title has all the info for the problem. I have no idea what even to google for this.

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

    Someone help

    Posted: 24 Oct 2020 09:47 PM PDT

    Hey guys. I need a way to save notes on my note taking app and make it so the user can access and edit that note file through the app. Please help me.

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

    Could someone explain how the guy made the website that uses McDonald’s APIs to see if their ice cream machine is broken?

    Posted: 24 Oct 2020 11:11 AM PDT

    I'm new to developing and just very curious about APIs. I've watched some videos but don't have a good grasp of them yet. If I had to take a guess for this project, he found the api for the McDonald's app where you can order machines and he makes the program place an order for an ice cream at several locations, and if the location sends back a response that says "yes you can order", the site registers it as the machine is working. If the site sends back a response that says "ice cream machine is out of order", the site registers it as machine is not working.

    I'm sure I oversimplified it but that's my guess.

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

    reversing a string [JS]

    Posted: 24 Oct 2020 05:55 PM PDT

    function reverseString(str) { let arr= [] for (let i=0; i<str.length; i++){ arr.unshift(str[i]) } let result = arr.reduce((sum, current) => sum + current); console.log(result) console.log(str) } reverseString("sunday") 

    I need to reverse the string and have the reversed string in str, can someone help me on how to do that? I already have the reversed string

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

    excel brought me back to programming.

    Posted: 24 Oct 2020 05:28 PM PDT

    hey everyone, im 19. excel out of all things made me get my drive back to keep learning how to code in python. I started in the automate the boring stuff with python course. My background: undergrad for finance major, have always been very tech-savvy and had a brush with coding in 8th grade when introduced to codeacademy by a teacher, but ended up forgetting about it. Being an investor (foreign exchange market, stock market), my main reason for learning programming and specifically python was to be able to use numpy and matplotlib, learn about algorithms and machine learning, and down the line be able to create my own form of algorithmic trading bot (in finance this would be something a quant does), as well as learn to create financial modeling for myself and my investments.

    I also am very into real estate and am licensed in it, and want to intern at a few real estate development firms as an acquisition analyst nearby to better understand what to look for in an investment, how to analyze both from a hard number / quantitative analysis point of view, as well as qualitative analysis point of view. Best way to be picked is to have real estate financial modeling knowledge, for which I am taking a financial modeling excel course for real estate now. After not touching python for about 2 or more weeks after getting burned out due to probably going to quick and creating useless projects, going into excel, i realized how similar in a sense excel is to python or coding in general.

    What do I mean by this? Coding, like excel, is purely input to output based. They both have the same function concept (if this input goes in, this output will always come out). Thus, coding especially in python, with it being asynchronous in nature, is generally purely dependent on what precedes it to run correctly. They also are both equally math intensive, especially when it comes to things like inequalities, and both implement and reinforce the ideas of abstraction, problem solving across different levels of abstraction, and problem solving across different forms of conditions.

    The moment I learned excel had conditional statements like if, and, or I was like wait a minute, this is just like python lmao. I even found myself messing up while writing excel if conditionals by writing print(" in the formula before realizing this is excel, not python. I also have whiteboards next to my desk. When writing out the concepts for some of these complex and multiple condition financial formulas in excel, I got to realize and learn how to put what I want to create into actionable criteria and steps, as opposed to just brainstorming as I type, which even in excel, is proven to be a very effective problem solving strategy for putting many different conditional levels of abstraction and problems together and actually create them.

    Honestly, one of the things I really found amazing and very unique to programming or coding in general is the focus on creative problem solving, and how you had to take abstract parts and concepts, tie them together, to create one cohesive function or program. Also, I also really thought how interesting that in programming jobs, the way one would get promoted generally is measured on the concept of impact. Impact being how impactful something you create is to the general function or one specific function or bottleneck to an entire system, or to the company. Impact as a measure of success is a very great way to look at things and measure the effects of what you produce. I can also very well practice actually seek motivation through creating programs that are relevant or beneficial or create the most impact to me personally or for processes I would use in these sorts of investment analyses and financial modeling. As I've heard, project based programming is the best way to stay focused and motivated on a task.

    Glad to say that tomorrow, I'll be venturing back into programming.

    that's all, if you read everything, thanks for taking the time. never would have thought, but excel brought me back into programming.

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

    No comments:

    Post a Comment