• Breaking News

    Saturday, August 31, 2019

    Why ‘working on a project you like’ isn’t always the right answer learn programming

    Why ‘working on a project you like’ isn’t always the right answer learn programming


    Why ‘working on a project you like’ isn’t always the right answer

    Posted: 30 Aug 2019 12:33 PM PDT

    I see this advice given on almost every post that asks for advice on how to learn programming, how to get started, how to improve motivation etc

    This has become pretty much the default answer to this question. It's not a bad answer but it's not always that helpful and it ignores a bunch of issues that people are facing when it comes to learning and motivation.

    Basically the real answer is this. Learning how to code is about doing deliberate practice for many many hours until you reach a good enough level where you can get a job or whatever. To do deliberate practice you need to put maximal effort and work on problems that scale. The hardest thing for beginners is finding problems that scale.

    Telling someone to work on a project they like isn't the best answer because often trying to build something is out of their ability and they aren't working on problems that scale. The added motivation of the project could help them persist on problems they may otherwise given up on but it's not going to solve the issue of lack of scaling, sometimes it can do the opposite.

    In terms of motivation to continue programming, obviously there is a motivational benefit from working on something where the end goal will be meaningful. However that's not the whole story of motivation. Motivation works like this.

    Motivation comes from 2 main things, value and expectancies.

    Value is how much you perceive the activity to be worthwhile to you. This comes in 3 forms

    Attainment value - this is motivation from the pursuit of mastery. You get value if the activity will help you towards achieving master

    Intrinsic value - this is around whether the doing of the task itself is enjoyable. Ie if you like solving problems

    Instrumental value - whether the activity will help you achieve other goals such as earning money, career growth etc

    The advice of build your own thing ticks the instrumental value, you'll be motivated because you'll have built this thing which is cool or useful to you. However it ignores the other 2 types of value - is it even fun for you to solve the problems you're solving and do you feel like solving these problems are helping you improve?

    On top of all that it ignores totally expectancies. Expectancies is how much you expect you can actually complete the activity. This is a big one as mentioned above, if you don't think you can solve the problems you're doing you'll lose motivation.

    So to the original point. Should you focus on building something you like? Yes but only if building it is doable, if it's challenging but not too hard and you'll actually feel like it will improve your skills.

    As an industry I'd love for us to do more to help juniors find ways to solve problems that fulfil all the criteria of learning and motivation. Not just tell them to build things and let them figure it all out

    TLDR: working on a project you like only address one small part of motivation. The keys to learning effectively involve solving problems which scale and to sustain motivation you need to feel like the problems are solvable and also are helping you improve

    Edit: I realised after posting this and seeing some comments that I haven't provided any better alternatives so here's an attempt to provide that

    So the best way to find scalable problems which will help you do constant deliberate practice is to find a predefined curriculum and go through that.

    These curriculums are built inherently to scale and so are much more effective than jumping from project to project or resource to resource.

    I know about some good ones for web development such as Freecodecamp and the Odin project. I'm sure there are others for other areas of development.

    That's my top recommendation. If not that then the next best option is to train yourself to recognise when a problem is in the sweet spot of difficulty. A problem that lies in that area should be difficult but not impossible. The way to judge is that the problem should take your full focus and mental effort, if it doesn't then it's not challenging you enough. It also shouldn't be impossible, the trick is to work on it for a few days or a week or something. Leave it come back to it and try again. If after all that you still can't solve it it's probably too hard.

    I know that doesn't seem like the best advice but if you can learn to sniff out good problems that's probably the most sustainable way to learn. Even well after you've built a career it's useful to know when something will improve your skills or not.

    Hopefully that was a good answer providing some better alternatives

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

    Why programmers use command line interface?

    Posted: 30 Aug 2019 02:25 AM PDT

    Hello, I'm new to programming (started with C) and I searched this question on web and couldn't find any specific simple explanation (my english isn't the best).

    I wonder why programmers use CLI (for which purposes)? Is it necessary to use CLI for being a good programmer? And why always LINUX? I never seen a programmer using windows cmd. I'm windows user so does it mean that i should change my os to linux to be a good programmer?

    If i use linux command line does it mean that i do not need an IDE? Or both can be used together? I saw people using text editor rather than IDE and they use linux command line for compiling/debugging etc. Why they do that? What're the advantages?

    Thank you everyone!

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

    Code language/platform for programming music/tracks?

    Posted: 30 Aug 2019 12:46 PM PDT

    I want to learn electronic music mixing--not DJ-ing, but the sound-splicing/layering from the ground up. Does a platform or language exist that makes music creation logic based or programmable? I feel like I would want to use math or different functions to change parameters in music--and I'm not sure if there is software that lets you do that to a sound sample.

    If this question makes no sense, then what's a good music-making platform for people who want to make music using sound layers (?) or something like that from the ground up? I'm good with software and I don't want something that is so simple the music creativity is limited--I want it to be programmable, and I don't really know where to start.

    Any ideas or related subs would be great, thanks for your time.

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

    Can Raspberry Pi 4 replace a laptop?

    Posted: 30 Aug 2019 09:49 PM PDT

    Hello,

    Recently my laptop malfunctioned and I am in no position to buy a new one. But today I came across Raspberry Pi 4 which is only for $55 and is being advertised as a mini computer. I was wondering if I can replace my laptop with a Rpi 4? I am learning back end development and used to use my laptop mainly for programming. Can I do my development work on the Rpi 4? Would I be able to install Ubuntu on it?

    Thank you for your answers.

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

    Here's a categorized list of (~450) resources for learning programming, collected from Reddit (mostly) over the last 2 years

    Posted: 30 Aug 2019 03:19 PM PDT

    Hi,

    I'm about to take a year off of my usual career - for a lot of reasons - however, a lot of what I'd like to do with that time is learn how to program. In preparation of that, I've been saving resources from r/learnprogramming, r/learnpython, and r/python. Sometimes these are broader "Absolute beginner to paid Developer" type courses, others are tutorials to complete a very specific task, some are success stories shared by other Redditors (for encouragement), and many of them are just redditors sharing their own perspectives on various topics. I created this for myself, but it takes very little effort for me to share, so hoping someone else might find it useful too.

    I'm now working on creating a subset of these resources to build a curriculum for myself, which I will also share in a few days. A few things to note about the list:

    • Note that I have almost no experience as a programmer, other than poking around Ruby with a buddy for a few weeks a couple years ago. If things seem incorrectly categorized, or if the categories don't always make sense, it's because I do not have the experience to know otherwise
    • Since I was most interested in learning Python, you'll notice that a lot of the content is Python oriented. However, even when the post is specifically discussing Python, if I felt the lesson is generally applicable to programming, I categorized it as "General"
    • I stopped filling in the Summary since most of the time the Title was clear enough, and well I got tired of filling it in, but I'll likely flesh it out later on
    • I put descriptions of the categories I defined in the second worksheet labelled accordingly
    • I will continue to add resources as I find more, if anyone wants to contribute, let me know.

    Here's the list:

    https://docs.google.com/spreadsheets/d/1QiknfcdyCX4gvannfDY1pEPxHt26AQ_cLZxe2eeh1GQ/edit?usp=sharing

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

    I have the project ideas, but not the experience.

    Posted: 30 Aug 2019 06:17 PM PDT

    Should I begin by taking a beginner course to develop a foundation and then try, or just start building by figuring it out piece by piece, learning along the way?

    The first thing I want to create is an improvement on how I currently budget. I use google forms to track my expenses and then track the numbers in excel. It works and I like it, but I know I can make it a better process. As an outsider, this doesn't seem overly complex and I think a good starting point is learning how data is handled and stored so I can properly manipulate it to display my monthly spending by category and against a savings goal.

    This would be for personal use only, but I think it would be an opportunity to learn about data security as well.

    Before I jump in after the holiday weekend, I want to properly prepare. Do you think jumping into this without a proper foundation is a bad idea? Does it sound feasible for a beginner?

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

    (Help) Why autojump "j" command doesn't work in my terminal?

    Posted: 31 Aug 2019 01:06 AM PDT

    Hello,

    I've installed autojump with brew, added the

    # autojump [ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh 

    line to my zshrc file, and sourced it with source ~/.zshrc. I also made sure it worked by echoing "hello" in the terminal during the sourcing.

    All of autojump's command work (jo folderName, etc.). But the most important one, "j", that allows me to navigate to a file on the fly, doesn't work.

    Any idea on how to solve this? Thanks!

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

    Kotlin community driven book

    Posted: 31 Aug 2019 01:02 AM PDT

    Hi!

    Our command develop crowdfunding project

    Our project is programming book about another language for JVM - Kotlin.
    Content:

    1. Kotlin beginning

    2. Kotlin object oriented programming

    3. Kotlin functional programming

    4. How to use Kotlin with a database, such as SQL

    5. Create your first back-end project with Kotlin and Android Studio

    6. How to use Kotlin for data analytics.
      Link to crowdfunding page https://wemakeit.com/projects/kotlin-for-everyone

    This is swiss platform and it's accept only Euro and Francs

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

    Auto Refresh web page without a plugin/extension?

    Posted: 30 Aug 2019 07:44 AM PDT

    I'm looking to take a website (employees' schedule) and put it on a big screen so that people can see the live schedule at any point in time. We need this website to auto refresh every 15-30 minutes, but we can NOT utilize a plugin/extension.

    Does anyone have ideas through on how to change either the URL or the developer tools to write something to have it auto refresh?

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

    HTML/css help for a beginner

    Posted: 30 Aug 2019 09:11 AM PDT

    This maybe the wrong sub to post this in, but you guys have always helped in the past so here goes. I have been been doing HTML for two weeks now. Before then , I have NEVER come across it before, so please be patient with me and remember this is new to me. For the sake of honesty, this is a homework question.

    So I am creating a page that has three div tags. The first div tag needs to have a certain background color, the second has a certain font color, and the third has a certain height, font and background color. Now I know how to do all those things in the style tag, but I am unsure how to break it down to where it only targets certain divs. Like, I can change the background, but dont know how to specify it to only one div.

    How do you do that? I cant seem to find anything on W3 Schools. Any help would be much appreciated.

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

    Where does my imported file go in Javascript?

    Posted: 31 Aug 2019 12:25 AM PDT

    Hello, I have a few questions regarding the import of another file in NodeJS.

    Based on my tests, when I import a file, the interpreter/compiler in V8 processes the entire imported file, even if I am exporting only one function from the file. From my understanding of closures and execution contexts, only the parts of the code from the imported file that are referenced from the exported function/object(s) are saved and are most likely stored in the heap. Everything else is garbage collected since they are not referenced from any other parts of the code.

    Is this correct? If not, where are the contents stored? Is everything from the file stored? Thanks in advance.

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

    Do you need a college degree?

    Posted: 30 Aug 2019 08:36 AM PDT

    College is not for me.

    I love coding but I am not a person who will go to college and I learn coding online is it possible to get a job as a programer or a game devoloper without a college degree? Would I need a portfolio of creations that would surpass a college degree to prove I am good? What should I do to continue my dream as a programer the only huge mistake I have made is starting at 15 and not a younger age. So is it even possible for me to follow my dream?

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

    Any techniques for visualizing code on paper?

    Posted: 30 Aug 2019 07:49 PM PDT

    Hi 👋 Does anyone know any techniques for visualizing code on paper, or just learning to visualize what code is doing? I found this video that seemed interesting and wandered if there were other techniques like this: https://www.youtube.com/watch?v=tJGrie7k97c

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

    Multi-Boot as Many OSs as Once

    Posted: 30 Aug 2019 07:48 PM PDT

    I'm planning on starting a project soon where I install as many OSs as possible on one PC with them all dual-bootable upon start-up. But beforehand I was wondering if there was any tips or tools that might help me with this project or any OSs anyone would like to see in the PC specifically? I'm really looking to see if there any tools out there to help me but I'll take any OS suggestions, too.

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

    can I get feedback on my website

    Posted: 30 Aug 2019 11:30 PM PDT

    site

    this is the my first and only project

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

    How to deal with public API key (Web Development)

    Posted: 30 Aug 2019 11:12 PM PDT

    Hello everyone! I've just recently delved into web development/programming and I want to make sure I'm going about this situation the right way.

    Quick background about my project, I'm working on a website which utilizes the Yelp API. Yelp provides an API Key which I understand should be kept secret meaning no one else should see what my API Key is. At first I was going to use JavaScript to request information from Yelp however I understand that JavaScript code is basically public so that wouldn't be a good idea as I would have my API Key visible in JavaScript code. (The reason why I was going to use JavaScript in the first place is because I need to use the information I retrieve from the Yelp API to change things on my website and so I understand that JavaScript allows for the modification of html elements from JavaScript code)

    So the next step was to figure out how else to make requests for Yelp information without using JavaScript and that's where I was able to achieve this using Python. So I have Python code that returns information using my Yelp API Key. So my question is what should be my next best step to "connect" (Not sure if that's the right term) my Python code that retrieves information from Yelp API and modifies what the user sees on my website.

    When looking up some ideas I stumbled on the Django framework but truthfully I'm not sure if that will help me in what I'm trying to do. Is there a far easier solution that I'm not aware of or am I heading in the right direction of utilizing something like Django?

    Thank you for the help and please let me know if I can elaborate more.

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

    [Java] Newbie here, trying to check if user input matches a string in an array and print something in response. Can not get a "True" statement to print.

    Posted: 30 Aug 2019 10:13 PM PDT

    import java.util.Scanner; import java.util.Arrays; public class jeopardyGame { public static void main(String [ ] args) { System.out.println("Hello, and welcome to Jeopardy! To begin, please select from the following topics: "); String topics [ ] = {"Science", "History", "Literature", "Sports", "Technology"}; String points [ ] = {"500", "400"}; System.out.println(Arrays.toString(topics)); Scanner topicChoice = new Scanner (System.in)); topicChoice.nextLine(); for (int i=0; i <topics.length; i++) { if (topicChoice.equals(topics[0])) { System.out.println("Test"); else { System.out.println("Failed"); } } } } 

    I am trying to make a Jeopardy game, but can't get past the first if-else statement where I am trying to check if the user input equals one of the Strings in the topics [ ] array, and print a statement if so.

    Goal: if user input equals Science, print out Test (which is a placeholder). I keep getting Failed (another placeholder). Is there a better way to go about this, or is there just something fundamentally wrong with my code? I have included the for statement to have it check if the input matches any index in the array. Is this proper? I get the same result without it as well.

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

    Python 3 or 2.7

    Posted: 30 Aug 2019 10:09 PM PDT

    If I were to learn python, should I go with 3 or 2.7? I know 2.7 is being deprecated in 4 months, and 3 will be the new defacto version. How exactly does the deprecation work? Will libraries or APIs stop being supported all at once? I've never really witnessed something like this before but I have payed a little attention to it.

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

    I’m using jbox2d in processing and all i want to know is how to follow a body as it rolls along a chain shape with the screen

    Posted: 30 Aug 2019 10:02 PM PDT

    I cannot find the answer anywhere. To learn box2d i created a small game where a ball travels over a chain shape but i cannot figure out how to get the camera to follow the ball. I cannot use the transform method as it messes up a ton of other coordinate things and i don't know what else to try.

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

    What files do I need to include in a Java git repository?

    Posted: 30 Aug 2019 05:32 PM PDT

    A Java project has so many files other than the actual .java files. Mostly just in the form of .iml or .xml. Which files do I need to include so that anybody can pull it and build on their own machines?

    Thank you!

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

    Attempting to find a relatively good computer for C# programming

    Posted: 30 Aug 2019 09:02 PM PDT

    I've been trying to find a good computer to buy for C# programming, but I'm not willing to spend three thousand on it. I'm looking for that is cheap and undoubtedly going to be crappy. The reason I don't want an expensive one is because I'm not even sure I want to fully pursue computer programming.

    I'm working with one of my friends to get me into tutorials and help me with programming and before I need to buy an actual computer. I want something $250 or under, which is why I understand I'd get a shitty computer at that price. I don't know what computer brand is best for running C# so I need all the help I can get. I'm coming in completely as a beginner and I would appreciate help.

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

    Is it possible to program a system in windows and run it in a raspbian?

    Posted: 30 Aug 2019 08:33 PM PDT

    I'm trying to create a system but I can't decide if I should start in windows or start already in raspbian.

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

    My Friend Believes I Should Learn to Program

    Posted: 30 Aug 2019 08:29 PM PDT

    I am nearly completed with my associates degree and decided years ago that I would go to a university for Electrical Engineering. I took a year off between HS and college and I ended up forgetting a lot. I got suspended last semester for grades, so I will have another year off. So I have honestly given up on engineering.

    I was talking to one of my friends about this, he went to school for CS and he suggested that I should try for programming. He said that since I can understand some of the concepts like recursive, I have participated in game development, and that I am good at problem solving that I would make an excellent programmer. I am hesitant since I feel that I am not nearly good enough to just transfer like that and I think that I would get bored just programming every day. What do you guys think? Feel free to ask any additional info in the comments as I am pretty tired writing this up.

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

    With Dart and Flutter on the rise, more free resources are popping up to learn them

    Posted: 30 Aug 2019 07:25 AM PDT

    It's good to see the flow of free information about Google's Dart language and the Flutter cross-platform app framework increasing so much this year.

    For those who are interested: Dart Basics

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

    No comments:

    Post a Comment