What coding means to me... TLDR I’ve had a very sick child and coding is my escape! learn programming |
- What coding means to me... TLDR I’ve had a very sick child and coding is my escape!
- Just wondering how legitimate the statement in this video is
- Is Codecademy actually a worthwhile way to learn for beginners?
- How does one stay focused ?
- Looking to learn python?
- Product Manager here - looking to understand how to build out my technical knowledge
- GitHub users: What types of projects are good to showcase?
- Why not index instead of q.top()? (why not choose the matched ‘(‘ but the previous one?) [leetcode 32][dynamic programming]
- Trouble keeping a variable from a function output initialized
- Why doesn't the standard CS course teach students how to use a debugger?
- Data Structure in Python for Interview Training
- Making a virtual pet site - how to layer colours on images?
- How much is too much in terms of career scope?
- Where to start with backend
- Updating Fields in a Document Within A Document MongoDB
- Last tab in my tab bar throwing error when I try to close it
- Which platform to use for my application?
- MIPS Assembly Array Help
- A double free error in C, when I'm explicitly only calling free() once on the same pointer
- Is it okay to not understand all the code in a program as long as it works?
- Returning a Variable in a Thread C
- What language should I learn, what should I code?
- Using Visual Basic 2019 to create several triangles made of asterisks
- How to enclose a regex inside an if-else condition? [Please read description]
What coding means to me... TLDR I’ve had a very sick child and coding is my escape! Posted: 17 Sep 2020 08:42 AM PDT For some folks programming is just a hobby for others it's a good paying career and that's okay but it's those things and much more to me. It's my escape from life's claws in more ways than one. It's a financial escape for my family and myself or at least it will be once I land my first role as a dev. I grew up in an abusive home and everything was chaotic I was never taught to have any aspirations and never even thought about going to college. When I was a teenager I was much more likely to go to prison as I had turned to dealing as a means to support addictions. I was arrested four times before the age of 20! This left me with little social or hard skills that I could use in life without crime. By means of newfound religious beliefs I overcame the addiction and left my gang banging behind me. I was now a 20 something year old that had gotten married but had no skills to provide, we began having children. Working crappy jobs to provide as best as I could. Then the real trouble came. All in about a years time my wife slipped into a deep depression, I severely injured my lower back and to beat it all we had a handicapped baby! Our second child was diagnosed with Spina bifida and hydrocephalus. This was crushing, she had her first back surgery at about 10 hrs old. Over the next 9 months she would quit breathing twice and have brain, back and bladder surgeries. She's had five in total and is facing another now. Starting to realize my need to pick up skills to take off financial pressure. Because the pressures of life have just been to much I decided to try to learn how to code. At first it was out of pure motivation to make more money. But as I started to practice more and more it became an escape. I would log on freecodecamp and codecademy and forget about everything going on around me and fell in love with that! I guess I just enjoy the feeling of creating and and solving problems. I cannot get my little girl normal legs to walk, I wish I could. But I can buy her the handicap van she so desperately needs and a get us a decent home so she can not get stuck in the hallway in her wheelchair because it's so small. That's why I'm so passionate about programming! And I'm going to keep doing it until someone finally gives me a chance to do it professionally. I just honestly needed to get all of this off of my chest. Hopefully it encourages someone about to give up. Edit: Some have asked what my current skills are. So far I've managed HTML, Css, Bootstrap and Javascript and hope to learn React, node and sql soon. Since things have calmed down some I've started putting in 5 hrs a day. So hopefully I can progress quickly. I never expected such a response, thanks so much for the kind words everyone! [link] [comments] |
Just wondering how legitimate the statement in this video is Posted: 17 Sep 2020 11:38 PM PDT I was watching this video on youtube and the guy says if you want a job relatively quickly basically laser-focus on React and HTML, CSS, and JS. He even makes a point to say completely stay away from Python. I'm a beginner myself and I've been learning Python this summer but how true is this? I like Python and want to keep with it. I'm not totally sure what exactly I want to do but I'd like to have a job where I use python. Those of you with experience and careers, what do you think? [link] [comments] |
Is Codecademy actually a worthwhile way to learn for beginners? Posted: 17 Sep 2020 07:45 PM PDT I'm sure there are other posts like this and many opinions on Codecademy and other online courses out there, so forgive me if this is a little redundant. But I've been encountering many inadequacies with the structure of Codecademy's tutorials and the resources available on its site so I wanted to ask if anyone else has felt that it is lacking in terms of providing a valuable learning experience. Specifically, their solutions to exercises will utilize functions that appear in much earlier course modules that a novice may forget the purpose or syntax of. So I get that I can't blame the material itself because I can't remember it offhand, especially given that I've been working through it in a piecemeal approach while working full-time. And I'm happy to accept when I can't figure something out and check the solution to try to understand the logic. What frustrates me is when I see a function that I forgot existed but can't find the logic or syntax to it anywhere in the course's cheat sheets or practice packs. Obviously this leads to me worrying about all the functions which I don't know that I don't know and not having any means of learning them without clicking though each and every previous course module page. This might sound like a pretty petty complaint, but I paid for the Pro version under the impression that it would be a comprehensive learning experience. Obviously no online course is perfect, but I'm just wondering if anyone else encountered limitations in trying to primarily learn from scratch using Codecademy and if there are suggestions for resources that might augment the learning experience when going through their tutorials. Or even if there are other courses out there that are more comprehensive in terms of providing reference materials and explanations. [link] [comments] |
Posted: 17 Sep 2020 11:15 PM PDT So, I've been trying to learn programming for the past few months through Freecodecamp and cs50 , also trying to learn how to read the MDN web documents when I do not fully understand a particular aspect of C or JavaScript. I do plan to learn python later but my current goal is to finish cs50 then go back and finish the Freecodecamp JavaScript tutorials. At first when I started the JavaScript tutorials I felt that I was advancing at a steady pace but since finishing PSET3 of cs50 I feel that I've been slowing down from what I see as a lack of focus and a bit of discouragement that comes from overthinking the problems I encounter when writing code. A great example would be the cs50 pset4 (filter more) I could type up the pseudocode and I knew what I had to do but when it came down to actually writing the code I found myself overthinking aspects of the problem to the point of asking for help on the cs50 discord and for the most part the advice I was given had me thinking "wow , I knew that but why didn't I think of it !" I had two questions that I wanted to ask the programmers of reddit who happen to take the time to read this post.
If you took the time to read this I really appreciate it and I would be very grateful for any sort of advice! [link] [comments] |
Posted: 18 Sep 2020 12:00 AM PDT I created this repository: https://github.com/aceking007/Byte-Sized-Code that has well-documented beginner-friendly Jupyter notebooks on different topics in Python ranging from Basic Syntax, up to Regular Expressions and some other general use cases (working with Files and Directories). This is perfect for beginners as they can also download the notebooks and try out the different examples. More advanced programmers can use this as a reference/cheat sheet for different topics. Others are also welcome to contribute to the project and suggest any additional topics that can be worked on. This is an effort by me to create a community of people who will help each other in their journey of learning python. Do check it out. Let me know what you think!! [link] [comments] |
Product Manager here - looking to understand how to build out my technical knowledge Posted: 17 Sep 2020 11:30 PM PDT Hey all, I've been in product management for ~7 years. I've built a strong base of analytics, design, marketing and general soft skills. However, I feel like I have a gap I need to address on the technical side of things. I'm looking to build a more complete understanding of coding/languages, the software dev process, system designs/architecture, APIs, and just overall build a deeper understanding of some core technologies. Additionally, I want to build more empathy for software devs for two reasons 1, I work with them constantly and 2, in my current role, I build products for devs (hard to put myself in the shoes of a dev without fully understanding them). So, my question is - what concepts/technologies should I absolutely learn And are there suggestions on where to learn them? I've obviously considered online courses, a coding boot camp part time, and just general research online but I'm looking to take it a step further. Cheers. [link] [comments] |
GitHub users: What types of projects are good to showcase? Posted: 17 Sep 2020 09:30 AM PDT I'm a beginner learning to code in Java and I'm starting to create my first projects. I'm doing stuff like a BMI calculator and a Fahrenheit to Celsius temperature converter. Are these types of projects considered gauche to post on github? I understand what github is used for and how it functions, but I'm still a novice when it comes to what's considered standard practice and what sort of github use employers might be looking for. Is there a handy guide on github beyond its general use and definition? [link] [comments] |
Posted: 17 Sep 2020 11:06 PM PDT [link] [comments] |
Trouble keeping a variable from a function output initialized Posted: 17 Sep 2020 10:41 PM PDT I've researched, and can't seem to find a solution for my problem. Aside from the bug I noted in the title, feel free to shred my code and give me any feedback you may have, I have an internship coding in python coming up in a few months, so I need all the assistance I can get. [link] [comments] |
Why doesn't the standard CS course teach students how to use a debugger? Posted: 17 Sep 2020 10:37 PM PDT That would solve like 90% of the stupid bugs they post on here [link] [comments] |
Data Structure in Python for Interview Training Posted: 17 Sep 2020 08:24 PM PDT Hey guys, Hope all are doing well. I'm currently a graduate student in Financial Mathematics and a big part of quant interviews are coding challenges in Python. Luckily enough I was able to do good enough on my interviews to secure an internship but if it was for a full-time job I would totally fail. I want to train myself to become better at solving these challenges but I only have taken an introduction to C++ class and taught myself Python. Luckily for me, I'll be taking computing classes this year but it will be more data analysis and machine learning than a data structure and algorithm class. I wanted to know, other than solving problems on leetcode and hackerrank. What's a good resource to learn how to solve these problems in pythons. Or a data structure and algorithm class in python. Thank you! [link] [comments] |
Making a virtual pet site - how to layer colours on images? Posted: 17 Sep 2020 07:39 PM PDT I'm on the hunt for a side project and I'd really like to try a virtual pet breeding site - I was obsessed with them when I was younger and it sounds like a good challenge. The issue is I have NO idea how this one specific mechanic would work, and I don't think I'm googling the right things because I can't find any resources. I like the django framework the best (though I'm no expert) and I've done most of the general web building stuff before, but I'd really like to make the pets with hex colours that colour the images - so you could have something with a #FF54BE body colour for example. But how would I even begin to implement that visually? Is it possible to do something like that with django? I'm happy to use a new language if I need to, but I'd like to stick with it if possible. I'm 80% backend and I've only ever done pretty basic front end code so that might be a bit of a hurdle too. Does anybody have any advice? Or (hopefully) a resource to point to? Really anything would help - thank you! [link] [comments] |
How much is too much in terms of career scope? Posted: 17 Sep 2020 09:48 PM PDT So I've been wanting to learn programming or something to do with video game design. Mostly as a means to help my partner start their journey building a game. However, we need one of us to have a stable income. In order to accommodate both our needs, I've wanted to start a career in some sort of relevant field. I've never been too picky with where I get a job. I've done my gauntlet through various customer service positions and took a career college course funded by welfare for office administration and clerical training in an attempt to become more marketable to employers. I've held jobs in the field since and the scope of the work is too limited to keep me engaged and many still require an element of customer service which I vehemently want to avoid where possible. This brings up the question of how much I need to learn to be qualified to work in a tech-based position. I know different applications require different programming languages and not everything I can learn will be relevant depending on where I get hired. I have the most experience in data entry and wanted something that would utilise transferable skills, or something involving graphic design but I'm not sure if I'm aiming too big. My qualm here being learning languages I won't be able put into practice and that will crowd out useful information. To summarise: 1) What languages are useful to data entry? 2) What languages are useful to graphic design? 3) Is there enough overlap with video game development to make me relevant to my partner's project? [link] [comments] |
Posted: 17 Sep 2020 05:33 PM PDT Hi, I want to start learning backend and have no idea where to start. For the past few months I have been learning front end and I know html, css and js. I was thinking about learning React next or backend. So what is the best option for me? Thanks. [link] [comments] |
Updating Fields in a Document Within A Document MongoDB Posted: 18 Sep 2020 12:33 AM PDT So I have a collection of Users which contains an array of Forms, the Forms contain JSON. This is how the User document looks like for any individual: "enrolledEventID": [], "isOrganiser": true, "isAdmin": false, "forms": [ { "questions": [ { "questionType": "Text", "textInputLabelName": "asdsadsad" }, { "questionType": "Text", "textInputLabelName": "asdasdasdasd" } ], "id": "5f6070b5002a5249b050bd1e", "name": "Test Form 4", "dateCreated": "2020-09-15T07:43:49.389Z", "v": 0 }, { "questions": [ { "questionType": "Text", "textInputLabelName": "asdsadsad" }, { "questionType": "Text", "textInputLabelName": "asdasdasdasd" } ], "_id": "5f607140cd6faa39241f7c8a", "name": "Test Form 56", "dateCreated": "2020-09-15T07:46:08.012Z", "v": 0 }, { "questions": [ { "questionType": "Rating", "textInputQuestionTitle": "asdasdasd", "totalRating": 0 }, { "questionType": "Text", "textInputLabelName": "asdasdasdasd" }, { "questionType": "Text", "textInputLabelName": "asdasdasdasdasd" } ], "_id": "5f6315145e6c794e78bcce73", "name": "New Form", "dateCreated": "2020-09-17T07:49:40.307Z", "v": 0 }, { "questions": [ { "questionType": "Rating", "textInputQuestionTitle": "asdasdasdsadad", "totalRating": 0 } ], "_id": "5f6316895e6c794e78bcce74", "name": "New Formasdasdasd", "dateCreated": "2020-09-17T07:55:53.537Z", "v": 0 }, { "questions": [ { "questionType": "Text", "textInputLabelName": "asdsadsad" }, { "questionType": "Text", "textInputLabelName": "asdasdasdasd" } ], "_id": "5f632b0f12f05d5028c96942", "name": "Test Form 23232323", "dateCreated": "2020-09-17T09:23:27.137Z", "v": 0 } ], "_id": "5f587fbe9e7ed85b24d2bf4e", "fullname": "organizer", "email": "organizer@hotmail.com", "password": "$2a$10$QMRX9isfU7gbQe0JLTPjvuTSqRmKx5VOyYUpJFHzVlwjxQ1xivm5W", "_v": 0 } I'm trying to find out how to update the forms for a particular user, this is my code to do it but it doesn't change anything: MongoDB returns something like this: Which basically means it couldn't find the form matching the formID provided. So it means I am probably making some syntax errors somewhere here: I've read through a lot of documentation and still can't figure out how to get from User -> Forms -> _id(and the other fields). [link] [comments] |
Last tab in my tab bar throwing error when I try to close it Posted: 18 Sep 2020 12:26 AM PDT I'm trying to build some closable tabs in React. I'm using Material UI's basic tabs component and adding deletion functionality to it. Everything works except when I try to delete the last tab, it throws an error saying "TypeError: Cannot read property 'id' of undefined". Only the last tab does it, the other tabs close fine. When a tab closes, it automatically makes the tab next to it the active tab; however on the last tab there is no "next" tab - this is the problem. I know the error is coming from setState in the handleChange method, but I don't know how to fix it. Anyone able to spot the bug? Here is my Tabs component and this is what I pass into it [link] [comments] |
Which platform to use for my application? Posted: 18 Sep 2020 12:11 AM PDT A person has asked me to build an application for his place. It's supposed to run on his local servers, computers and LAN. The computers ie clients should fetch over some information over from the server. And all the processing should take place over the server. Now the problem is that he wants to be complete desktop application ie no webapps, which is a problem considering I have worked on webapps. Now I know how to code in all languages at an ok level, so I can pick up anything, but I need some suggestion on what to use? I first thought of dotnet but it doesn't have any server components I could directly connect via. So for right now I thinking of using electron + express/js , if there are any alternatives then a suggestion would be greatly appreciated. The person just wants an exe at the end of the day and doesn't care how it draws it views. So if there any other client + server combos I have missed, I would appreciate it if someone else suggested that. [link] [comments] |
Posted: 18 Sep 2020 12:00 AM PDT Hello, I am writing this post because I am having issue with MIPS assembly arrays, specifically with floating point arrays. The following program I am trying to write, has the user inputting the number of elements in each array and then reading in each of the elements. Then add up each individual array element, so if first array contains 1.0, 2.0 3.0. and the 2nd contains 4.0, 12.0 7.0. I'd want the output to be 5.0 14.0 10.0. I am not sure where I am going wrong in my code .data arr1: .text 400 arr2: .text 400 NL: .asciiz "\n" .text loop: la $a1, arr1 li $t2, 1 la $a3, arr2 li $t2, 1 loop1: la $a3, arr2 la $a1, arr1 li $t2, 1 addLoop: l.s $f1,0($a3) l.s $f2,0($a1) addiu $t3, $t3, 4 addiu $a1, $a1, 4 addi $t1, $t1, 1 ble $t2, $t1, addLoop This is what I am doing in my code. i believe I have a storage error but I could be wrong, if I input more than 3 elements per array then the addition fails and doesn't work properly. Feedback on this will be much appreciated. I literally have tried for hours now and I cannot figure it out. [link] [comments] |
A double free error in C, when I'm explicitly only calling free() once on the same pointer Posted: 17 Sep 2020 02:13 PM PDT TL;DR!!! First off, this is a link to a minimal runnable part of the program that represents the problem: https://pastebin.pl/view/0f69672c Hey, I have been struggling with this double free error for at least a couple of days now. I'm trying to make my simplified version of Blasteroids as my first relatively "large" project in C, and I specifically chose a game as my first project to practice doing my own 2D transformations without using a framework or a game engine for them. I've done a lot of research and debugged using Valgrind and GDB, and I could figure out that the problem happens exactly at lines 244-255, the only lines where I use the free() function. I also noticed that if the list has only one node, the error will be triggered as soon as this node as almost completely off-screen. However, when there are multiple nodes, it won't crash unless at some point, i.e., some of them are created and deleted without any problems or errors whatsoever, and I honestly don't know why. I understand that a double free error happens when you try the same memory location twice, and I can't really understand how that's happening here in my case. I also tried nulling currData after deleting it, and curr is already reassigned, but I still got the same error. I figured this won't change anything because both variables are already reassigned at some point in the loop, but I gave it a try anyway. The functions inside the code snippet should do as follows (only read this part if you already looked at the link and didn't understand something):
I created an infinite loop that will keep running the translate_asteroid() function to imitate the game loop, keep moving the asteroids, and work as if it's still inside the whole game. In the game I'm using Allegro 5 to handle the game-related functionality, but I'm not using it to handle the transformations. Note that this loop will terminate by itself now, because the program will exit at some point with a double free anyway, but if the problem is fixed, it will run until you press CTRL+C. I would appreciate any form of help with this snippet, even if it doesn't directly help with fixing the issue. I'm relatively new to C (only read Head First C and some docs for the tools and functions from the standard library I'm using, then attempted to create a project without following any tutorial or looking at other codebases). So, I'm open to any suggestions for improvement. Thanks in advance if you even read all of this, I really appreciate it! And I'm really sorry for making this that long. I'm trying to work on this too. [link] [comments] |
Is it okay to not understand all the code in a program as long as it works? Posted: 17 Sep 2020 11:21 PM PDT So, I'm doing CS50, and am at pset4. I already finished grayscale, but don't fully understand what each function does. I can understand what I'm suppose to do and why and how it works though. Is this an okay way of learning, of would it be better to try and understand what each individual function does? [link] [comments] |
Returning a Variable in a Thread C Posted: 17 Sep 2020 07:14 PM PDT So I am new to C but have been coding for 8 years. I have used pthread_create to make a thread that does some stuff then returns an integer. The integer is declared inside the thread. What can I do to pass the integer back to the main method since the thread's type must remain "void"? [link] [comments] |
What language should I learn, what should I code? Posted: 17 Sep 2020 07:10 PM PDT Hi, I'm fairly good with computers, and I'm able to make very basic scripts. I want to learn and commit myself to a language, or something. Something where I can maybe get a job out of it?, whilst being able to use it for myself, and have it help me with maybe coding basic Quality Of Life programs, or being able to tweak game and mod files so that they work the way I want them to, or allow me to fix certain aspects of mods to work with each other. Does anyone have a good language for a newb to start or some information on how to learn said language? Thank you very much. [link] [comments] |
Using Visual Basic 2019 to create several triangles made of asterisks Posted: 17 Sep 2020 10:51 PM PDT New programmer here, I have an assignment requiring that I make 4 triangles out of asterisks in Visual Basic utilizing nesting loops. I have no idea how to even start this. I've created pseudo code and road mapped it so far, but I'm not even sure how to translate that roadmap into VB language. It should look like the following: 1X XX XXX XXXX XXXXX 2XXXXX XXXX XXX XX X Triangles 3 and 4 are on the right side of the display box and require spaces to begin them, i cannot get reddit to display these appropriately. Now I understand that there should be several loops: outer loop (counting 1-5) inner loop 1 (the "x/star" loop where the loop counts 1 to <outer>, and the third loop where spaces are used to fill vacant spaces on triangles 2 and 4, however I don't know what language to use to do this. What I have tried: For row as integer = 1 to 5 For star as integer = 1 to row If star <=5 then Textbox1.appendText("x") Next row Textbox1.appendText(vbCrLf) Next row Textbox1.appendText(vbCrLf) Do while row <=5 Loop End class The code created multiple errors and flagged things with "string" and errors in the loop code. I can't even build the first triangle, which is beyond frustrating. I feel like I'll be able to do the other three if I can grasp the proper coding concept of the first one. If anyone can shed some light on this, I would greatly appreciate it. Specifics: the assignment requires that I use a textbox to display the triangles. I have set the box to multi-line with a vertical scroll, but I still cannot get the code to display anything. I am not allowed to utilize a "button" to display the code. I also must use <texboxname>.appendText() for x, space and vbcrlf. Edit: I keep getting BC30616 as an error code, telling me variable "row/star" hides a variable in an enclosed block. [link] [comments] |
How to enclose a regex inside an if-else condition? [Please read description] Posted: 17 Sep 2020 10:45 PM PDT I am extracting the available balance (in Indian Rupees) from text messages using this regex
But there are some messages without balance and this throws error in those cases. Is there a way to put the above regex inside an if else condition? Like, if this pattern is found, get the group 'balance' = <balance_amount> otherwise 'balance' = None? I have tried enclosing the above regex in an if-else condition but the balance just comes as None
Please help [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