What have you been working on recently? [April 17, 2021] learn programming |
- What have you been working on recently? [April 17, 2021]
- You should learn git ASAP, and here's why.
- Primer on Branching in Git and Some Timeless Git Principles Learned From Experience
- Finally convinced my employer to get Github today!
- Any tips on Responsive Web Layouts?
- Building Modern Python Applications on AWS offered by Amazon Web Services free on Coursera until April 30th
- 1 WEEK BREAK,want to learn web related stuff
- How does it feel?
- Help with exercise 1.9 FullStackopen
- how to shuffle six decks c++
- Code Review and Feedback?
- Help with hashed dictionary in c++ for school
- Feeling burned out
- Advice needed for custom image based quiz generator.
- Python as a career?
- I am interested to learn Phython ? What are Pre requisite to start learning phython ?
- Laptop for CS Major
- Hello, What is the best strategy for learning a programming language/computer science concept/new technology from tutorials?
- Tips for going from normal C++ application writing to Native-Activity android apps?
- Python 3 programming vs python for everybody
- Prioritizing source code reusability over small optimizations?
- Where can I learn C++ online
- think in gonna quit fullstack
- Comparing “n” number of integers in C
What have you been working on recently? [April 17, 2021] Posted: 16 Apr 2021 09:00 PM PDT What have you been working on recently? Feel free to share updates on projects you're working on, brag about any major milestones you've hit, grouse about a challenge you've ran into recently... Any sort of "progress report" is fair game! A few requests:
This thread will remained stickied over the weekend. Link to past threads here. [link] [comments] |
You should learn git ASAP, and here's why. Posted: 16 Apr 2021 11:48 AM PDT Do you ever have to comment out a whole bunch of code to try something different? Or perhaps you changed some things and your code does not run anymore? Or maybe you want to work on your project from many devices? Or do you want to use free static website hosting for your CV/projects? If answer is yes to any of these questions, you most certainly need to learn how to use git/github. To anyone who doesn't know what git is: It is a 100% free tool aimed to version control your code. It has a lot of use cases but most importantly it is used to work on different branches of a project. Let's say you want to add a feature to your project, so you create a new branch which copies all the code from the main one. Then you work on that branch, consequently implementing your feature, meanwhile your code on main branch remains intact. Once the feature is ready, that new branch is merged with the main one adding the feature. No commeting things out to try something different. No lurking and searching for bug caused by changing your code. The working main branch is always there to go back to. It seems very intimidating at first but once you understand fundaments it is actually easy to grasp and you only need to know a couple of commands to solve issues I mentioned above. Github is an online service where you can store your code, not only it's present state but it's history and all the branches. It also provides free hosting service for static websites and much more. Using git really makes working on projects easier and can save a lot of headache, so start using it asap. Edit: Some IDEs have implemented UI for handling git, so if you find yourself very not fond of command line this might be the way to go. Although you still need to understand basic concepts. [link] [comments] |
Primer on Branching in Git and Some Timeless Git Principles Learned From Experience Posted: 16 Apr 2021 10:17 PM PDT
Certain principles listed at the end are timeless and I have been using them for quite a few years now. If you know what branching is, then you can skip to the end, if you are interested in just the principles. So here goes::: There are three ways to think of branching. One a metaphorical sense to get an intuition of why you create branches. One a logically sense to understand how to interpret branching. One the actual technical sense which explains exactly how the data structures underneath work. So What is Branching Metaphorically?Imagine you are an artist who made a painting of some person. That person comes to you and says, "The eyes don't look so good, I want them changed or give me my money back" hearing this, you show them the finger saying " Fuck you asshole, I am a painter and not a coder. That shit's etched in ink. We can't change that". As a coder branching Metaphorically allows you to change the eyes of the painting whilst retaining the copy of the original painting. The reason we branch is because it allows us to change code without worrying about previously stable working code. Branches allow you to ideate about different ways your system can work. They provide a way to understand the difference between two "versions" of the same system. Their existence allows us as humans are able to work together as a community while making meaningful progress due to guarantees of fallbacks. So What is Branching Logically?Below is what is Code at Commit 100 is working properly. You want to now make changes to Once you change and save A commit basically helps you logically track the changes. (I highlight Logically because "changes" is a nice way of thinking about it, it's not actually storing changes, It stores snapshots. ). Doing a commit will create commit 101 in-branch new-fancy-pants-change. Commits track a repository over time. They help identify unique changes across time. Even when Reddit deploys new features it can fall back to old versions if the new version of code breaks. Branches are one way of doing that. When you commit code it creates a hash. This Hash is derived from all the code and so is unique to that point in the code. Hashes of new commits are derived from previous commits. Read here if you are curious. When you branch, you can revert back the "Verison" of the file with So What is Branching Actually?Although logically we generally see branching as diffs/changes. It's actually storing snapshots of your entire files. I will not be able to do justice to the technicality of the blog post. This is also useful to remember because you SHOULDN'T(Avoid ) just commit very LARGE FILES. Few Timeless Branching Principles(I Follow it to the letter coz it. It assumes u understand the concept of branching by now):
Branching makes us together work better alone. PS. This post's inspiration came from a comment I wrote earlier: https://www.reddit.com/r/learnprogramming/comments/ms9rbx/you_should_learn_git_asap_and_heres_why/gusuwxj?utm_source=share&utm_medium=web2x&context=3 [link] [comments] |
Finally convinced my employer to get Github today! Posted: 16 Apr 2021 04:18 PM PDT Im the only one at work who codes and I've been working on Python scripts building ETL pipelines between different applications and pulling information down from API's. We had a meeting today to go over code documentation since I dont have anyone to do code reviews with and I've been asking for a VCS for about 6 months today. After explaining how Github works and how it would help keep up with changes and have a central repo instead of personal one drive folders, they decided to go ahead and make the purchase. Its a small win, but its been a push to start moving everything outside of Excel and it feels like the ball is finally rolling. [link] [comments] |
Any tips on Responsive Web Layouts? Posted: 16 Apr 2021 08:41 PM PDT Hi guys! I started learning about HTML/CSS a couple of months ago but had to stop to focus on school. Now I'm taking some time out of the week to re-learn and enhance my HTML/CSS skills and slowly transition into JS. One thing I really struggled with in CSS was positioning. I could never figure out how to position elements in-order for them to be responsive and "multi-device" friendly. I remember going over flex-boxes, grids, and media-queries, but still couldn't seem to figure it out. Are there any videos/articles that you guys would recommend? [link] [comments] |
Posted: 16 Apr 2021 01:48 PM PDT Coursera has 9 courses for free until April 30th, including the one listed in the title. You can get the details on their site. [link] [comments] |
1 WEEK BREAK,want to learn web related stuff Posted: 16 Apr 2021 10:49 PM PDT I have a week break after 1st sem and want to learn as much as possible about web development and the Internet where to start and how do I go about it [link] [comments] |
Posted: 16 Apr 2021 10:31 PM PDT How does it feel knowing that everyone and their grandmother wants to learn how to program, but you already know how to? DO you feel like telling everyone "I told you so!" [link] [comments] |
Help with exercise 1.9 FullStackopen Posted: 16 Apr 2021 10:02 PM PDT I need to make an if else to display 2 different screen parts based on whether the user pressed a button or not. I cant even get the damn if-else to properly do anything. Ive already tried using a function and putting it in the div block BUT IT JUST DOESN'T WORK. I am getting depressive thoughts from this; please help. My code: const ifshow = {props} => { if(props.good == 1 && props.neutral == 1 && props.bad == 1 console.log("h") } This isnt what the final code should look like but Im just testing if else and it wouldnt log h into the console. Sorry for no code blocks: Im on mobile. [link] [comments] |
Posted: 16 Apr 2021 07:04 PM PDT so I am trying to shuffle six decks of cards and I am lost. Apparently, I am supposed to turn it into a vector? can anyone help me. [link] [comments] |
Posted: 16 Apr 2021 09:09 PM PDT Hi guys, as the title suggests, I'm looking for some feedback on a small TicTacToe game I just wrote in C++. I'm self-taught through a Udemy course, and so far I've made it through to the beginning of the OOP section. I thought this would be a great time to stop and attempt a solo project, one that I've generally regarded as a good test for someone with my skill level. (I've done some courses on Python and they've all had beginners do TicTacToe as a milestone project) Now, I've tested the game and as far as I can tell it all works, however I'm looking for some ways I could have improved upon the code - I feel like there are ways I could definitely reduce the number of lines in the code. Any feedback would be awesome, thanks! Link to the code is here. [link] [comments] |
Help with hashed dictionary in c++ for school Posted: 16 Apr 2021 09:02 PM PDT I'm trying to make a hashed dictionary to the school's specifications. I can't seem to get this unique_ptr or shared_ptr stuff to work. I was hoping somebody could help me I know it's most likely awful code but this is the repo. These are the errors I get when I try to build but I don't really understand what they mean. My instructor just keeps telling me to read the errors but honestly I need help. I've been working on this since Monday and it's due this Sunday. I'm struggling, literally pulling my hair out. Please I just need some help.
[link] [comments] |
Posted: 16 Apr 2021 03:38 PM PDT I don't know what I should be doing. I usually try to come up with projects I want to make and that will be my main fuel for motivation, but I can't come up with good ones and ideas I had previously feel lackluster... Learning new things is kind of meh. It can go either way. Hopefully this feeling will go away and I will be able to think of project ideas that I will feel really enthuastic about. For now, I'll have to calm down a bit on coding and focus a bit more on my secondary hobby... although the second hobby kind of feel lackluster right now too.... How do you guys deal with burnouts and a feeling of emptiness like nothing matters? Please let me know if you have some tips... [link] [comments] |
Advice needed for custom image based quiz generator. Posted: 17 Apr 2021 12:13 AM PDT Hey, fellas, I am completely new to coding and I need your advice on very specific goal I am trying to achieve. I would like to try and create web based platform that I and my students could use to generate picture based quizzes for their personal training purposes. Basically, result I am aiming for is to create very simple and basic webpage where visitors (those who will have correct link/address) will be able to take a quiz. All quiz questions will be picture based. And student will need to write down the correct answer about what he/she sees in specific picture. I am not that concerned about UI or tool design itself I need something very simple and function of such tool is more important for me than looks. Important requirements (that made me turn to trying to code such tool myself instead of using one of many simple quiz generators on the web) is that: 1) I need to be able to upload images into groups and do in bulk, I will need several hundreds of different images for those questions and creating questions one by one is not an option. 2) Students at the start of the quiz should have option to change some settings on how each quiz will be generated for them. This is simple, yet important parameters like amount of questions in the quiz, timer duration on which they have to answer each question, choose category of pictures (in case there will be several different sets of images), etc. Lastly, they will need to have some sort of result feedback generated where we can review what questions was answered right and which ones not. There is not need for any log or test attempt history functionality in such tool. All tests will be just one time tests and will not be used for result tracking. This tool is for students for training purposes only. So the questions is does Python is correct language to learn for such goal and is there any advice you guys can give me on the approach. I chose Python because I checked that it is relatively simple to lear and that it can be used for "web app" development. Is it possible to create such tool for someone who have no prior experience in coding and how difficult/complex it may be? Can it be done in couple of weeks starting from zero? I have a lot of questions but I have already started to learn the very basics and I am eager to learn new skills along the way. Thank you so much in advance. [link] [comments] |
Posted: 17 Apr 2021 12:00 AM PDT I'm a 22 year old and I recently started learning python but I don't know where should I focus more, what should be my roadmap What should I do after learning python basics? Should I focus more on projects? I want to pursue python as my career, will I be able to land on job by studying python alone? [link] [comments] |
I am interested to learn Phython ? What are Pre requisite to start learning phython ? Posted: 16 Apr 2021 11:52 PM PDT I want to learn Phython and I don't come from a programming background. Please guide me where to start ! Thanks I'm advance [link] [comments] |
Posted: 16 Apr 2021 11:38 PM PDT Hi all! I'm new to this subreddit and am an incoming CS major for next year with a specialization in mathematics and analytics. With my high school programming courses, I've been running python so far. I currently use a Macbook Air. This has been running fine but I know it won't really last for the long run as it was the cheapest air. I'm wondering for post-secondary studies should I invest in a high-quality Macbook Pro since I'm used to MacOS, or if I should go with a PC laptop that runs Linux/Windows. I'm pretty used to the Apple UI, I've always used their products with the except of preferring Spotify over Apple Music (lol). I don't game at all either so this would be strictly for programming and elective work with essays and such. I also realize that Shopify provides MacBooks to their interns, should this mean lots of tech companies are turning to MacOS? Thanks everyone! [link] [comments] |
Posted: 16 Apr 2021 11:31 PM PDT I started learning c++, I've been going through this video-based tutorial (freecodecamp) https://www.youtube.com/watch?v=vLnPwxZdW4Y and this text-based tutorial (learncpp.com) https://www.learncpp.com/cpp-tutorial/configuring-your-compiler-choosing-a-language-standard/ I usually do 3 things when going through these tutorials along the way. 1 I watch/read the tutorial up to the point when they explain a new important key concept or syntax element 2 When I got the concept on my mind I write it down on my pen book ( I always write down recently learned syntax/concepts, examples using the syntax/concepts, and simple explanations to everything) 3 After this, I make a small program that includes recently learned concept/syntax element in it (These programs mostly resemble the example given in the tutorials My objective with that strategy is to make my writings in the pen book and in my programs as verbose as It would be possible to follow the tutorial just by reading the pen book/ reading my programs However, I feel like the strategy is not efficient enough. It's taking too much time. Like, It takes 30 minutes to go through 10 minutes section of a video tutorial. (3 times more time than the actual length of a tutorial) There's another strategy on my mind: I can just go through the tutorials at their defined pace and after each section of a tutorial, write multiple programs and try to get the most functional benefit out of the concepts/syntax I've previously learned. Without writing down anything on a pen book. With the 1st strategy, I easily remember and memorize new stuff I've learned but It might not my as time-efficient as I desired it to be With the 2nd one, I'm worried that my learning may become unsystematic and casual but It might be more time-efficient and fast What I am eventually asking for is some kind of advice on learning strategies and if you can add anything to the discussion I would greatly appreciate it but Any help would be useful [link] [comments] |
Tips for going from normal C++ application writing to Native-Activity android apps? Posted: 16 Apr 2021 11:30 PM PDT I have recently been interested in mobile app development, however coming from normal C++ programs, I am very lost. I installed visual studio and am using that to create and test my app, but on creation, it already had a whole heap of files and a pre-written main.cpp which I didn't really understand. Does anyone have any tips or guides to look at that go from C++ development (like sorting algorithms, searching, normal Uni stuff) to this mobile development? [link] [comments] |
Python 3 programming vs python for everybody Posted: 16 Apr 2021 11:23 PM PDT Out of all the Python beginner level courses on Coursera, the two with the highest ratings seem to be python for everybody and python 3 programming. They both contain 5 courses, and while python 3 seems to move faster, I've heard really good things about the other's instructor (even if there's no actual coding until week 3). Which one do you recommend for someone who's taken a basic programming class? [link] [comments] |
Prioritizing source code reusability over small optimizations? Posted: 16 Apr 2021 11:20 PM PDT Let me start off by stating that I understand early micro-optimization is, in general, poor for project flow and that my benchmarking has only seen a limited environment and input scenarios. I have found that a source reuse optimization has resulted in a minor performance unoptimization. The reuse optimization is a method to simplify a bit of a lengthy ternary operation (which is reused slightly differently in several dozen different expressions) by relying on the method's return value instead (in which the aforementioned slight differences are handled via arguments). While I believe the avoidance of rewritten source is important, tens of millions of calls during runtime have made a small performance deficit (which will grow (linearly) with uses beyond my small tests) noticable in the logs (presumably due to overhead of calling the method itself). This is a very vague question, but I'm wondering how you make optimization decisions such as these in a project that has some performance consciousness. Do noticable, but relatively minor and linear, performance losses always take a backseat to source reuse? Sorry again for the vague question, I'm leaning on the side of keeping the reusable method, but want to know how others think of and weigh problems such as this. [link] [comments] |
Posted: 16 Apr 2021 06:59 PM PDT Recently I wanted to start learning C++ so I could try to create some games on Unreal Engine. I know it's not required for Unreal Engine because they have things like Blueprint however I figured this is probably something I would want to know. I can't find a good place to learn C++. Is there a good tutorial that goes really in depth with C++ I want to try to learn as much as possible about it. I'm not new to programming I know a moderate amount of Python and a bit of JavaScript so starting C++ won't be a as confusing (hopefully). Where would you suggest I go? [link] [comments] |
Posted: 16 Apr 2021 10:34 PM PDT i literally cannot solve fullstackopen's exercise 1.9 and its just a simple if rendering. nobody even helped on discord or reddit when i posted and it feels like im conpletely alone. my family doesnt care about my mental health whats the point anymore man. I cant believe I tried fullstack what a waste of time it made me feel like an idiot. thanks python for being beginner friendly. both give me depressing thoughts but that 1.9 is the most humiliating. thabks for reading. im probably going to cringe at this in the morning but everything is hopeless now. fullstackopen is a great case of dunning krueger from the people who wrote it. like actually teach js PLEASE [link] [comments] |
Comparing “n” number of integers in C Posted: 16 Apr 2021 10:12 PM PDT Say I have n number of integers and I want to compare all of them to find the biggest integer(integers if there is more than one) how do I go about it? Can I use recursions here? If so, how? [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