MIT's Introduction to Computer Science and Programming Using Python course is back on June 5 learn programming |
- MIT's Introduction to Computer Science and Programming Using Python course is back on June 5
- Am I too stupid to code (3 month update)
- Just because "anyone can code" does not mean that programming is easy
- A simple example of recursion outside the world of computer science and math.
- Does anyone teach programming? Or have an amazing high school programming class?
- Nice looking C++ Compiler
- 8 months to learn Java - realistic or a pipe dream?
- Guys, I really need your help. This can decide my future!
- Currently serving big file (1.2GB) using HTTP/1.1, will HTTP/2 give better performance?
- Sources to learn web developing with Python
- Having object references with functionality that change at runtime in OOP
- Matlab help I'm a (Newbie^infinity)
- First time College hackathon. Need help making some ideas
- how to rearrange the elements in a vector c++
- [x86_64 Assembly] Getting segfaults when trying to run conditional jumps
- How to create a gradient vector in Matlab?
- How exactly do WSDL files work?
- Negamax pruning
- Thoughts on this C++ programming tutorial?
- [C++] How can i print the only the right subtree of a binary tree?
- Quick Javascript Page Help!!
- creating a reverse card in uno
- What is SDKMAN?
MIT's Introduction to Computer Science and Programming Using Python course is back on June 5 Posted: 03 May 2019 08:49 AM PDT MIT's popular Python course is open for enrollment. (learn Python 3.5). Over million people have taken this course, designed to help people with no prior exposure to computer science or programming learn to think computationally and write programs to tackle useful problems. Join for free. https://www.edx.org/course/introduction-to-computer-science-and-programming-using-python-2 [link] [comments] |
Am I too stupid to code (3 month update) Posted: 03 May 2019 06:04 AM PDT Following on from my original post (Original here) which I might add was very helpful and encourage so thank you I thought I would give an update. So I finished Automate the boring stuff which I thought was great. It game me and idea after watching the web scraping part. While my company monitor the tin for what our web applications are hosted on we didn't actually have a good monitoring solution to tell us performance and timings so after a lot of Google-Fu and messing around I managed to get something together and working that timed all the login duration's and search duration's too. It has gone down pretty well and my company want me to invest some time over the next few months to improve on it and iron out some of the bugs so we can replace something which costs £x0,000 a year which does similar but not quiet as well as what I managed to do. I've been doing a course from code with mosh which has been good and I feel I'm slowly starting to get things a bit more, I'm only about 35% of the way through the course but I feel some things are slowly starting to click. I will say that I literally have a very poor memory in that I get to exercises and literally always draw a blank but I'm just plodding along. I was also pretty happy today in that I wrote a program, again from initial Google-Fu, reading some documentation and examples and slowly trying to work out errors which monitors something which we have never been able to monitor before, something which an external company quoted us $3,500 to do and I managed to get this working in an afternoon which was a real good feeling. I haven't dedicated as much time as I should have to learning, I've moved house and got a lot of stuff going on at the moment but I try and do as much as I can. When I'm tired I try not to because I just don't seem to get stuff. Like I said I'm slowly getting things but my memory on how to implement things isn't there yet but then I am only 3 months in. The one thing with my code which I know isn't good is there is some instances where I am not following DRY especially with my early code, I know how to improve on this though and rather than having 20 definitions in my code I can achieve the same with maybe 1 or 2 and string formatting or maybe implement a few classes. All in all I'm still a long way from being able to code without Google or without looking at examples and editing them to suite my need but again I want to thank this sub and many other coding subs like learnpython etc. I am currently working in DevOps and have found that from learning what I've learn so far from courses and hands on experience I'm able to use some of that knowledge to help me troubleshoot and fix issues in my day job. I have a lot of great ideas I'd like to implement and a lot of things I'd like to automate and I'm excited to see what I'm able to achieve once I've expanded my knowledge and can actually start remembering things :) Once again thank you for all your encouragement and support. Enjoy your weekend. [link] [comments] |
Just because "anyone can code" does not mean that programming is easy Posted: 03 May 2019 02:11 PM PDT I see a lot of people here who get very demotivated with coding. It seems like everyday there's a "am I too stupid to code?" question on here, and that's pretty saddening to see. I really do think anyone can code -- sure, some people may find it harder to pick up than others, but it certainly something anyone can do! But this "anyone can code" mantra is actually what I wanted to mention. Just because anyone can code, that does not mean it is easy. Programming is a technical skill, and it takes at least months to learn, and probably at least a year until you feel very comfortable with it. It's not always easy. Now let me be clear: I am not saying this to demotivate anyone. I'm saying it more to mean: be patient with yourself! It takes time -- you can do it, but it will likely take time. No one expects you to get recursion in a day. No one expects you to understand referencing/pointers in a day. Object Oriented programming is not something that most people just get in a week. Hell, functions aren't even something people get in a week. It takes time -- that's ok -- that's expected! You can do it though, really. It just may take a little time. I just wanted to put this out there because I feel like this hobby has an especially high concentration of people who feel like they can't do it when they really can. So be patient with yourself -- you can do it, just maybe not immediately, and that's ok! [link] [comments] |
A simple example of recursion outside the world of computer science and math. Posted: 03 May 2019 10:49 AM PDT Imagine you're in a sports stadium and you want to find out which row you're on. You know you can try and count the rows, but it's too many and you can't accurately do so. What do you do? You ask someone in the row in front of you: "Hey what row are you on?" They don't know either so then they ask the same question to someone in the row in front of them. And that person does the same and so on. Eventually, the person in the second row asks the person in the first row. The person in the first row trivially knows that they are in the first row. They smile and say "I'm in the first row!" Then the person behind that person knows they're in the second row. They turn around and say "I'm in the second row". This happens all the way back until the person in front of you says: "I'm in row 103842!" Now you know that you're in the row that is 1 more than that: Row 103843.
This is really all about how recursion works. It's breaking a complicated problem into a really simple one until you get a problem that is trivial to solve. In the case of the example, it's the person in the first row knowing that they're in the first row. This is called the base case. A recursive function breaks down a problem bit by bit until it reaches some kind of really easy to solve problem called the base case. After that happens, the function turns around and unwinds to put together the full answer. In the case of the example, it's each person turning around to say what row they're in and the person above adding one to that number to get the next row. That's it! We have a recursive step that breaks down the problem. We have base case as a way to solve a trivially easy problem (and end the recursive step so that we don't have an infinite loop). Once it's done we can unravel all these parts to give us the full answer or result. [link] [comments] |
Does anyone teach programming? Or have an amazing high school programming class? Posted: 03 May 2019 09:02 PM PDT I'm teaching programming to high school kids next year and I want to get some kick ass projects for them. I know they can work through Code Academy stuff independently and I plan to start them with CS First (Google's intro to Scratch). I'm not sure where to begin with making cool projects. I took C++ in high school, and it took us a full semester to create a super short game. What was the best programming assignment you had in school? [link] [comments] |
Posted: 03 May 2019 11:37 PM PDT I've created a little text based game in C++ (I'm a beginner) but part of the criteria is to make it look presentable. I've done some nice things in the code itself, but is there a C++ compiler out there that makes the terminal text nice looking? Right now I've been using cpp.sh but it's a bit plain and "codey". Also what are some ways to make text look nice inside the program? [link] [comments] |
8 months to learn Java - realistic or a pipe dream? Posted: 03 May 2019 11:33 PM PDT I'm looking for some opinions. I've been looking around in my area and found a, uh… I guess you'd call it a technical school? Vocational school? Classification and naming conventions of educational institutions vary so wildly by area, so I'm not sure what you'd call it. Anyway, the place is offering night classes for learning Java - it's an 8 month course with an additional month dedicated to an internship (you have to find placement yourself). Normally it would be 1.5 years, but I already have an unrelated university degree. So yeah, my question is whether this is realistic or not – I'm a bit skeptical. 8 months of ~30h/week seems like hell of a short period to go from knowing zero to being proficient enough to qualify for an internship (let alone a job) in such a highly technical field. The place is 100% state funded, so the only thing I'd be losing is time and energy. Then again, even those resources are limited, so I'd rather not waste them. [link] [comments] |
Guys, I really need your help. This can decide my future! Posted: 03 May 2019 11:24 PM PDT Hi guys, I am a 13yo boy who lives in Italy. It is about 5 months that I am interested in programming, but only 2 that I am studying seriously. I have been into c# and unity, since I love making games. My dream is to work at a big Software company such as Google or Apple or Amazon. My favorite thing to do is coding. Just writing lines and lines till I get bored. I know I'm a bit young but I want an advice. I want to study programming languages, algehbra and physics. So, my question, (which I have already asked) to study and learn PROGRAMMING Languages mostly, what is better. A computer science degree or a computer engenieering degree? Thank you for your help. [link] [comments] |
Currently serving big file (1.2GB) using HTTP/1.1, will HTTP/2 give better performance? Posted: 03 May 2019 07:29 PM PDT I have the single big file (1.2GB+) hosted on the server to download currently served using HTTP/1.1. We are exploring if we can move to HTTP/2 for better performance and security. All the places on the internet I see people talking about improvement in speed if there are many small files I need to download. What about a single big file? [link] [comments] |
Sources to learn web developing with Python Posted: 03 May 2019 11:01 PM PDT Does someone know any good source to learn python and it's frameworks to build web apps and web sites? thx [link] [comments] |
Having object references with functionality that change at runtime in OOP Posted: 03 May 2019 10:52 PM PDT I have been programming for a while, enough to get most of the syntax and general idea, but I am still trying to improve my OOP skills. A common problem I face is when I'm trying to reference objects that could have different functionality at runtime. For example I have an interface which I implement in SqlDatabase and NonPersistantDatabase classes, but have want to be able to let the user to decide which one they want to use and have a reference to this database in a runner class: This would mean that they would need different methods, e.g. I want to test the connection of an SQL using canConnect(), but do not need to test connection for the non-persistent one. I have thought of a few ways, but none seem very elegant: 1) Using inheritance: The problem I have with this is to access canConnect(), I need to set any object reference to ISqlDatabaseConnection, which means I can't change use the same variable for sql and non-persistant databases. And if I want to cast I have to check the object type, which seems to go against the point of inheritance. 2) Using a separate interface e.g. unrelated ISqlDatabaseAccessor interface which has the canConnect() method, but I still have the problem as with 1) in terms of accessing it from the IDatabaseConnection reference type. 3) Keep everything in IDatabaseConnection and when implementing the Non-persistent class that inherits this interface, write a dummy implementation that should never be run, but that seems wasteful and not nice to look at, especially as I add more methods. i.e. I feel there is a better way to do this that I don't know about. Any suggestions would be appreciated. Thanks [link] [comments] |
Matlab help I'm a (Newbie^infinity) Posted: 03 May 2019 10:36 PM PDT I have some homework due for an introductory programming class. It is using matlab for greedy algorithm. Quick breakdown. I have to come up with a code that'll find the shortest path beginning at the center of a map. I can go east or west. The code is going to run a function. My initial set up is below lol. I don't want any of you good people to write it for me, instead I have questions. My professor is a prime example why PhDs should not be teaching. This matlab course is 4 weeks, she doesn't teach it well and her examples are no where near the homework/exams. I've gone to office hours for help but she is terrible at explaining :( I'm on the verge of changing majors because of her. My daughter motivates me to keep going though. I could only do if, while, for, array manipulation or vector manipulation. function [xMin, yMin, heightMin] = project11(filename) end function [x, y, deltaH] = findGreedyPath(data, rowStart, colStart) h = figure; contour(data); hold all sz = size(data); x = 1:sz(2); y = nan(1, sz(2)); deltaH = 0; row = rowStart; col = colStart; y(col) = rowStart; y(col) = row; end question 1: why are there two functions here? We have to use this code. What does the first function accomplish? I know the variables within the brackets are outputs, and I'm guessing xMin; yMin; heightMin will give me the minimum values. Correct me, if I'm wrong please. I still don't understand why there are two functions. question 2: Where X and Y are initialized, why do they both contain nearly the same code; "1:sz(2)" & "nan(1, sz(2))"? I believe sz(2) means the size of the column. question 3: What does nan do? for y = nan(1, sz(2)) question 3: What does y(col) mean? question 4: I'm thinking about running two while loops, one to go west and one to go east. How do I initialize rowStart and colStart, so that my origin is at the center of the plot? for now that is all. thank you so much if you help me! I'm not stupid lol, but the matlab portion of the course was 4 weeks, with 7 weeks spent on c++. I love C++ it was super simple for me, but matlab is complete rocket science? By the way, I have Chegg but I'm not posting on there because I truly want to understand matlab. [link] [comments] |
First time College hackathon. Need help making some ideas Posted: 03 May 2019 10:30 PM PDT It's a little bit less than 24 hour hackathon. There is no theme as such but wanted to build something that helps the community prepare for disasters/minimize the damage of a disaster. Also while I know it's ambitious I do aim to try winning this and don't mind learning some new stuff if I have to. Any ideas would be greatly appreciated. Thanks a lot :) Edit: Here are some of the technologies they let us use: AI, Blockchain, Cloud, Data, IoT and Open Source [link] [comments] |
how to rearrange the elements in a vector c++ Posted: 03 May 2019 10:00 PM PDT I have a vector of objects, say but I need to build a function that takes that current vector and does this so I need to swap each element until they are arranged in reverse order. I've tried but my result is but I don't understand how the objects got out of order. I'm sorry if this was hard to understand because I can't explain myself very well, but basically, I need to rearrange the elements in my vector so that, when rearranged, are in reverse order from previous. [link] [comments] |
[x86_64 Assembly] Getting segfaults when trying to run conditional jumps Posted: 03 May 2019 06:10 PM PDT Ok so this code was giving me segfaults on my original code, so I thought that I would jump into a clean test file and try to do it there. What I'm trying to do is set the values of two registers, compare their values, and then jump to a label if the values in the two registers are equal. Whenever I do this, I'm left with a My code: ```assembly section .text global _start _start: mov eax, 5 mov ebx, 5 cmp eax, ebx je equal equal: ;jumped here ``` I also tried it with 64 bit registers: ```assembly section .text global _start _start: mov rax, 5 mov rbx, 5 cmp rax, rbx je equal equal: ;jumped here ``` If someone could help me, that would be great [link] [comments] |
How to create a gradient vector in Matlab? Posted: 03 May 2019 09:27 PM PDT Hi, thanks for looking into my question. What I seek an answer to is the title of the post. I have the partials, call them p1 and p2. gradient of mu, denoted gradmu = p1*ihat + p2*jhat. How do I encode this into Matlab? Would it just be gradmu = [p1, p2] ? Here is the code. I'm trying to create a function that creates a measurement matrix, then calculates something called the coherence (this is what mu is). I'm trying to minimize this using a gradient search type thing. So, I calculate the partials which are dmu/dt1 and dmu/dt2 (t1 and t2 are theta1 and theta2 respectively). MM2 = @(t1, t2) [1 cos(t1) cos(t2); 0 sin(t1) sin(t2)]; MM2(pi/4, pi/3) mu = @(A) max(max(abs(A'*A-eye(3)))); delta = input('Enter small numeric value for delta: '); lambda = input('Enter small numveric value for lambda: '); dmu/dt1 = (mu(A(t1+delta, t2)) - mu(A(t1, t2)))/delta dmu/dt2 = (mu(A(t1, t2+delta)) - mu(A(t1, t2)))/delta gradmu = [dmu/dt1, dmu/dt2] Thanks :) [link] [comments] |
How exactly do WSDL files work? Posted: 03 May 2019 08:53 PM PDT I landed my first Java programming job and have been using WSDL files in SOAPUI to send SOAP requests manually. The problem I was just handed a project with Java classes and some WSDL files on the side. My question is - where do these WSDL files come from? Are they generated by some Java class or are they written individually? If someone else was making an app and wanted to use one of the WSDL files to haev their app send a request how would their program run them? I am wondering how they would provide arguments programatically [link] [comments] |
Posted: 03 May 2019 08:49 PM PDT To my understanding alpha-beta pruning does not change the outcome of a Minimax Algorithm it just makes it faster, is it the same with negamax? I have two identical negamax code but one has the case to to cut-off if alpha >=beta and my results are different. Does node ordering makes a difference ? [link] [comments] |
Thoughts on this C++ programming tutorial? Posted: 03 May 2019 08:33 PM PDT What do you think about it? Could I have gone more into detail about particular concepts? Did I go into too much details? Was the information being conveyed accurate? Before I go on, I want to fix anything that needs work on. Thanks. [link] [comments] |
[C++] How can i print the only the right subtree of a binary tree? Posted: 03 May 2019 04:40 PM PDT Say i had this tree constructed.. how could i print this out : [link] [comments] |
Posted: 03 May 2019 08:13 PM PDT Hey, sorry if this seems completely dumb, I took some coding in highschool but sorta forget most things. I was wondering if someone could guide me or help in the direction of a quick site I wanted to make; Basically in this screenshot; http://prntscr.com/nk6grj [link] [comments] |
creating a reverse card in uno Posted: 03 May 2019 07:55 PM PDT I'm at the last stretch of my UNO project and my last issue is building a reverse functionality to my cards. In my head, I understand that I need to iterate from whatever position I am at in but how do I account for when it hits the 0th position and need to circle back to the top? and what what will happen if someone else puts a reverse card sometime after, and I need to reverse again? FULL CODE [link] [comments] |
Posted: 03 May 2019 04:07 PM PDT I recently started studying spring boot from a book and it showed using groovy scripts to deploy single file microservices using spring CLI. To get the spring CLI I needed to install SDKMAN first. What is this? Why is this developed and what problem does this solve? [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