- A (happy) update to "Audio engineer (no code knowledge), guaranteed a raise if I can configure an audio DSP program's code by November. Also my field is dying and I probably need a career shift LOL"
- IT WORKED!!!!!!! after putting aside coding for the last two weeks out of discouragement that my lack of knowledge, and the vicissitudes of social media that ended up with me posting multiple times about the problem I had without anyone responding I finally solved it!!!!
- Been in a python class all semester; still felt like I haven’t learned shit
- A coworker is who is getting his PHD in CS recommended learning Common Lisp to get really good at programming ?
- My first programming project: BrainDance
- I'm uneducated when it comes to math. Is Python still a wise language to learn?
- Red Black Tree Implementation using C++
- Is there faster way to learn other language after learning C?
- Problem Getting second conditional to render in React!
- Not getting expected output for data reading Java program
- Help needed with code for Python. Will anyone please debug my code?
- How do I start with creating a AI bot that I can converse with?
- College class is doing Greenfoot + Eclipse, Greenfoot portion comes with book, Eclipse doesn't. What beginner's eclipse guide would you recommend?
- Working on a brute force optimization problem (knapsack problem). Given a set of items, how do I create a list of all possible combinations?
- Learning C++ (beyond basics!) - suggest good projects to enhance myself
- Learning Web Development for the fourth time.
- Should i go on with Python?
- Digital logic
- Grub2 font change not working please help
- Anyone else here struggled with/are slow reading "Code" x Charles Petszold
- Finding mentorship in the tech industry
- importance of projects when learning to code?
- Building an online store and I need to change a price value of an option to a percentage of the total price. Can someone help?
- Real-World Open-Source Projects?
Posted: 10 Apr 2021 05:37 PM PDT Original Post from last year: https://old.reddit.com/r/learnprogramming/comments/dg0rei/audio_engineer_no_code_knowledge_guaranteed_a/ So thanks to some guidance I got in this subreddit, plus a non-profit called Merit America, I've succeeded in breaking into the industry and starting a new career path. I not only got the promotion and raise at the audio startup and have been working with them in a junior developer capacity, I've also been working for 5 months as an Angular/React/C# developer, and have been tutoring other people in Java in the evenings. I've tripled my income, have health insurance for the first time in my life, get to work remotely, and am looking at moving out of the place I've been stuck in for so long. I just wanted to express so much gratitude to this subreddit. When I posted, I wasn't even aware of the importance of Git, and was about 2-3 weeks into learning to code. Several members, namely /u/feelings_arent_facts , /u/captainAwesomePants , /u/AtomicSpectrum , and /u/random_passing_dude . A few others commented and messaged me who have since deleted their accounts, but they easily get just as much of my gratitude. I just wanted to post this as a thank you, and to encourage anyone else moving into this area. It's not been easy at all, and it came down to the wire (I overdrafted my bank account to pay my electric bill the day before I started as a junior dev). But thanks to so much of the information on this site, Merit America, and people who put free educational material out there, you've changed my life and the life of my kids and family. [link] [comments] |
Posted: 10 Apr 2021 09:40 PM PDT I wrote a small app on Python, but I run into a strange problem. No matter how hard I tried I could never get the tk.Checkbutton() method of Tkinter to work for me. I tried every method I could think of but was spinning in circles. I would always get as my .get() output the of the Variable state as off value. I tried it with strings, ints, and even booleans. I would always get off values as my output. The output for .get() when trying to print it also read as off value. I did not see that pattern that well at the time. And I just got hella discouraged. People in this reddit were not responding. But I blame that on the usually late hour I was posting at, or what not so I am not upset. I just thought oh well when the Corona Virus is over ill take classes on a brick and mortar building. I took another stab last night at one of the other issues I had been having, specifically getting Atom text editor to import my self defined Classes from one file to another. Turns out I just needed to follow the same way I did it on pychar., and I thought I needed to follow a form that resembled relative paths but I was doing it wrong. Anyway, I decided to continue looking at the problem. Tried multiple variations of my google searches. Tried a few other variations on my code, when I realized the patter that I mentioned earlier. And googled that idea. And it turns out that the reason I was getting that error was that weird bug that functioned but was not throwing any error messages was that I had created two tcl interpreters by running two tk.Tk() functions and two main loops. it was suggested to make the other page a TopLevel() method(?) widget and just do one main loop function. This is the Github to my project overall I am happy, excited, and looking forward to continue my self studies. [link] [comments] |
Been in a python class all semester; still felt like I haven’t learned shit Posted: 10 Apr 2021 04:04 AM PDT I am enrolled in a programming with python course at my uni, and I still feel like I don't know anything about programming, nor do I feel confident in my ability to write a program from scratch. Being able to program is important to me, but I've just hated the way this course has been taught and I've had little guidance or help. How can I teach myself effectively how to program; is it best done by enrolling in a boot camp or books? Any help is appreciated. [link] [comments] |
Posted: 10 Apr 2021 07:19 PM PDT One of my coworkers who is a brilliant guy told me after I get to a more advanced level of python I should pick up Common Lisp and C as my second and third language. He said learning these languages will increase my understanding of computer science and programming and I'll get better much quicker. After that every language should be easy to pickup. From those of you who have these languages under your belt, do you have an opinion on what he said? [link] [comments] |
My first programming project: BrainDance Posted: 10 Apr 2021 06:24 PM PDT Hi everybody, After 7 months of learning Javascript, I came up with this: [link] [comments] |
I'm uneducated when it comes to math. Is Python still a wise language to learn? Posted: 10 Apr 2021 02:38 PM PDT I never paid attention in school but I've been learning a lot on my own for the last few years, feeling much more confident about my own abilities. But I am thoroughly uneducated in all maths. Python automation and even machine learning fascinates me to no end, but I hear that Python is by far the most math in programming, especially machine learning, so I'm a bit intimidated. I am going to be taking Khan Academy courses on math to brush up on everything I've forgotten but I'd like to clarify: At the least, can I automate/use Python at a beginner/novice level without having to get too crazy into math? Or should I be choosing a different language all together here? edit: I actually prefer hardware over software and I already have a career lined up, so I'm just learning for my own understanding in hopes it can help me in the future with projects. I'd like to be as proficient as I can [link] [comments] |
Red Black Tree Implementation using C++ Posted: 10 Apr 2021 11:17 PM PDT Maybe the most clear implementation of Red-Black Tree using C++. Red–black tree is a high level self-balancing binary search tree. The time complexity of "insert","delete","search" are all stable O(logN). See here for code : https://github.com/Dynmi/RedBlackTree [link] [comments] |
Is there faster way to learn other language after learning C? Posted: 10 Apr 2021 05:47 AM PDT I have learned all the basics in C, I want to learn python but all the youtube video seems to explain all the basics I just learn the syntax and I know how things works. Its feels so boring watching videos [link] [comments] |
Problem Getting second conditional to render in React! Posted: 10 Apr 2021 08:50 PM PDT I am creating an app that calculates cookie things. It's for a school assignment. I have been in python but they are throwing react at us this week :(I had everything working, but had to compartmentalize everything into functions. The one I am having trouble with is supossed to handle my report. It should render the report if the event handler function for my form has been triggered, otherwise point to my function for displaying a message if the report is empty.I have got it to display the report when I use the form, but I can't get it to display the message when there is no report. I have tried this a few different ways from google, including just hard coding it, but I need that message to disappear when the form is used.Here is what I have for the handle function: Here is the code I have so far: https://codesandbox.io/s/objective-borg-lk6cq?fontsize=14&hidenavigation=1&theme=dark [link] [comments] |
Not getting expected output for data reading Java program Posted: 10 Apr 2021 06:27 PM PDT Hello again, thought I had this program in the bag, but the output isn't coming out right, i.e. I call the menu option for student addresses only and then I am returned a list of last names? output: student_info.txt: thanks in advance! [link] [comments] |
Help needed with code for Python. Will anyone please debug my code? Posted: 11 Apr 2021 12:17 AM PDT (1) Prompt the user to enter a string of their choosing. Store the text in a string. Output the string. (1 pt) Ex: (2) Implement a print_menu() function, which has a string as a parameter, outputs a menu of user options for analyzing/editing the string, and returns the user's entered menu option and the sample text string (which can be edited inside the print_menu() function). Each option is represented by a single character. If an invalid character is entered, continue to prompt for a valid choice. Hint: Implement the Quit menu option before implementing other options. Call print_menu() in the main section of your code. Continue to call print_menu() until the user enters q to Quit. (3 pts) Ex: (3) Implement the get_num_of_non_WS_characters() function. get_num_of_non_WS_characters() has a string parameter and returns the number of characters in the string, excluding all whitespace. Call get_num_of_non_WS_characters() in the print_menu() function. (4 pts) Ex: (4) Implement the get_num_of_words() function. get_num_of_words() has a string parameter and returns the number of words in the string. Hint: Words end when a space is reached except for the last word in a sentence. Call get_num_of_words() in the print_menu() function. (3 pts) Ex: (5) Implement the fix_capitalization() function. fix_capitalization() has a string parameter and returns an updated string, where lowercase letters at the beginning of sentences are replaced with uppercase letters. fix_capitalization() also returns the number of letters that have been capitalized. Call fix_capitalization() in the print_menu() function, and then output the the edited string followed by the number of letters capitalized. Hint 1: Look up and use Python functions .islower() and .upper() to complete this task. Hint 2: Create an empty string and use string concatenation to make edits to the string. (3 pts) Ex: (6) Implement the replace_punctuation() function. replace_punctuation() has a string parameter and two keyword argument parameters exclamation_count and semicolon_count. replace_punctuation() updates the string by replacing each exclamation point (!) character with a period (.) and each semicolon (;) character with a comma (,). replace_punctuation() also counts the number of times each character is replaced and outputs those counts. Lastly, replace_punctuation() returns the updated string. Call replace_punctuation() in the print_menu() function, and then output the edited string. (3 pts) Ex: (7) Implement the shorten_space() function. shorten_space() has a string parameter and updates the string by replacing all sequences of 2 or more spaces with a single space. shorten_space() returns the string. Call shorten_space() in the print_menu() function, and then output the edited string. Hint: Look up and use Python function .isspace(). (3 pt) Ex: #method to print menu & handle user choice def print_menu(input_str): #printing menu print('MENU') print('c - Number of non-whitespace characters') print('w - Number of words') print('f - Fix capitalization') print('r - Replace punctuation') print('s - Shorten spaces') print('q - Quit\n') #getting choice choice=input('Choose an option: ') #identifying choice if choice=='c': #displaying number of non white space chars in input_str print('Number of non-whitespace characters:',get_num_of_non_WS_characters(input_str)) elif choice=='w': #displaying number of words in input_str print('Number of words:',get_num_of_words(input_str)) elif choice=='f': #fixing capitalization and getting updated string and count of values capitalized input_str,count=fix_capilization(input_str) #displaying results print('Number of letters capitalized:',count) print('Edited text:',input_str) elif choice=='r': #replacing punctuation, displaying updated text input_str=replace_punctuation(input_str) print('Edited text:', input_str) elif choice=='s': #shortening spaces and displaying updated text input_str = shorten_space(input_str) print('Edited text:', input_str) #returning choice and input_str return choice,input_str #returns the number of non white space chars in input_str def get_num_of_non_WS_characters(input_str): count=0 #looping through each character in input_str for i in input_str: if not i.isspace(): #i is not a space count+=1 return count #returns the number of words in input_str def get_num_of_words(input_str): #splitting words into list of tokens by space words=input_str.split(' ') count=0 #counting all non empty strings in words list for i in words: if len(i)>0: count+=1 return count #method to fix capitalization and return updated string and count of letters updated def fix_capilization(input_str): count=0 beginning=True #starting letter should be capitalized result='' for i in input_str: if beginning and i.isalpha(): #start of a sentence and i is alphabetic if i.islower(): #converting i to upper case, incrementing count i=i.upper() count+=1 result+=i #not start of a sentence beginning=False elif i in '?.!': #i is either ? or . or !, next letter should be capitalized beginning=True result+=i else: #any other character result+=i return result,count #method to replace exclamation and semicolons with period and comma respectively def replace_punctuation(input_str,exclamationCount =0,semicolonCount=0): result='' for i in input_str: if i=='!': i='.' exclamationCount+=1 elif i==';': i=',' semicolonCount+=1 result+=i print('Punctuation replaced') #displaying replaced values counts print('exclamationCount:',exclamationCount) print('semicolonCount:',semicolonCount) return result #removes all double or more spaces in input_str def shorten_space(input_str): input_str=input_str.strip() result='' prev=None for i in input_str: if prev==None: result+=i elif i==' ': if prev != ' ': result+=i else: result+=i prev=i return result if __name__ == '__main__': input_str=input('Enter a sample text:\n') print('\nYou entered:',input_str) choice=' ' while choice!='q': choice,input_str=print_menu(input_str) Error Message : Traceback (most recent call last): File "main.py", line 123, in <module> choice,input_str=print_menu(input_str) File "main.py", line 12, in print_menu choice=input('Choose an option: ') EOFError: EOF when reading a line [link] [comments] |
How do I start with creating a AI bot that I can converse with? Posted: 10 Apr 2021 08:30 PM PDT Anyone know where I can start? I think it would be a really cool project, I've been programming for 3 years now and i want to use python but dont know where to start. Please help guys [link] [comments] |
Posted: 10 Apr 2021 08:15 PM PDT I need help, I'm doing well in my Greenfoot since I have a general idea to go off of, but Eclipse? I did decent in C++, but Java is completely different. Need help? [link] [comments] |
Posted: 10 Apr 2021 11:21 PM PDT Working on a knapsack problem. Given a set of items - items have a value, a weight, and they come in pairs. My goal is to find the optimal combination of items, that maximize value, given you can only hold a certain amount of weight. And lets say instead of the items being independent they come in pairs, and you can only pick one from each pair. And lets say you have to take an exact amount of items, lets say 5, no more or less. So lets say there are a set of items, they come in pairs, you want to maximize value, you have to pick 5, it has to be under a certain weight, and the items come in pairs that you can only pick one from each pair. My first goal is to just generate the list of all possible combinations of items, before I apply the constraints. So lets say we have an item set like this: (each with weights and values, but we ignore that for now) 1A 1B 2A 2B 3A 3B 4A 4B 5A 5B 6A 6B 7A 7B You wouldn't be allowed to take 1A and 1B, you're only allowed to pick one of them. How would I create a set of all possible 5 length combination of items? I feel like maybe I would use a binary tree? I've never worked with trees before, but I remember watching a youtube video a while back. I feel like that would make sense since each selection is a binary selection, two choices. Like maybe start at the top, and going left means you take A, and going right means you take B. So if I started at 1 and went left, I would take 1A, then go left, and take 2A, then I go left again, add 3A, but if I went right, then I would add 4B etc. Would this be the best way to do it? Maybe there is an easier way. I feel like it would be easier to create literally every possible combination and then check if the length is 5. But I feel like doing it that way would be bad because if there was a large list of items, were talking a shit-ton of total combinations and it might take hours/days for the computer to work out all the combinations My current goal is to just create a list of all 5 possible combinations given a set of items like that. Then after that I will work on the other constraints, but current goal is to just create the list. Apologies for such a long winded problem, lol, I'm sure most people will gloss over this giant wall, but Any help would be appreciated on the best approach to solve, or any resources that would help me figure this out would be great also. Thanks [link] [comments] |
Learning C++ (beyond basics!) - suggest good projects to enhance myself Posted: 10 Apr 2021 10:59 PM PDT Hi, I recently finished C++17 fundamentals; I understood the concepts of pointers, ref, const * const, class, struct. But Im looking for some projects I should start working on so to make sure what I understood can take to next level. I have planed days to learn STL and std lib. After working hours I learn C++, I also learn Flutter/Dart in past months. But I'm now committed to C++. I have no agent of learning C++ for any specific reason, but just so that I can learn a low level language. I'm a professional JavaScript developer, the reason I'm telling my understanding of C++ is just limited to Basics, I trying evaluate things based on Node.js projects. So also please guide me what C++ is best at and what should I start learning, and coding. [link] [comments] |
Learning Web Development for the fourth time. Posted: 10 Apr 2021 10:19 AM PDT I am an Electronics Engineering student but I mostly practice programming. Recently I got an internship for a software role which will begin in a few months. But, apart from DS algo I have no programming experience. I have tried to learn Web Development several times but always give up within a few days. I feel that I won't be able to perform good at the internship and even might get in terminated. I find development much harder than DS and Algorithms. How should I start with web dev this time and not give up? Please help. [link] [comments] |
Posted: 10 Apr 2021 12:14 PM PDT Hi y'all, I'm a first year chemical engineering student. We have an introductory Python course in our curriculum, and no further courses related to programming. However, since i've started taking this course, i've figured out that programming is definitely something i want to learn thoroughly. The idea of being able to create a software and design it to the smallest detail is so intriguing to me. But as i said, i will be majoring in chemical engineering. So i have a few questions: Do you think it would be a good combo if i continue and specialize in Python + become a ChE, or would it be a waste of time? Also, is it possible to actually 'specialize' through self-learning and how long would it take? Can programming be done as a side-job on one's own? (The list goes on but i need to stop :') I hope it was clear enough because i have a lot of crazy questions like these in my head and i'm confused. So ANY advice will be well-appreciated. Thanks in advance. :) [link] [comments] |
Posted: 10 Apr 2021 09:25 PM PDT I've heard of the 'end carry' and 'end around carry' and I've still been confused with meaning of both of it. For now i read the docs refer to subtraction with complement. Anyone can explain it in plain detail. Thanks [link] [comments] |
Grub2 font change not working please help Posted: 10 Apr 2021 08:56 PM PDT I'm running Fedora 33, grub 2.04 in efi. But nothing is changing. I followed the following steps: Choose a font, in this example I chose DejaVuSansMono.ttf Convert the font in a format GRUB understands: sudo grub2-mkfont -s 14 -o /boot/grub2/DejaVuSansMono.pf2 /usr/share/fonts/dejavu/DejaVuSansMono.ttf Edit the /etc/default/grub file adding a line: GRUB_FONT=/boot/grub2/DejaVuSansMono.pf2 Update GRUB configuration with: EFI: sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg reboot. [link] [comments] |
Anyone else here struggled with/are slow reading "Code" x Charles Petszold Posted: 10 Apr 2021 08:54 PM PDT I just started teaching myself or learning programming/about computers during the fall. I picked up the book "Code: The Hidden Language of Computer Hardware and Software" a few months ago, but I feel like I'm getting slower in reading the book after each page I flip. I'm about to finish my first semester in university (studying computer engineering but not even dealing w/ hardware yet), and I just feel incredibly stupid reading this book. I'd stop reading it and then pick it up again after a few weeks because I'm bothered by the fact that I can't fully grasp what it's explaining. I'm more discouraged by the fact that many people say that this book is supposed to be simple and easy to follow for the avg person. [link] [comments] |
Finding mentorship in the tech industry Posted: 10 Apr 2021 02:50 PM PDT Hello fellow programmers, I'm a relatively junior level engineer (2.5 years of industry experience after a 4 year undergrad degree) and would consider myself to be an okay programmer. I want to become top class and I know there's a lot of fundamentals that I'm missing which I'm working on picking up through internet and book resources. At the same time, I have heard from a lot of sources that finding a mentor can help to accelerate the process of becoming a high achiever in any field. While knowing this intellectually, I've found the actual mechanics of finding a mentor in the industry to be difficult. Do I just go up to a senior engineer and say, "Hey nice code! Can you show me how you thought of that"? Do I just try to produce really high quality work and attempt to get that noticed by higher level engineers? Not only that, but it can be hard to even spot the top class engineers or companies at which they're working. Would love to hear from others if they've been able to secure mentorship from someone, how they did it and how it has materially impacted their skills. [link] [comments] |
importance of projects when learning to code? Posted: 10 Apr 2021 02:46 PM PDT i'm learning to code and it appears that doing beginner projects at home might be the most effective way to learn. is this true in your opinion or am i wasting time by focusing on projects? [link] [comments] |
Posted: 10 Apr 2021 08:40 PM PDT https://neon123123.myshopify.com/products/custom-neon-sign?variant=39498003972282 password: flilye Click on "personalize it" to get to the option I'm talking about. I need to make the "RGB", and "Gradient" checkboxes to increase the total price by 75%, and 150% respectively. I simply tried changing the value to 75%, but it still only increases the price by a flat-rate of 75$. So it's not as simple as I thought. Anyone with experience know how I can do this? Any input at all is greatly appreciated... Thanks so much, [link] [comments] |
Real-World Open-Source Projects? Posted: 10 Apr 2021 08:33 PM PDT Hello. I'm an intermediate Python/Java (little bit of JS too) programmer. I find it hard to start/work on projects that I'm only doing for the sake of practice or have no real world purpose. On the contrary, if I'm working on a project that's actually going to be beneficial to me or others, I can easily sit down at a computer for 10+ hours. Before I can get started doing freelance or get a job, I need to build up a resume of strong projects. As I said, I find it difficult to make a project simply for the sake of making projects. Is there any place where I can find open source projects or other real-world projects that I can contribute to? I'm happy to work for free. Thanks. [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