Self learners how did you learn algorithms? learn programming |
- Self learners how did you learn algorithms?
- Does anyone else think video tutorials do more harm than good?
- If you lack practice, try Leetcode
- It's nice to finally get to the point where I can look at an exercise prompt or project idea and have a good idea of what problems I need to solve, how I will break them down and how I will need to structure my code
- OSSU vs TheOdinProject vs App Academy Open
- I want the text to appear after the animation begins
- Any tutorial on how to install C++ libraries?
- How to get weather data upon user input
- Quick way to run scripts?
- I work 70 hrs a week. What coding niche should I specialize in, if I want to start a digital nomad side hustle for supplemental income and can work only one day during the weekends?
- How to interact with a site db
- What will replace JS?
- C | Find number of duplicates in string | output number changes when run (ie results not consistent)
- What is REPL?
- Where should I start?
- [C++] Using templates to create objects of parameter types not compiling.
- How to get started with competitive programming?
- Overthinking Solutions
- Moving From One Language to Another
- Write a program that prompts the user for a 5-digit number, then prints the sum of the digits.
- What to do when you get "burnt out" ?
- Best place to learn AWS?
- My contact form is not working in WordPress
- Which technology to learn to make an app?
Self learners how did you learn algorithms? Posted: 28 Aug 2020 10:02 PM PDT I was reading another post about how to learn algorithms, but most of the replies seem to have some university education. Curious to know how people who learned by themselves taught themselves algorithms. It's the biggest weakness that's holding me back. [link] [comments] |
Does anyone else think video tutorials do more harm than good? Posted: 28 Aug 2020 02:32 PM PDT Maybe not in all cases but a lot of video tutorials approach teaching in a very bad way which is what leads to people getting stuck in tutorial hell. They make it seem like they are writing all the code from memory which is highly improbable and they are usually rushing through it without any explanation at all. In real life programming is about finding your info in documentation and stackoverflow but video tutorials just show programming in a very unrealistic way. [link] [comments] |
If you lack practice, try Leetcode Posted: 28 Aug 2020 07:07 PM PDT It's easy when you begin to read lots of tutorials and learn a lot of notions but to be blocked when you have to actually write code. Well Leetcode is great to solve this issue. You have exercises, and when you solve them or give up, you see other peoples solutions ranked by good practice. Give it a try and tell me if it helped to kickstart you 😁 Edit: it's free and good for coding practice [link] [comments] |
Posted: 28 Aug 2020 07:08 PM PDT I really had a breakthrough today watching Scott Allen's C# course on Pluralsight. He repeatedly hammers on Abstraction, Encapsulation, and Inheritance, so as to break up the large methods and classes into smaller distributed classes that individually solve a different problem and hiding the code calculations from the cs file that contains the main method and putting it into smaller cs files that have the separated classes. I was working on some Exercism prompts when I realized that by reading the prompt, I already had an idea of what calculations I needed to do, which ones I should store in a variable since I would be using them repeatedly, that I was going to declare the repeatedly used variable outside of the individual methods that would use them, etc. I'm still lacking being able to make the syntaxual jump of being able to write the code to exactly do what I want it to do, but it seems that this is a huge bridge in at least knowing where to start at first glance and being able to map out my code before I start writing it. Additionally, the focus that he placed on TDD along with Exercism testing all your code against multiple solutions has really illuminated how important TDD is and how to refactor your code based on the results of your tests. [link] [comments] |
OSSU vs TheOdinProject vs App Academy Open Posted: 28 Aug 2020 09:17 PM PDT I'm currently in the process of CS50. What would be the next best course to work through that I mentioned, I have read great things about all of them. Anyone have any personal experience with them? [link] [comments] |
I want the text to appear after the animation begins Posted: 28 Aug 2020 10:48 PM PDT I want the text to appear after the animation begins you can see the text "here" slightly then animation happens. And any suggestions for smooth and slow animations? [link] [comments] |
Any tutorial on how to install C++ libraries? Posted: 28 Aug 2020 10:06 PM PDT I really just started learning C++ a while ago, and coming from python I got some of its basics relatively easy. One thing I've not yet been able to learn is how to use libraries other than the ones that come by default. In python it is very easy, as I just install them with pip and that's it. On C++ on the other hand, there seems to be a little bit more of tinkering involved. I've been trying to use a library to plot data, but none of the repositories I found appears to have clear instructions on how to use them. Is there a tutorial or some resource that explains this? I've also searched for this online, but I have not yet found something that I'm able to understand. [link] [comments] |
How to get weather data upon user input Posted: 29 Aug 2020 12:14 AM PDT take for example this feature on openWeatherMaps' website https://openweathermap.org/find the only thing I can think of is to upload it some sort of server then fetch it or something, I'm a little stumped if I'm honest.. My aim is so the user inputs their city and country code eg "london GB" and from there I use that information to fetch the weather data. any ideas would be much appreciated! [link] [comments] |
Posted: 28 Aug 2020 09:53 PM PDT Hello everyone, so I wrote a little script in python to automate a task I do quite frequently. It works well and does what it needs to but here's where I'm having trouble: How do I run it conveniently? One way is to run it from the terminal, but the said task I'm automating is like 2 clicks and so this method kinda defeats the purpose of the script. Like going into the terminal and then typing all that stuff out... Yeah. Another way I found was turning the script into an exe using a python library. So I did that. The problem I found here was that the the exe file was too large(I even changed the import statements to just include the things my code was using instead of importing the whole library). Also, the exe took too long to open. Like 10 minutes. I can just do the task manually in that amount of time. Is it slow because of python being a high level language? Should I pick another language? [link] [comments] |
Posted: 29 Aug 2020 12:00 AM PDT I have a BS in Economics, an MBA and 2.5 years as a universal banker/customer service relationship officer at a large retail bank branch in Bangladesh. I earn only BDT 35, 000 which is half the living wage (citation Numbeo). I leave home at 7:30am and return at 9:00pm to 9:30pm. Office is from 9:00am till 8:00 to 8:30pm. I get only a 15 minute lunch break and one bathroom break. This is Sunday to Thursday with Friday and Saturday off although the company tells you to go for sales visits and training during Friday and Saturday. So in practice every other Saturday is training or a sales visit. The work is continuous high paced mental grunt work that involves huge multitasking. I cannot change careers because here in Bangladesh you cannot change careers after 30. By law government jobs don't take you in after you are 30 and private sector jobs do the same. Those with 5 years or so experience can shift to a higher position at another company because those jobs have an upper limit of say 35 years. But you cannot change careers because that would mean going for an entry level job where the age limit is 30 years. So I am looking to start a side hustle or side business coding. If it takes off, I would leave the day job and do it fulltime. But the thing is, I only get two day weekend. One day is off for chores, trainining or such things. That means I only get one 8 hour day a week to do this side business/side hustle. I am therefore thinking of specializing in a niche area of coding. A niche that will have lots of demand for remote work/digital nomad work and the nature of work should be something that can be done given my time constraints. For instance if the nature of work is that the client's usually want the work done by 5 days and it takes 20 hours, then that won't be possible for me. But if the nature of the work takes about a month and 20 hours, then I can complete it in 3 weeks by giving 8 hrs every Friday. Right now I have no knowledge of programming/coding. But I have been reading Coding for Dummies and I am working towards learning programming. But the subject of coding is vast and it takes time, so with my 8 hours a week the progress has been slow. So all the reason to focus on a narrow niche in coding. [link] [comments] |
How to interact with a site db Posted: 28 Aug 2020 11:59 PM PDT So I'm going through a free code camp and I figured out a project I want to work on but I'm not sure it's possible. I want to make something like this. Obviously I don't have the money to pay for hosting and such so I'm not sure how id be able to show it working for a resume. Also, how would I get their data? I can't input all that myself at all. I looked for an API or database access and couldn't find it. How would that be handled? Thanks for the advice [link] [comments] |
Posted: 28 Aug 2020 08:08 PM PDT I'm going through the free app academy. It is based off of Ruby (at least where i am thus far). I ended up side tracked and began to think. I seem to remember a time where Ruby on Rails was kind of the leading (or near) leading technology. What do you think will overtake JS? I know it is in a boom right now, but 5-10 years from now, what do you think will take its place (if something does). [link] [comments] |
C | Find number of duplicates in string | output number changes when run (ie results not consistent) Posted: 28 Aug 2020 10:17 PM PDT So here is the scenario. Given a string passed in from a function, you must find the number of duplicated chars (letters or numbers). Example, aaBbcA would be two. There are 3 a's, and 2 b's, but only one c. So there are two total duplicated letters. Given a string
which is the alphabet repeated twice, it should return 26, because there are 26 repeated chars. Now for my code. When run online on my Cloud9 IDE, it will randomly return 25 or 26 letters. Most of the time it's 26, but if you keep executing it (like 20-30 times), sometimes it will output 25, and I've even seen a 24. Clearly something is not right. Here is a screen shot showing the return chars in the array dupes with 25 or 26 length. You can see the "K" was left out in this case. The letter varies, as it was "I" above it. Admittingly, my code is hacky. I'm weak on pretty much, well, everything, but especially strings with char*, char[], and whatever else there is out there. Which are mutable, which are not, etc. It's hacky but the basic crux is I wanted to place all duplicated letters into an array "dupes" and as I go along finding duplicates I zero out the found duplicates with a / char in the string I am looking at (repeat). It also looks like I'm having problems terminating the string as well maybe. Anyway, here is the 'program', also available on pastebin. I've used printf to aid in debugging. [link] [comments] |
Posted: 28 Aug 2020 09:56 PM PDT From my understanding REPL is just a program or a high level shell for users to interact with it. In my CS class I was told how interpreted languages use it a lot, but it is not an interpreter though. If a REPL is not an interpreter, then what is the exact purpose of it? To me, all it seems like is a UI for user to write code in like a IDE in a way. Do all interpreters for interpreted languages need a REPL. Finally, this stack overflow post: https://stackoverflow.com/questions/5451042/relation-between-repl-interpreter-and-compiler#:~:text=The%20REPL%20is%20commonly%20misnamed,as%20Common%20Lisp%20and%20Python.&text=An%20interpreter%20is%20not%20required%20to%20have%20one. says how compilers or compiled languages may use it but my teacher told me how compiled languages do not use REPL. I apologize for the confusion or multiple questions, but I really wanted to clear my confusion as I learn more on how languages are set up and made. [link] [comments] |
Posted: 28 Aug 2020 09:53 PM PDT I'm a young guy with little knowledge in coding besides some html and basic understanding of basic hardware. In the past, I took a TV and Film class, and after doing so, I would watch television and it would look different. Furthermore, I was distracted due to the fact that I knew what was going on behind screen, and no longer did it seem to look as an immersive experience while watching. Not that, after learning, will it ruin computers for me, but when I look at the screen, I want to basically understand what is going on. As of now, I don't particularly care about the hardware side of things as it doesn't interest me. Right now, I'm focused on coding and software; having phones, computers, and the internet at my finger tips, I have all the opportunity to learn. I understand, or assume that looking at a computer screen and understanding really depends on what code is being used. However, I would like to know a good starting place. Also, I am incredibly intrigued with security of computers. Not forgetting about, all the viruses, anti-virus software, and "hacking". Viruses and how to program software to combat them is something that incredibly interests me. The entire mention of ambiguous viruses such as Stuxnet serves as so much entertainment to me. Even so, hacking is one of the more thought provoking things. I really just want to sit down at a computer and understand and know to manipulate it with a positive connotation. If there is such questions, that after studying the science of computers, I could answer, I would want be capable of answering, "How to develop viruses and bugs", "How to hack", "How to program software(especially of the Anti-Virus variety)" TL;DR: I want to understand: -Hacking -Development of Viruses -Programming of Anti-Virus Software -Codes most important to functions of Comps. [link] [comments] |
[C++] Using templates to create objects of parameter types not compiling. Posted: 28 Aug 2020 07:39 PM PDT The above code represents the problem in my program. Basically I'm trying to pass in values to an object then depending on the type of that value either the string or the integer value will be assigned. The error I get is But doesn't that if statement guard from that? Any ideas? [link] [comments] |
How to get started with competitive programming? Posted: 28 Aug 2020 11:00 AM PDT Hey! I am familiar with programming but I would like to know what specific topics should I learn for competitive programming.(Syllabus) [link] [comments] |
Posted: 28 Aug 2020 05:14 PM PDT I've been going through a very good Java course on Udemy, but I hit a bit of a roadblock on one of the exercises and it's one I've hit no matter the language. When I get posed with a problem, that has a degree of the coding done (though really that doesn't matter) I get tense and then over think how to solve it. I start using loops that aren't needed, add extra variables that are also not needed and then get frustrated because I get some part correct, but the author shows the solution and I see how far off I was. Plus they do it in a couple of lines of code, where I know mine would have been much longer. Is the solution just time and practice? Once I know the language better, will I see the a quicker solution that uses less code? This is where I generally lose steam because I get frustrated and don't know if there is a way to stop overthinking a solution. [link] [comments] |
Moving From One Language to Another Posted: 28 Aug 2020 08:31 PM PDT So, in my last reddit post, I posted a tidbit about me going through App Academy free. That being said, they are using Ruby. I personally prefer python as I see more jobs for it (albeit I never built anything). I was wondering, once I finish this, or get semi-comy and decide to move onto the next thing, how do you guys learn more than one language? It's just syntax differences, but do you still youtube "python tutorial" and go through it or how do you do it? Just curious how the professionals go about jumping from one language to another to learn. What is day 0 like for you? How long till you say you can use it and start using the new language outside of tutorials. Thank you. [link] [comments] |
Write a program that prompts the user for a 5-digit number, then prints the sum of the digits. Posted: 28 Aug 2020 11:47 PM PDT Hi everyone, i'm facing some difficulty with the last question of my homework. I managed to figure out how to print the sum of the digits, but I am unsure how to specifically prompt the user for a 5 digit number other than just doing printf("Enter 5 digit number"). Is there a way where the code ONLY accepts a certain digit integer? In this case, I would like 5 digits only and preferably reject the integer given by the user if it is anything other than that. Thanks. Edit: c language [link] [comments] |
What to do when you get "burnt out" ? Posted: 28 Aug 2020 04:13 PM PDT I'm a student in software development and I've spent my whole summer learning new things. I've learnt C++, C#, Python, Game development in Unity, and some other things like guitar, etc... I started going on long bike rides, around 50km. They helped at first but not so much anymore. I've just been getting really burnt out lately and I don't know what to do about it. Any suggestions? [link] [comments] |
Posted: 28 Aug 2020 04:11 PM PDT My boss said he'll pay for me to learn how to use AWS Lambda. I've learned a bit on my own, but im struggling with adding dependencies to my function and having it still run properly. He said that I might as well learn more than just lambda and take a more all-encompassing course. Any suggestions/good experiences any has had? I'm not as worried about certifications as I am with learning the ins and outs of deployment/best development workflows. Thanks [link] [comments] |
My contact form is not working in WordPress Posted: 28 Aug 2020 07:47 PM PDT I have created a basic HTML form on one of my pages. It is the code below: But when I submit this form, the page immediately 404s. I have tried changing the action of the form to be the page url with [link] [comments] |
Which technology to learn to make an app? Posted: 28 Aug 2020 02:49 PM PDT Hi All, I hope you are doing well. I want to make an app which will connect user to their favourite offline shops and will notify them about availability of the thing(product/service) they are looking for in the shop. For example, when will the barber be free and I get my turn to have a haircut. Something like this. My question is should I learn Android Native to make this or React.js? 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