Dopamine learn programming |
- Dopamine
- I have solved about 500 Leetcode questions...
- I'm 25, going back to school to become a software engineer. How can I best prepare?
- Does this code look decent and follow the best practices for coding in python? Is there anything that stands out as being completely wrong (readability wise, inefficiency, etc)
- I can't type like this, help
- How much do fresh graduates earn on their first jobs?
- Floating-Point in C++
- What should learn first before I look up the "Plumber" Package from R?
- I clicked something by accident on CLION and all the menus are gone
- Is QBASIC still used? What's a language that I should learn for program(s) I want to write?
- I want to learn computer science
- VSCode personalization
- Are there any books you guys would recommend to learn about programming without a computer?
- How to cout from txt file?
- Silicon Valley algorithm
- Best Books for Learning C# .NET
- Need help creating a workable function in Python.
- Been building with vanilla JS is it time to learn React?
- How to develop the next amazing social network?
- Where should I store my refresh/access token?
- Online study groups for MOOCs/Online courses?
- run @pytest.fixtures during debugging?
- Data Scraping Help - How do I get the data from the following pages?
- Correct way to pass a struct array that will get reallocked inside a function? (C)
Posted: 11 Apr 2021 12:09 PM PDT So recently I came to conclusion that we are constantly stimulated with media, music other distractions that makes it harder to focus and learn programming or anything at all. I remember that time I had pretty much 0 entertainment no media, no music, limited ability to go out somewhere or talk with someone. After a week or so I found a c++ book, I had attempted learning c++ before, but it didn't make sense, but this time it was different, it was my only source of entertainment, the only escape from reality and learning c++ was just as enjoyable as watching a great movie or listening to music. I hope this will help someone [link] [comments] |
I have solved about 500 Leetcode questions... Posted: 11 Apr 2021 01:46 PM PDT ...and I honestly think it's much more useful than people are willing to admit. For context, I am a self-taught developer, no degree nor bootcamps, I have started my first and current job as a software developer for a fintech company in my country 6 months ago, and I have to admit that without working hard on Leetcode I would have never passed the technical interview. But that is obvious, the platform is intended for you to prepare for coding interviews, the thing that surprised me, especially after reading so many negative opinions, is that many skills and mindsets that I have learned while grinding have been very applicable to my job as well and I have written an article discussing them in detail. Short summary for those who don't care or don't like medium: 1) Data structures and algorithms are super important and come up more often than you would expect, inefficient code can cause huge problems and I have experienced them already. 2) There is an absurd amount of knowledge on the internet and everybody with experience in programming knows it, but too often people accept good enough solutions when they could benefit from going deeper and trying to learn from others. 3) Edge cases and unforeseen inputs can mess up your application, Leetcode teaches you to keep as much as possible into account and consider restraints. 4) You are bound to suck at something when you start but it's normal, as long as you keep being consistent you are gonna improve, initially I couldn't even solve easy questions but I kept going and got better. 5) You should spend more time thinking before coding, it's gonna save you time in the long run. This is not to say that Leetcode is great or whatnot, it's just a tool that people use to improve their interviewing skills, but if you are forced to use it you might as well make the most of it. [link] [comments] |
I'm 25, going back to school to become a software engineer. How can I best prepare? Posted: 11 Apr 2021 09:03 PM PDT I'm at a point in my life where I am ready to move on from the service industry, just scraping by and not really doing anything of real value to myself or my family. I was always good in school, but mathematics was never my strong suit necessarily. I took a dual credit calculus class in high school but I barely remember advanced algebra let alone precalculus or beyond. I am determined to do what it takes to learn again, though. I've enrolled in a regional community college (Southwestern Illinois College) with the intent of moving on to university in the st louis area. My question is, what should I be doing to prepare? I'm itching to get started and I tend to learn much better with a fundamental grasp of what I'm learning about, if that makes sense. I've been reviewing algebra on khan academy as a start. Any advice is appreciated. [link] [comments] |
Posted: 11 Apr 2021 10:13 PM PDT This is a sliding tile puzzle game that takes a picture (optionally) and turns it into a 4x4 sliding puzzle game (about 600x600 pixels so it might be small on high res displays). I haven't implemented a "congrats, you won" screen but I can do that later. I recently got serious about learning how to code, and decided I would make a sliding puzzle game. This is my 3rd project, my other two are not too great (a text editor and a very incomplete drawing app), but I actually really like this one. I did look at a video for inspiration on how to do some things but I made sure not to look at it while coding so I wouldn't just plagiarize it. It was also supposed to be a lot more customizable than it ended up being, I am not sure if that resulted in my classes being overloaded with instance attributes but oh well. I think I've made sure that my code is reasonably good, I still want to add more to it but before I do I want to make sure that I am heading in the right direction. Is there anything that pops out as being very inefficient that I should take a look at before I try to add anything else? I have read a lot that having global variables is a bad thing. I created my game related objects (surfaces, buttons, etc) on the outside of the class that handles my game states and then used them in methods in the class, does this count as a bad practice? How would I improve it then? Is there anything else that might be wrong that I didn't think about? I do know of one minor bug. In order to avoid making a file browser from scratch I used a tkinter file dialogue. This takes input focus away from pygame and it can be annoying to have to click the window to regain focus. I can figure this out later but if anyone has any ideas feel free to share. [link] [comments] |
Posted: 12 Apr 2021 12:29 AM PDT I want to type with usual "|" style, not like "_" style. What is this setting called? [link] [comments] |
How much do fresh graduates earn on their first jobs? Posted: 12 Apr 2021 12:25 AM PDT Particularly In the US/EU, If I recently graduated in CS, how much can I expect to earn for my first job as a software developer/web developer/Data scientist or in any other relevant field? [link] [comments] |
Posted: 11 Apr 2021 10:08 PM PDT What's the difference between a floating-point literal and a floating-point number in C++? [link] [comments] |
What should learn first before I look up the "Plumber" Package from R? Posted: 11 Apr 2021 11:52 PM PDT I am fairly new to R itself, I do not know much about networking, I have read some parts on how Web APIs work. Is there anything else to keep in mind before getting into "Plumber" ? [link] [comments] |
I clicked something by accident on CLION and all the menus are gone Posted: 11 Apr 2021 11:51 PM PDT All the menus are gone and I can't post the image here so here's a link with the image: https://ibb.co/Xj70TH0 [link] [comments] |
Is QBASIC still used? What's a language that I should learn for program(s) I want to write? Posted: 11 Apr 2021 11:34 PM PDT My background: I learn some rudimentary programming decades ago. I am pretty well versed in programming in BASIC and by extension, QBASIC. But I haven't touch programming languages in decades. Problem: I am interested in writing some programs and subroutines that does some real world simulated randomization (not just random number generator). Also, I want my program to basically advice the user on decisions based on a set Table (a bunch of if/then statements based on values on a Table in the database). And some simple subroutines to keep track of progress/scores etc. Now I am confident that I can write the "decision/thinking processes" in BASIC/QBASIC as tedious and long as the codes might get. But in the end, even with a compiler, I would only have a DOS program. It is definitely usable but I think the audience will be a very tiny pool of people. So if I want to make this program more universal, I will need to code it with something that modern computers/phones can use (like a GUI). So what language should I use to do this? Also, would the "code logic" that I know from BASIC be reusable. And how difficult is it to learn the new languages? Sorry if this is the wrong subreddit. I am just looking for help and advice if I should even spend more time finishing a working version under BASIC/QBASIC first. Or should I just start learning and coding in a new language. [link] [comments] |
I want to learn computer science Posted: 11 Apr 2021 09:11 PM PDT Hiya, I want to learn a computer science degree. I don't want to go to university, I am going to learn it on my own. Does anyone have a list of textbooks I should get hold of, and also past exam papers so that I can test my knowledge as if I was studying through an institution? Regards Paul [link] [comments] |
Posted: 11 Apr 2021 11:08 PM PDT How can I personalize my VS Code? Also any interesting packages or extensions? [link] [comments] |
Are there any books you guys would recommend to learn about programming without a computer? Posted: 11 Apr 2021 06:54 PM PDT It sounds pretty dumb, but I won't be able to use a computer until i get to uni next year but I really want to learn programming to prepare. If you guys have any books to recommend just for me to get a basic understanding of it that would be nice. Edit: Preferably Python, but any language would be fine. [link] [comments] |
Posted: 11 Apr 2021 10:06 PM PDT It's a register system read from txt file and I don't want to cout all the data from the txt file. Only that particular person who log in. This is the input : I dont want to cout the password. any idea how to skipped that part? I use the method below but it can't skipped. [link] [comments] |
Posted: 11 Apr 2021 07:40 PM PDT I was recently watching Silicon Valley and wondered if anyone can explain to me the concept of a data reduction algorithm like how it works and why is it so valuable [link] [comments] |
Best Books for Learning C# .NET Posted: 11 Apr 2021 04:23 PM PDT Hi, I have worked as a full stack software engineer for 3 years now. I have experience with a number of languages that include python, javascript, sql, php and a few more. I'm really wanting to learn C# and .NET though. I've started a few Udemy courses and YouTube channels but to be honest, I get pretty sick of looking at my screen at night when I've looked at it all day. I'd love some recommendations for books that could help me learn while taking a break from the screen. Of course I'll learn by doing as well but it would be nice to get a break from the screen. [link] [comments] |
Need help creating a workable function in Python. Posted: 12 Apr 2021 12:40 AM PDT Thing to do : 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. This is what I did : def fix_capitalization(input_str): input_str = input.capitalize() for i in len(input_str): if input_str[i]== '.': a = 1 f = 0 string = '' if input_str[i+a].isalpha() == 'True': input_str[i+a] = input_str[i+a].upper() string = string + input f +=1 else: string = string + input[i+a] a +=1 else: string = string + print string Can you please create a workable function? [link] [comments] |
Been building with vanilla JS is it time to learn React? Posted: 12 Apr 2021 12:28 AM PDT Hey, I am at a bit of a crossroads. I've spent about 5-6 months teaching myself webdev by building a passion project. frontend has been vanilla JavaScript with a bit of jquery and backend has been Django. I am managing to get everything I need built and am now conceptually comfortable with JavaScript enough to understand that learning react would be helpful in terms of building and reusing things across my website. Also react native sounds awesome, so two birds with one stone. My question is: if my entire app is so far built with vanilla JavaScript is it going to be hard to begin introducing react? What would be the best way of dripping some react in? Where would one start? Also could someone explain how react works with AJAX calls? I have quite a few and they were painful to build (at the backend part mainly, using django rest framework). So I'm worried about messing everything up by trying to start transitioning to react. Thanks I'm advance! [link] [comments] |
How to develop the next amazing social network? Posted: 12 Apr 2021 12:18 AM PDT I've been out of hard core software development for some time and the last framework/architecture I've used was LAMP. (I also have a lot of Java experience). I wanted to code more and thought I would create a side project of a social network to learn the latest tech. I would appreciate pointers / advice of what tech to look at, or online courses, examples, etc (My title of 'the next amazing social network' is just a factious joke - I'm just looking to sharpen my developer skills) [link] [comments] |
Where should I store my refresh/access token? Posted: 11 Apr 2021 11:28 PM PDT Is storing my access in local storage and refresh in a httponly cookie the way to go? Or is there a better way? [link] [comments] |
Online study groups for MOOCs/Online courses? Posted: 11 Apr 2021 01:49 PM PDT Hey, I was wondering if there is a platform where people learning/doing the same MOOC or online course could connect with each other online and then do the course together? It's just that doing a course alone can at times become a bit tedious or lonely. Connecting with other people could really help. [link] [comments] |
run @pytest.fixtures during debugging? Posted: 11 Apr 2021 10:26 PM PDT my process rn is: write test as a using if statements to dissect the returned data before converting to assert and finalizing the test. Now i'm trying to use fixtures but I can't be sure the fixtures are working properly and debug the test b/c I don't how to call the fixture while i'm running the code in debug mode. how can I do this? example: i'd like to run the above in debugging and make sure i'm getting the expected values from the fixture and through other functions. [link] [comments] |
Data Scraping Help - How do I get the data from the following pages? Posted: 11 Apr 2021 09:57 PM PDT Hi, I require the data available publicly at the following webpages. Can anyone guide on quickest way to do it? [link] [comments] |
Correct way to pass a struct array that will get reallocked inside a function? (C) Posted: 11 Apr 2021 09:55 PM PDT I have a typedeffed struct that contains ints and char arrays. It starts at 10 elements and grows as needed. In order to do this, I pass the address of the pointer. But I still get segfaults when trying to assign values. Hints? The code mainly looks like this: typedef { variables} data_s; int index = 0; int arraylength = 10; main () { data_s* array = malloc(sizeof (data_s)*arraylength); (A data 2 s is also malloced in a similar way for other uses) loop (read a database and get a struct, order_s, each iteration) { ....processOrder(&data_s, &data_2_s, &order_s) } } void processOrder(data_s ** data_s, data_2_s **data_2_s, order_s* ord) { if (index+1>arraylength) { realloc; //irrelevant because the code crashes before it reaches this } memcpy(&array[index]->attributeName,&ord->attributeName,10); //crashes on my second run through index++; } Any idea what I'm doing wrong? The realloc is most likely OK because the program doesn't break when I comment out my memcpy and my debug printfs tell me I realloc safely from 10 elements to like 60,000. My code crashes when index 2 is written to. Please note that there's a lot more code, so I do use data_2_s, but right now I have that portion of the code gated with a return. I am using a struct ** format so that my address returns properly. Earlier versions that just past the struct didn't "hold" their value I think, so I made sure to pass by reference even though I heard you can pass an array by value just fine. [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