Math in web dev learn programming |
- Math in web dev
- Code Review: A little board game framework, MCTS AI, and a reversi game implemented using them
- Remembering vs understanding
- Why use a recursive function instead of an iterative function?
- Is there a way to overcome the disabled Community Captions on Youtube through programming?
- Is it necessary to rot learn programming?
- Trying to create a method to return a string in reverse order, keep getting an error
- Any tutorials or courses that only have little to no Front end? C++ or Python
- Help! I'm looking for a conference talk and cannot find it via web search...
- Learning C++ as my first language, thoughts?
- I need help writing an algorithm for a project
- how would you use a enum for gender as a member of a class?
- Light book suggestions
- New to programming and I have some questions I hope you can help with
- What to learn for basics of machine learning ?
- What are some benefits and downsides of attending a Hackathon?
- sWIFT playground solutions
- Decoders vs Multiplexer
- Should I do the free Harvardx Computer Science courses?
- I want to learn how to create an AI from scratch. Where do you start?
- Api request failed with error child “query” fails because [“query” is required]
- Recommendation to implementation of extracting borders of pictures to analyze centeredness
- Alternatives to repl.it classrooms?
- Getting single file from Github repo
- How good is LeetCode ?
Posted: 27 Oct 2020 06:20 PM PDT Hi, I'm self-studying to be a web developer, mostly front-end for now, and I wonder how much math do I need to be good at it. Mostly because I recently finished a course of calc 2, and I don't really know if a should go for discrete math or full html/css, javascript, react, etc. What would you recommend me and why? Also, thanks in advance! :) [link] [comments] |
Code Review: A little board game framework, MCTS AI, and a reversi game implemented using them Posted: 27 Oct 2020 01:36 PM PDT Hi! I`ve never done any serious programming and I do want to improve, so I want every kind of remarks and comments imaginable. I am especially interested in the overall design: is that the right way to organize classes? What should I do to make my code more idiomatic and easy to read? Two words about the inner workings: There are two main classes: main.py othello.py mctsplayer.py game.py [link] [comments] |
Posted: 27 Oct 2020 03:44 PM PDT For all of the veteran coders out there. How much of your coding do you remember vs have to look up? I find that my problem is that I code slow because often I'll have to look things up many many times before I begin remembering how to do something without checking. Is this fairly normal, or is my memory just bad? I find that I understand the code well after I look it up and implement it. The problem is that if I had to go back and use that same piece of code the next day, I'll have to look it up again. For example, in JS, if I needed to implement an XHR request, I know each part of it. I understand how it works. I could spot if something is missing. The problem is that I can't remember the small details and syntax and would need to pull up a template of a basic XHR request in order to implement one into my code. Is this fairly normal, or am I behind? Any tips for remembering things like this? [link] [comments] |
Why use a recursive function instead of an iterative function? Posted: 27 Oct 2020 05:11 PM PDT In one of my college classes, we've just touched on the subject of recursive functions. An assignment had us convert an iterative function in an old program from a previous assignment into a recursive function. I don't understand the benefit of recursive functions. In both situations, we're repeating the same commands until our condition statement is no longer true, then returning a value. However, the recursive function splits the while loop from the iterative function into an if-else statement and has an additional return statement. Overall, I feel like this is messier and just plain uglier. I'm assuming there are situations where you can't use one or the other, but I can't imagine what that would be. Iterative: Recursive: also I didn't know about optional parameters until this unit, but afaik it can work in both situations [link] [comments] |
Is there a way to overcome the disabled Community Captions on Youtube through programming? Posted: 27 Oct 2020 01:00 PM PDT As I know Google disabled it because it was "rarely used and had problems with spam/abuse". But most of us agree it did benefited a lot of us. I as a non-native english speaker I've bennefited from it (it's easier to learn the language when you listen while you read), deaf people might be the most benefited from all. I had the idea if it could be done from the outside of youtube, and there's the captions API for youtube which accepts uploading a file (I guess it's a .srt file). Idk how succesful could it be but my idea is syncing a video with a caption viewer before uploading it and upload it when it has a satisfactory result. I'm not even sure if it is worth the fight but I had the insight and I wanted to share it. [link] [comments] |
Is it necessary to rot learn programming? Posted: 27 Oct 2020 07:55 PM PDT So for the past year I've been learning web dev and gotten into the habit of googling syntax. Many people say that syntax is not important as long as you got the logic right so that's what I focused on. I complete online certifications like HarvardsX's CS50W and University of Michigan's Python for Everybody. This has allowed me to get right into making half decent web apps but that has come at the cost of me having to look up basic stuff too often. I realized this yesterday while applying for a job as a Diango dev when the recruiter asked me to make a simple web scraper for quotes in 5mins. I froze and even though I've made plenty web scrapers in the past, I couldn't do it. He then thought that perhaps I'm rusty with web scrapers and asked me to make a simple fibonacci series prog using recursion in 2 mins. Aaaaaand I froze again. I was scribbling random text trying to get it to work but I couldn't. He was also asking me random programming questions related to python and django while I was 'coding' those programs which I was fortunately able to answer. But in the end he was convinced that I couldn't code at all. Since then I've been wondering whether I'm even cut out for programming or not. I have been learning to code for nearly a year making backends using django and front ends using vanilla js but it feels like all that effort was pretty pointless if I cant even write 5 liners without googling it. After the interview I felt stupid and made the two programs and memorized them. How did you guys learn programming? Did you memorize programs and libs or just focused on making what you wanted to make. [link] [comments] |
Trying to create a method to return a string in reverse order, keep getting an error Posted: 27 Oct 2020 11:28 PM PDT I'm trying to create my own method that accepts a string parameter and returns it in reverse order, but I keep getting a vague error message. I created two for loops, one to return the string with the char's in normal order, which works perfectly, but the reverse for loop is the one that's giving me the issue for some reason. It works as intended if I replace .length() with a normal int value thats the actual length of the parameter, but I want the parameter to be able to change, so .length() is needed. I'm not really seeing why it wouldn't work, could anyone give this a look over and point me in the right direction? The error code is: at java.lang.String.charAt(String.java:658) Java returned: 1 [link] [comments] |
Any tutorials or courses that only have little to no Front end? C++ or Python Posted: 27 Oct 2020 10:37 PM PDT I've been making just simple apps and I can definitely say that I dont like front end. I made a visualizer and it took me more time to design the page than doing the actual algorithms and such. Styling just becomes trial and error at certain times. So any courses recommendations? Paid courses are welcomed. I really just need some good courses to add to my list if ever I dont know what to do again. [link] [comments] |
Help! I'm looking for a conference talk and cannot find it via web search... Posted: 27 Oct 2020 06:43 PM PDT So, I watched a conference talk video (YT or Vimeo, probably) a year or so ago and I've been searching for it on the web for some time without any luck. Here's what I recollect about the talk, and I hope that it will spark someone's memory who also saw the talk: 1) The topic was about program correctness using formal methods 2) The speaker was female 3) I thought the title of the talk was something like "Writing True Programs" or "Proving Programs True" or something to that effect. I definitely recall that the speaker specifically played to the anachronism of talking about "truth" in the context of software, where such a metaphysical concept seems irrelevant. 4) The speaker goes on to describe a game theoretic scenario played out between two adversaries, and she illustrates one with a smiley-face emoji and dubs him "the smiley-face guy" and the other with a purple-devil-face emoji and dubs him "the bad guy" 5) The basic concept was that "the bad guy" is allowed to make arbitrary changes to the hardware that "the smiley-face guy"s software is supposed to run on (error-free) and the software is supposed to properly handle all the various failure cases, reaching a correct shutdown/exception condition. I can't remember the rest of the details of the talk but it was a really high-quality talk, and that's why I wanted to go back and watch it again in-depth this time. Any tips, hints, leads, DMs, cross-posts... anything is appreciated! [link] [comments] |
Learning C++ as my first language, thoughts? Posted: 27 Oct 2020 10:13 PM PDT I've been researching and people have been saying once you learn C++ learning other languages will be easier so here are my questions: - Is it worth it learning C++ as a first language? and is it worth it to learn at all - Where can I learn C++ for free online? - If you don't think learning C++ as a first language is a good idea, what other languages can you suggest? PS: I've been trying to learn Python in code academy for about a month now and getting nowhere because I don't like the approach of code academy I just feel confused since I don't really feel like I'm learning since it just tells me what to do so I think learning a different language will be better. Although I did learn some concepts of if elif and functions but that's it. [link] [comments] |
I need help writing an algorithm for a project Posted: 27 Oct 2020 05:59 PM PDT Hello Reddit, I need help! I'm not the best at programming, so I have a question. I'm working on a personal project, where I'm going to be using sensors attached on a tight, the sensors would collect the data according to time ( approximately every 0.5 seconds ) and positions, save it into a CSV file. Then I'm looking to write an algorithm that would then compare the data in the file to a variable and print something such as " adjust your position". I don't know if I'm explaining this well, but so far I have found a way to read the file and print it out. but I need any tips. I'm using java! [link] [comments] |
how would you use a enum for gender as a member of a class? Posted: 27 Oct 2020 05:37 PM PDT I want a member variable of my class to be I think it would be best if I could assign that I think it would make sense to have a gender enum which contains male and female. But I can't use the name gender for the enum because I use that for the gender variable which will be assigned the gender from the gender enum. Could you write in C++ or C# (prefer C#) how you would make the enum and the class to accomplish this in a nice way? Oh, and I almost forgot, do you think the enum should have a third option for [link] [comments] |
Posted: 27 Oct 2020 05:24 PM PDT Hi I've downloaded a lot of Programming and predominantly Python textbooks to use to study python. I was wondering if there's any recommendations for more lighter reading for Python and programming in general any book recommendations that aren't just cumbersome textbooks that are a bit difficult to read. I'm kinda interested in something a bit lighter for a beginner to read occasionally when I'm in a coffee shop/chilling and not in a full on study mode but I still want to be productive. Sorry if the question is a bit vague thanks though. [link] [comments] |
New to programming and I have some questions I hope you can help with Posted: 28 Oct 2020 12:50 AM PDT Hello, I just started my journey into programming with the hope of becoming a software engineer or website developer someday. I've done a bit of research and looked around for advice from reddit and youtube channels, and so far more than a little confused on where to start. So a bit of background info, I don't have a computer science degree or any sort of professional work experience but i am interested in entering the field. The problem is I don't really know where to start so i have many questions that I hope someone might be able to help me with.
Thank you guys in advance! [link] [comments] |
What to learn for basics of machine learning ? Posted: 27 Oct 2020 12:12 PM PDT Hey guys. I will keep it short. I want to create a bot that learns how to build sentences. I searched the web and somehow every site recommends something else. What do you think I should learn to create this basic task ? I know the task is basic but the process is hard. So no misunderstanding here. I will use python and wrote a web crawler that takes random wiki articles and extracts the text and puts them in a DB where the different building blocks of the sentence is already split up in word groups (like adverbs). [link] [comments] |
What are some benefits and downsides of attending a Hackathon? Posted: 28 Oct 2020 12:24 AM PDT Hello, I'm freshman. My professor yesterday asked if we wanted to attending a Hackathon organized by my city. I've never attended any programming contest, so I'd like to know more about its benefits and downsides. Thank you! [link] [comments] |
Posted: 27 Oct 2020 06:23 PM PDT I am working my way through the Apple playgrounds tutorial for Swift. I would like to compare my solutions to the different challenges to other solutions. Is there a place where others post their code? [link] [comments] |
Posted: 27 Oct 2020 10:22 AM PDT So I am having difficulty understanding the difference between the two. A decoder takes 2 inputs and based on the combination sets one of the out put gates high. A multiplexer takes 4 inputs and 2 select inputs which determine which one of the 4 ouputs get turned on. I have 2 question:
[link] [comments] |
Should I do the free Harvardx Computer Science courses? Posted: 28 Oct 2020 12:05 AM PDT So basically I have this website idea that I'm pretty into that is basically an alternative to LinkedIn but it matches people with work they can be passionate about. My main issue is I've spent a week or two trying to learn flask as I already know a bit of python and it's proving difficult. It's hard to know whose instructions to follow in my own design as different youtubers do different things. So I though I could complete this. Has anyone done this before or have any thoughts on it? I'm not particularly passionate about coding, but I don't mind it, so I'd mainly be doing this to make my website idea and other ideas. let me know what you think :). [link] [comments] |
I want to learn how to create an AI from scratch. Where do you start? Posted: 27 Oct 2020 08:06 PM PDT I really want to learn and make my own AI but I dont know where to start. I don't know what IDE to use. I'm fine with any programming language but I prefer python or C#/C++. I just want to make an AI to do simple task on computers (like sending emails or play a music) and maybe I could improve it more. Thanks in advance! [link] [comments] |
Api request failed with error child “query” fails because [“query” is required] Posted: 27 Oct 2020 05:36 PM PDT What is going on? Why is it giving me this error? I can't see anything wrong. Help! I 'm using React [link] [comments] |
Recommendation to implementation of extracting borders of pictures to analyze centeredness Posted: 27 Oct 2020 11:24 PM PDT Pre-note: Had no success at r/computervision so I will post it again here. If that title was too abstract for you, here is what I meant. I would like to how centered a basketball card is, only judging their borders. As can be seen in the picture below, I want to measure if the border size (the edge of the card to the edge of the picture). I denote the top and the bottom-top and the left-right borders with black and red respectively, but basically, all 4 measures should be equal to each other. The reason that I asked so is because, sometimes the picture is not always straight-up like the one above. I believe that the picture will always be tilted like so: My view is, grab the four corners, and straighten the picture, then measure the corners. This is where I have questions:
I sort of have an idea for my second question...but I feel like that it is much more complicated than necessary, I will share it anyway if it helps. For any sorta memorabilia, there are usually grading companies. A score of 10 denotes perfection, including borders' width that I mentioned above. I can implement a machine-learning algorithm to train the machine to learn what the borders' width is on those graded-as-10 cards, then apply it to the unknowns. But as I said, this is probably too complicated - as I can just measure the width directly and compare all 4 widths together. If someone can point me to the correct dimension, I would greatly appreciate it. Thanks folks! [link] [comments] |
Alternatives to repl.it classrooms? Posted: 27 Oct 2020 11:10 PM PDT Classrooms on repl.it is sunsetting and the proposed alternative (repl.it teams) is not cutting it. On repl.it classrooms, I am able to provide a question description, boilerplate code, and keep track and grade each submission, and also to send back feedback. . Are there any other services that provide such features? Paid and free services are both welcomed. [link] [comments] |
Getting single file from Github repo Posted: 27 Oct 2020 11:08 PM PDT I created a repo and pushed it to Github. I forgot to add a README.md file so I created one on Github. I want to bring this README file (and only this file) down into my local repo. I tried to push some changes in another file but I got an error:
What command should I use? [link] [comments] |
Posted: 27 Oct 2020 11:06 PM PDT Basically title. I am about to complete CS50, but I feel like I need some more practice before I am fully confident w/ my knowledge. I heard from some people on this sub that it isn't that good. Are there any other good alternatives if LeetCode is bad ? [link] [comments] |
You are subscribed to email updates from learn programming. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment