How do you know if programming is not for you? learn programming |
- How do you know if programming is not for you?
- Just over a year into learning, and thought I'd share something that's helping me
- [C] Why does the location of variables produce different outcomes?
- BS Computer Science Curriculum
- Send keys method not recognized even after importing Selenium
- How can I use player info in my game?
- String optimization literature advice?
- My Ray Tracer's Rays Are Not Stopping Quick Enough
- How distant is the material I'm learning from in relation to real world projects?
- Can you help me solve this kata in a different way?
- I accidently clicked on the "don't show : 'choose a programming language'" in VSC and now I can't choose a programming language how do I undo this?
- Python: Dataframe with a column containing lists of numbers as strings
- Learning programming
- How to create a program out of two scripts - one in python one in CUDA-C
- A good book or information source on how the overall concepts of programming work, I feel like my knowledge crumbles the further I go into more complex programming concepts
- Programming in economics
- Does minecraft bedrock uses any game library like minecraft java does?
- Learning to build projects vs Leetcode
- Any Resource to Understand Fast Fourier transform? I want to Learn it for multiplying two large number.
How do you know if programming is not for you? Posted: 11 Jun 2021 07:29 AM PDT I think I'm too dumb for programming. This might be a stupid question, but how do you know if programming is not for you? I mean, one time we were tasked to create a project which is calculates the length of a call, it's gross cost, net cost, and tax. There were many more instructions but it was a very beginner program. It was to be written in C. I have no clue how to do it. I was not able to write the program. Somebody wrote the program from the ground up for me and I was able to pass the class. We're currently on a break right now, and i'm trying to gain experience by doing the Java MOOC by the University of Helsinki since Object-Oriented Programming is part of the course i'm currently taking (Information Technology). The class is in the next academic year. I'm only on the part 2 of the first half of the MOOC and I'm wondering if it is worth it finishing it and if programming is for somebody like me. [link] [comments] | |||||||||
Just over a year into learning, and thought I'd share something that's helping me Posted: 11 Jun 2021 08:30 AM PDT I've been learning for long enough that I have all, or at least most, of the tools I need to build software that has a genuine purpose. I've worked on a few things, and have actually managed to finish a surprising number of those - knowing that the software I'm writing will have a genuine use case is quite a strong motivator to keep going and finish the job. But finishing the job can only keep the motivation for so long when working on a larger project. What I've learned that really helps me persevere with the web app/tkinter gui/workflow script, is not sitting down to write a piece of software - it's a long process and especially if you are still learning and have to keep stopping to work out how the hell do I make this work, then that quickly becomes too much. Instead, I sit down at my computer with the intention of implementing a feature or two, or at the very least, gaining some headway on solving that bug that's shown up. Much like working your way through a course, each box ticked gets you closer to finishing, and you can celebrate the (many) little wins along the way. This probably seems obvious to a lot of people. But to me, at least, it wasn't immediately obvious. Frequent git commits have added upon this behaviour recently, leaving a trophy trail for me to peek at when I want. Anyway, I hope this helps someone who is learning and getting ready to start writing some ambitious code. Don't intimidate yourself with the scope of the entire project (although, it's probably also sensible to dive straight into writing a facebook clone or something), instead just focus on the next manageable piece of the puzzle. [link] [comments] | |||||||||
[C] Why does the location of variables produce different outcomes? Posted: 11 Jun 2021 08:44 AM PDT The goal of this program is to see if an entered number is a palindrome. It works fine as is, but when I move the variables length and reversedNumber to the top, under the variable enteredNumber it won't produce the correct answer.
For example, if I enter the number "2002", with the two variables in their current position, I will get the output "Your number IS a palindrome." If I move the variables up to underneath enteredNumber I will get the output "Your number is NOT a palindrome." Can someone explain to me why this happens? The two variables aren't being used before they are declared, so I have no idea why it wouldn't work.
[link] [comments] | |||||||||
BS Computer Science Curriculum Posted: 11 Jun 2021 09:22 AM PDT Hey, guys! I want to go to this college to study computer science so i decided to check their curriculum out. What do you guys think? Is it standard? Good? or is it nasty swampwater? I would really love some feedback and advice. <3 P.S. I crossed out some subjects that are no longer in the curriculum [link] [comments] | |||||||||
Send keys method not recognized even after importing Selenium Posted: 11 Jun 2021 08:52 AM PDT
I am trying to build a program that will automatically do a search for me on different websites. In this case i'm testing out a simple google. The search_box does not have a send_keys method available. It does not autofill when I type "send_keys" and not surprisingly there is no input. Wher did I go wrong? I have pip installed selenium and imported. [link] [comments] | |||||||||
How can I use player info in my game? Posted: 11 Jun 2021 07:06 AM PDT I wanna make a visual novel that uses your "personal info" in game (like the one in DDLC where monika calls u by your windows name) How do I obtain and use such info? (using renpy) [link] [comments] | |||||||||
String optimization literature advice? Posted: 11 Jun 2021 08:03 AM PDT Hello. I'm making a game engine and I encounter a problem that I don't understand how to optimize string allocation and usage. I can't just make a memory pool allocator for it because of its unknown size as I can do, for a type that doesn't allocate memory on the heap. I'd want to read a book written specially about strings and their features, like interning, sso, or might be anything else if there's any [link] [comments] | |||||||||
My Ray Tracer's Rays Are Not Stopping Quick Enough Posted: 11 Jun 2021 02:32 AM PDT Long post but I'd really appreciate any help! You don't have to read all the code, the important parts are the intro text and the first code block :) I built a ray tracer 3D engine. It uses rays to detect objects and paint them on the corresponding part of the player's POV. So far example, if the player shoots out 10 rays horizontally, for each of those horizontal rays, it will shoot out 10 rays vertically. So the player's POV screen will be divided into 100 squares, and each square will be rendered depending on the input from its corresponding ray. So the rays function like scanners that move and keep scanning the pixels they are moving through. If the ray detects an object, it will tell the rest of the program its detected an object and tell it the color as well so that it can render it on that part of the screen. And I'm using 3 different screens (The top view, front view, and side view) to determine the trajectory of the rays. The idea is that the ray will increment on all the views in a cycle. Only if it detects an object on all 3 views, does it mean that its truly detected an object and it will render it to the screen. Now here's the problem. I've programmed the rays to stop incrementing once it detects an object, otherwise it'll just keep moving through the object won't render the object. It seems to be following this mechanic, but its acting weird. If I just shoot out 1 ray, it stops when it detects an object. If I shoot out 2 rays, the first one seems to stop appropriately, but the 2nd one increments a little more beyond the first one's stopping point and then stops. When I add more rays, this behavior multiplies. It's like the stopping point of the rays keeps increasing. If I use enough rays, they start moving through the object. SC stands for scanner. TV is top-view, FV is front view and SV is side view. The scanner is being tracked on all views relative to its actual position. Every time a new ray is beamed, the scanner resets to the player's position and then shoots out. It will increment once on each view in a cycle. If it encounters a detection on all 3 views, that means its hit a 3D object and the ray needs to stop and move onto the next one. The functions incrementRayTopDownView and all the others ones take into account the angle of the horizontal ray and vertical ray, find the equation of the line based on those angles and then increment the scanner, and then scan the new position and return details about that including the position. So it actually does 2 things. It increments, scans and then returns the new position along with the scan data. Where is my program going wrong? I've created a helper functioin (the drawRayRepresentation) that creates a line to track how my scanners are moving. [link] [comments] | |||||||||
How distant is the material I'm learning from in relation to real world projects? Posted: 11 Jun 2021 04:58 AM PDT Hi there! I want to have this discussion because sometimes I feel a little bit lost... Or maybe I'm just have that problem of not feeling good enough? I don't know. I am mostly self taught full stack developer, without any professional experience yet. So my question is... How far is everything I learn from real world projects? The small to medium projects on companies or made by experienced freelancers. The materials in my case are crash courses on youtube, freecodecamp, odin, fullstackopen, etc... Am I learning something that is comum and really used in real projects or is everything simple and raw just to learn the tools or concepts, but in reality you would do everything completely different on a real project? I keep wondering where my skill situation is in relation to real development. Do I know enough Vue? React? APIs? Anyway... What you guys think? How "real" is all these materials? Maybe I'm just being paranoid. [link] [comments] | |||||||||
Can you help me solve this kata in a different way? Posted: 11 Jun 2021 04:35 AM PDT EDIT: C#... apologies array want to change way to find "No match" edit: apologies in advance, i cant highlight the code on mobile hi, so this kata searches through an array of strings, then if the letter is found, it prints it. If no words are found, then it prints "No match" only once at the end. currently, if u checked the code, the way I did this was, if no words were found, the counter will remains at int count = 0. my question is, do you know of any other way to do this? Specifically, i'm looking for a way to say: If words[0], words[1].... all the way to words[words.Length] are all empty or no match, then print "No match" at the end. preferably i wanted to use the .Contains() method but other solutions are good (since i'm still a beginner) tdlr: how can i write "No match" only once not using counter, and instead with something like: if words[0] to words[words.Length] are empty, null, false etc, then print "No match" once. TIA [link] [comments] | |||||||||
Posted: 11 Jun 2021 06:44 AM PDT I accidently clicked on the "don't show : 'choose a programming language'" in VSC and now I can't choose a programming language how do I undo this? [link] [comments] | |||||||||
Python: Dataframe with a column containing lists of numbers as strings Posted: 11 Jun 2021 02:29 AM PDT Hello! I have a dataset where a column for each row has a list (without brackets) of int numbers separated by commas and spaces, which are currently read as strings (linke in the 1st column of the following table) Is it possible to explain to Python that those actually are series of numbers ?
[link] [comments] | |||||||||
Posted: 11 Jun 2021 09:55 AM PDT So I tried my hand at a coding bootcamp, doing JavaScript got my butt handed to me. Now im trying python, its easier to understand. However I feel like maybe im not cut out for coding. I get faced with a paragraph for a project and I do one of two things. I completely go the opposite direction and over complicate things or im always looking at a solved code step by step inputing and not coming up with original ideaa. I Know what I should do but most of the time im putting it in the wrong spot or doing to much or not enough. I feel bad, I fell like im never going to know how to write my own code or program. Idk if I should just stop. Whenever I write code its never like the solved version. Any advice? [link] [comments] | |||||||||
How to create a program out of two scripts - one in python one in CUDA-C Posted: 11 Jun 2021 09:51 AM PDT Hi, as the title suggests, I'd like to know how to make a program out of two scripts I have written in Python and CUDA-C. They run sequentially - the Python script calculates the necessary files for execution which are then read into the CUDA-C program. It is a scientific program and I would like to use a .txt file to set simulation parameters at execution. It would be nice if I didn't have to recompile every time, though. Does anyone have some good resources for packaging various scripts into a single program? Thanks [link] [comments] | |||||||||
Posted: 11 Jun 2021 09:41 AM PDT I recently realized I'd like to work on AI and machine learning. Unlike most people, I struggle the most with the bare way programming works rather than the logic and math of it. To give an example, beginner books on programming are mostly about control flow, variables, data structures, etc. Pretty much the logic part involved in programming. I can solve exercises related to those topics relatively easily, but at the same time, I do those kinds of awkward mistakes such as trying to use pip on the python shell instead of the terminal. Another issue that I struggle with when learning a programming paradigm/new programming concept is that, unlike math where you simply can't stand on more complicated topics without having the appropriate background and where everything is traceable to the beginning, In programming I always(or at least in the books I've read) seem to start stepping on "floating knowledge" that I may or may not catch later on to fully understand something. E.g. If I start reading a java book where I'm introduced to OOP, I'll just have to accept concepts such as polymorphism, inheritance, etc. And if I really want to know how it works, I need to start from C until the point where I get to know structures, the preliminary idea of OOP. That's the thing that I find the most mind-numbing about learning how to program, working with ideas or statements without proving them to be true before. I mean, I totally get how they work, but I just can't internalize the concept, I can't think in that way without knowing the fundamentals. That's why I find that programming is often deceiving, I'm prone to think that I'm familiar with a new concept due to not having a deep understanding of it and I end up mixing the way programming languages or even paradigms work. More than often, I think that my understanding of programming is the same as that of most people towards electricity, I kind of know how to use it, but not a single idea of how it works. Summarizing it I feel that I can't pull off better projects due to my lack of knowledge on the internals of programming and the way that I feel about learning new programming concepts. I can't word this properly, but I have always felt that I'm good about the logic part of coding and not good at coding at all, so I gladly appreciate any recommendations that would point me in the right directions to internalize programming concepts and/or learn programming more linearly. [link] [comments] | |||||||||
Posted: 11 Jun 2021 05:54 AM PDT I apologize if this is the wrong subreddit to ask this. I'm currently pursuing a bachelor's in economics (planning to major in finance) and was wondering what languages I should learn to find a job later. I have been learning how to automate Excel using Python, but am struggling to think of what I Should do after. I've seen people say C++ is very important in the finance industry, but am not sure to what extent and what it's used for exactly (and if my time is better spent somewhere else). I would prefer to keep using Python since it's what I'm used to, but am very willing to learn new languages. Thanks! [link] [comments] | |||||||||
Does minecraft bedrock uses any game library like minecraft java does? Posted: 11 Jun 2021 09:19 AM PDT Helloo I want to know if minecraft bedrock uses any game library like minecraft java does(lwjgl). Are there any helpful tutorials for that? Thank you :) [link] [comments] | |||||||||
Learning to build projects vs Leetcode Posted: 11 Jun 2021 09:11 AM PDT Hello, I'm currently learning c sharp. I'm learning how to build a project for the first time. I'm struggling to get a grasp of bigger programs. I.e. going from a simple guest book console app to a console battleship lite game. It only uses basic classes and libraries. My question is though, how important is leetcode etc. The stuff I'm reading through is fairly new I.e. stack vs heap and use of basic arrays and lists. But when i look at leetcode, they seem to tackle different problems. I.e. reversing an int. Shall I just focus on the project building skill and planning first and then move on to leetcode? Leetcode is very intimidating as it deals with data structures and Algos that I haven't come across in my current learning yet? Am I not ready? [link] [comments] | |||||||||
Posted: 11 Jun 2021 08:53 AM PDT I was working on a project in C++. I needed to multiply two large numbers. Brute force method takes N2 time. I came to know Fast Fourier transform can be used in this case. I looked at few videos on FFT but they seemed very confusing. Majority of them focused on expansion of polynomials. Any resource where multiplication using that algorithm is explained would be very helpful. [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