• Breaking News

    Saturday, January 2, 2021

    What have you been working on recently? [January 02, 2021] learn programming

    What have you been working on recently? [January 02, 2021] learn programming


    What have you been working on recently? [January 02, 2021]

    Posted: 01 Jan 2021 09:00 PM PST

    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:

    1. If possible, include a link to your source code when sharing a project update. That way, others can learn from your work!

    2. If you've shared something, try commenting on at least one other update -- ask a question, give feedback, compliment something cool... We encourage discussion!

    3. If you don't consider yourself to be a beginner, include about how many years of experience you have.

    This thread will remained stickied over the weekend. Link to past threads here.

    submitted by /u/AutoModerator
    [link] [comments]

    You're not too stupid for programming

    Posted: 01 Jan 2021 12:55 PM PST

    Hi,

    For a year of computer science class I've always felt I was ''too stupid'' for programming. I've been looking up posts with people facing the same problems. A year of computer science, I've seen people progress ten, sometimes a hundred times faster than me. It would take me hours to figure out one function. I kid you not, I spend over a week working 8 hours a day trying to build a simple function where my POST function would stay on the same page using Ajax. I just assumed that I could copy code and it would all magically work in mine.

    The problem is not your brain. The problem is the way your brain is used to solving problems. Solving problems in programming is not the same as solving problems anywhere else. You can't just follow a cooking tutorial and cook the same. Your program is always somewhat different, and therefore has to be implemented different.

    So what did I do to get over ''being to stupid to code''.

    1. Clean your desk and work space.
    2. Set a timer for the amount you'll program without distraction.
    3. Work as simplistic as possible. Don't look up ''how to make an online registration form''. Instead start by learning about how you can register a single character into your database. Be as simplistic as possible. Baby steps.
    4. Spend 80% of the time reading and understanding your problem and solution. Don't write a letter of code until you fully understand it.
    5. Now spend time testing your code in a raw file.
    6. Now that you fully understand the code, that's where you implement it in your own.

    Good job. You're no longer ''too stupid to code''.

    .

    submitted by /u/Celiuu
    [link] [comments]

    To all those bootcampers

    Posted: 01 Jan 2021 05:33 PM PST

    I have recently graduated, two and half months ago, from Flatiron's sofware engineering track and just landed my first job!

    I come from a construction background, have no college degree, and am 29 years old. Because of this, I had moments of self doubt and imposter syndrome. Almost to the point of talking myself out of making the career change but Im so glad I made the leap and stuck with it.

    I had a lot of help and guidance with a great support system. There were a lot of great posts on here that helped to motivate me as well and I really want anyone who is having the same doubts that I had to know that it is possible. Dont listen to those negative Nancys. If you're willing to do the work, you can do it. There's more to it then just doing the work though. There's networking and becoming apart of the community with having a want to keep learning beyond what you're being taught. I didn't have much of a life outside of programming for the last 8 months. But totally worth it.

    Please leave a comment if you have any questions. I would love to share more details if you are interested.

    submitted by /u/zimzimma02
    [link] [comments]

    What book should I read as a beginner to programming?

    Posted: 01 Jan 2021 08:32 AM PST

    I have completed a couple of tutorials on JavaScript and I am waist deep in my first major project. As my code grows I am starting to wonder how I should deal with more abstract problems. How should I organize my code? When should I create a sub-function? Which of these two ways is the 'right' way?

    I have been recommended a few books including:

    • Code Complete
    • The Pragmatic Programmer
    • Refactoring
    • Clean Code

    Which of these (or others) would serve as a strong introduction to writing effective and efficient code?

    submitted by /u/Risk_Metrics
    [link] [comments]

    I want to learn how to program, but I don’t really get how I’m supposed to use anything...

    Posted: 01 Jan 2021 05:20 PM PST

    I've been wanting to try to learn programming for a while, and every so often I find the motivation to download a programming language and look up tutorials and courses for it, and then I just end up hitting a total roadblock.

    Like, I can understand what I'm being taught if I go over it enough times. Tutorials will teach me about variables and "If" statements and all that fun stuff, and if I go over it enough times, I can usually have something of a loose grasp on it, but then I just end up really confused, because I have no idea how any of this stuff is supposed to do anything. Like, I feel like all I can really do is create a really rudimentary calculator, and even then I'd probably have to look it up to refresh my memory. I don't know how I'm supposed to use any of these skills to really create anything. I don't really understand how anything I'm being taught really applies to a larger program. I feel like I'm being taught a math lesson where I'm given random numbers and formulas, but no actual equation to solve. Like, I can get these things work, but I don't know how I'm supposed to use it at all, or know when to use it.

    I get that it's not supposed to be an easy process, but I always just feel like I'm hitting a wall with this kind of thing. I'd like to be able to just make relatively simple desktop applications, or maybe if I'm being especially optimistic, maybe at some point even try to develop games or something. Does or did anybody else experience a similar problem? Are there any programs, apps, or courses you'd recommend that might be good for somebody in this kind of situation?

    submitted by /u/CurseOfMyth
    [link] [comments]

    I’ve just completed the Web Dev Foundations course in The Odin Project and I really am proud of what I’ve achieved, as well as excited for the next steps in my journey to a Full Stack Web Developer / React Native Developer

    Posted: 01 Jan 2021 04:05 PM PST

    Well it's been about 2 months of work so far, but today I completed my final project for the Web Developer Foundations course in The Odin Project. I've successfully deployed a calculator app written in full ES6 syntax using Event Handlers, DOM Manipulation and good ol' Vanilla JS.

    This course has really tested my ability to problem solve and create/define logic. I cannot comprehend the amount of times I've had VSCode open in front of me, with a pen and paper just writing down different algorithms in my head trying to solve that one problem. Plenty of "I'VE GOT IT!" moments also accompanied with a few "I have no idea" moments. Both of which are exceptionally great opportunities to improve and learn and one thing I really must nail in to anyone whose just starting to learn, is this:

    Do projects and don't give up! They will be overwhelming, and they will test your patience, but by Jove! The amount of knowledge you simply learn through trial and error until eventually the thing you wanted to do actually works is second to none.

    Well, now it's time for me to take a couple of days off and rest and celebrate my completion this weekend, before really sinking myself into it. I've decided to go down the JavaScript side of Full Stack, as I really like the looks of Node.js as well as really wanting to become a React Native developer too.

    In a moment of reflection, it's quite amazing to me to be able to look back at where I started with this coding journey and think "Wow, I never would've believed you if you said I'd be doing this 2 months later." And I can't wait until I look back when I've completed the next course and go, "Wow, I never would've believed you if you said I'd be doing this X months later." It's just really humbling and when I say this has given me the biggest confidence and motivation boost I really cannot emphasise it enough, but it's taken a lot of discipline too.

    For those who haven't: if you really don't know where to start for coding, please just go and get yourself started on The Odin Project. There will never be a magical pill to take that instantly makes you better at coding, you must be prepared to do the work, but keep at it, and trust in the system.

    submitted by /u/ClemencyOSRS
    [link] [comments]

    Can I become a programmer if I don't have any sense of how to solve problems like this?

    Posted: 01 Jan 2021 08:48 AM PST

    I recently saw such a task on the Internet: "print spiral pattern with '*' character" like this: https://pastebin.com/raw/zuivmrE3

    And I don't have any sense of how to solve problems like this. I have a some hobby-development experience with JavaScript and Python. I was learn classic CS Algorithms and Data Structures and I did't have such stuck never. I was have hobby-experience (non-commertical) with some ML Algorithms (KNN, Linear Regression).

    I'm not complete newbie but complete lack of ideas of how to solve such tasks makes me wonder, maybe I'm suck really? Completely suck.

    I don't have any sense also how all this guys invented a solutions. It is even very difficult for me to understand why they came up with just that. It seems very esoteric to me.

    Links:

    https://stackoverflow.com/questions/2563561/code-golf-easter-spiral

    https://stackoverflow.com/questions/51691446/how-to-draw-a-spiral-of-with-only-for-while-loops-and-if-else-statements-with

    https://stackoverflow.com/questions/53342511/nested-loops-for-creating-a-spiral-shape-pattern-in-c

    Is it somehow saying about my IQ or/and ability to think like a programmer? How is it important to be able to solve such problems?

    Edit 1:

    I can find pattern for some lines. For example:

    the line 2 is always looks 1* (R-2)s 1*, the line 3 1* 1s (R-4)* 1s 1*or the line 4 1* 1s 1* (R-6)s 1* 1s 1* etc. And I just stuck at this point.

    btw, I also found some solution on ruby https://gist.github.com/veryhappythings/353151 and it looks most readable of all I've seen yet. But my problem is also, - I can't understand how this man (and others who solve the problem) realized that this! grid[i][x-1-spiral_depth] = ' ' or why required_spiral_depth is x/4+1. If you get what I'm talk about. I mean, I can read it (with a creak) but can't understand why? and how to solve by myself.

    What a chain of thoughts? Or it's just a lot of experiments?

    submitted by /u/wallpaperroll
    [link] [comments]

    Trees data structure is nightmare for me (Java)

    Posted: 01 Jan 2021 12:40 PM PST

    Hello everyone Happy new year , I wanted some tips on how I can improve my knowledge of tree data structure. Every question I do like print left view, bottom view, traversal etc is hard for me like I have to see solution. This really depresses me and I don't feel like I can do a lot of things with trees I find arrays linked list hash set stacks etc easy. I got DP and graphs after this so I don't know where to begin with.

    submitted by /u/Sasha_411
    [link] [comments]

    How much of discrete mathematics do I need to know for learning DSA?

    Posted: 01 Jan 2021 08:45 PM PST

    I have been learning coding for a while now. I have some knowledge in C++ and Java and can write code for beginner level problems and a handful of medium problems on hackerrank, codechef etc. Recently, I have been trying to learn DSA and came across 'Discrete Mathematics' being needed for DSA. I would like to know that how much of Discrete Mathematics do I need to know. Also I found a course on coursera for it. Is this course good enough to proceed further?

    https://www.coursera.org/specializations/discrete-mathematics

    submitted by /u/canurag
    [link] [comments]

    How to get started in app development for both iOS and Android?

    Posted: 01 Jan 2021 02:12 PM PST

    Due to the increase in downtime as a result of working from home due to Covid, I'd like to try developing a simple mobile app (e.g. a weather or to do list app), then eventually move onto creating a simple 2D game. I was wondering what's the best way to get started? If I had to pick just one OS I'd go with iOS since that's what I'm mostly familiar with. Would Swift be a good starting point since it's not limited to just game apps?

    As for my background, I have a working knowledge of HTML/CSS/Javascript/Liquid (Shopify).

    submitted by /u/pianosoul098
    [link] [comments]

    Thoughts on learning code with raspberry pi?

    Posted: 01 Jan 2021 11:18 PM PST

    Do you all think a raspberry pi is an effective way to learn code?

    https://www.futurelearn.com/courses/programming-101

    Seems pretty interesting to me. Maybe it's good for beginners? Anyone did stuff like this with a pi?

    submitted by /u/toshortofnam
    [link] [comments]

    What can I read to give me a greater understanding of Java?

    Posted: 01 Jan 2021 11:13 PM PST

    I'm looking for recommendations similar to Computer Systems: A programmer's perspective, but for Java. Thanks!

    submitted by /u/Stonezarcon
    [link] [comments]

    Unnecessary whitespace when splitting a string

    Posted: 01 Jan 2021 10:47 PM PST

    I have a string of "1100110011000001111101010101000000000000001110101010"
    When splitting the string using "00000" as the regex I'm getting the split string as [1100110011, 1111101010101, ,0000111010101] I can't seem to figure out the how the 3rd element comes in the array. Tried searching for a possible solution to this but can't find anything solid so far. Thanks for helping out!

    submitted by /u/Jack_2077
    [link] [comments]

    Java - Can Someone Explain To Me In Simple Terms How Two Different Objects Can Have The Same Hash Value?

    Posted: 01 Jan 2021 10:43 PM PST

    I was reading the MOOC.fi and it told me that you have to implement a custom hashcode method to avoid objects with different contents getting the same hash value as much as possible. I understand how you would have to implement it for the opposite scenario - two objects that are the essentially the same having different values -, but how does it apply to the former as well?

    submitted by /u/Calse_Robington
    [link] [comments]

    Need Help With Unity

    Posted: 01 Jan 2021 10:41 PM PST

    Hello Reddit

    I just started my first unity course and came into a road block the Default coding area for unity is monoscript I believe but every time I make a c## folder and tried to code it never loaded so I found a new alternative using visual code studio. Everything works until I try to drag and drop my folder into one of the game controllers and it gives me this text

    https://drive.google.com/drive/folders/1iSal7bhcfHhVPRVrVm7zBLk6j9pZWqyD?usp=sharing

    Ps there is also of photos so show what im working with

    But thank you for reading and thank you very much if you can help ;]

    submitted by /u/valco56
    [link] [comments]

    To Class or Not to Class. That is the Question?

    Posted: 01 Jan 2021 01:38 PM PST

    The title kinda explains my thoughts. I'm learning to program, and overthinking EVERYTHING.

    I think it's not the fear of making it not perfect, but I start to build a basic guessing game, and start to ask questions. Which leads me to google, which leads me to edit the code and then further google something. A basic class, that I'm using to manage gamestate of a guessing game, turns into an all day thing.

    I'm studying about gamestate, instance attributes vs class attributes, decorators, what is property, etc,.

    This is all that's been taking up my time. So I've been lost in the sauce. This leads me to my question. How do you know when it's time to build out a class. I see a lot of youtube vids that devs just throw everything into a class that seem to maintain a semblance of single responsibility. But it seems like there is no maintenance of state.

    I thought best way to know if you need to build a class is if you are interacting with a database, dictionary, list, etc,. Between functions.

    Example:

    FuncA receives input from user. Checks a dic or list to see if the user had inputted that before. If not, add to the list/dic. FuncB reference the above dic/list to display data to the user.

    In the above instance, wouldn't it be best to have a class. To encapsulate everything that is occuring.

    Tl;dr I'm a newb, and wondering when you use a class vs a function.

    submitted by /u/WebNChill
    [link] [comments]

    Hello! Sort-of-experienced coder here. How do we write code for Augmented/virtual reality?

    Posted: 01 Jan 2021 04:23 PM PST

    An extra credit project came up in school for creating a small form of VR/AR walk through hallway, like a scary house. I settled on AR cause I don't have a headset yet. I have to submit written code, but don't know where to start writing code. Is Unity the only way to write AR? I've never really used it before, and I am struggling to learn it, cause of how complicated it is. The set up takes me a lot of time, and like, it's a little fuzzy in terms of tutorials lately.

    submitted by /u/Calm-Advantage-360
    [link] [comments]

    Looking for Tips to prep the course Computer architecture and assembly language

    Posted: 01 Jan 2021 06:32 PM PST

    Hello /rleanprogramming community,

    This is Alejandro. I actually have a question about how to prepare to study computer architecture and assembly language? It is one of the required course in order to transfer 4 years university as major Computer Science.

    So, I would like to know what are some amazing tips to learn this class, and how I should prepare for it.

    submitted by /u/Alejandro__W
    [link] [comments]

    Web app for multiple users? (Spring Boot + React)

    Posted: 01 Jan 2021 10:01 PM PST

    I want to create an application for multiple users. I've decided to go with Spring boot backend as I'm comfortable with Java.

    Can anyone point me towards authentication and in general the overall way to create such a backend?

    I want the users to be able to login and then see only their dashboard not another users...how would i go about this?

    Thanks.

    submitted by /u/JustForRants11321
    [link] [comments]

    College student in need of advice (C++)

    Posted: 01 Jan 2021 09:03 AM PST

    Long story short, I am new to programming and have only completely one beginner's level college course in C++. I will be taking a more in depth class this coming spring and I want to review the basics from the course I already completed(loops, functions, etc) and get ahead on some of the topics I expect from the spring course (arrays, classes, etc) What is your favorite bootcamp/study method for someone like me?

    submitted by /u/carlystanley_
    [link] [comments]

    Python Flask to Android App

    Posted: 01 Jan 2021 08:53 PM PST

    I have created a web app using Python and Flask. I am now required to create an android app for the same. I've never ventured into java/android development and know nothing about it. 1. How do I accomplish this while using only python. 2. Is there a way I can directly package an apk for my web app? 3. Can I implement push notifications on such an app? How? Thank you community!

    submitted by /u/distortedneuron
    [link] [comments]

    Courses with schedules/deadlines

    Posted: 01 Jan 2021 10:05 AM PST

    I've started learning to code but I have a lot of difficulty getting myself to work at it consistently. I don't do well without the structure of courses with schedules and deadlines. It's just the way I've always been. I'd like to find and I'm even willing to pay for some online courses that are structured in this way. And I'm not looking at something intensive like bootcamps, just smaller single languages classes. Can anyone offer some resources? What I've mostly found are free, learn at your own pace courses, which unfortunately don't work for me. Preferably I'd like to start with Python. Thanks!

    submitted by /u/virtualmang
    [link] [comments]

    how much time should i give myself to know if programming is for me or not?

    Posted: 01 Jan 2021 12:30 AM PST

    I started learning Python a week or two ago. I now know the basics like if else, loops, functions etc. Honestly i found them not too hard and I shouldn't as this is just the beginning. So I started building a TICTACTOE game two days ago. I am stuck a little and refuse to watch the solution as I want to figure out on my own. I applied everything I learned so far accurately but it just won't run properly. If I sort one problem out, another one takes it place. After a while my mind stops focusing on the problem.

    I think I may be bit of a defeatist, but I have been thinking if programming is even for me. I am not going to give up easily though. (I may not be able to articulate my thoughts properly so bear me with me please)

    So I want to ask:-

    1) Did you get frustrated when you couldn't code, or yourcode didn't run properly, when you were a beginner? Does it still happen?

    2) How much time it took you to go from a beginner to fairly good at solving problems and writing code? What are the challenges that you faced when you began?

    3) Do you still feel that you know nothing and how are you going to solve the next problem, even after years of experience? Or wonder sometime that are you even a good programmer?

    Any advice or personal experiences will be greatly appreciated. Thanks.

    Edit: I really appreciate all the replies/advices I got today. I understand now that it is normal for beginners, even experienced developers, to get stuck. What matters is that, I keep practicing and don't give up. Thanks again.

    submitted by /u/CyberpunkvWitcher
    [link] [comments]

    How do I re-execute a function every 10 minutes on a Flask server?

    Posted: 01 Jan 2021 12:54 PM PST

    How do I have a function run every 10 minutes infinitely if I user logs in when using Flask and turns off when their browser is closed?

    submitted by /u/Ristarte
    [link] [comments]

    No comments:

    Post a Comment