• Breaking News

    Tuesday, November 20, 2018

    The Path to Learn Computer Science learn programming

    The Path to Learn Computer Science learn programming


    The Path to Learn Computer Science

    Posted: 19 Nov 2018 03:11 PM PST

    Hey r/learnprogramming, I have written a guide for people who want to learn computer science and programming. It's of course not definitive and thus it should be taken as general guidance / inspiration for how you might go about studying CS and programming as a beginner.

    I've been helped by posts on this sub many times before, so I hope someone here will find this useful!

    https://www.thepathtolearn.com/computer-science/

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

    Why's it so difficult for me to code?

    Posted: 19 Nov 2018 01:59 AM PST

    Google states that it takes about a month to get started with a programming language. I've been going at Python for nearly a year and am sick of it.

    Why's it so goddamn hard?

    Why do I have to learn a module/dependency for every fucking task I do?

    Why is every tutorial some 4:3 240p power-point of some guy with an inaudible accent talking about either basic shit or Einstein-level content?

    Why are there 20 different goddamn things I HAVE to learn to do web development. NO, you don't code your social network/web app in just Python. You use HTML, CSS, JavaScript, Bootstrap, MULTIPLE frameworks + modules for JavaScript, Python, multiple dependencies for Python, a database, graphic design software, linux bash, git, and PLENTY more. GOOD FUCKING GRIEF, why hasn't anyone made this at least HUMANLY POSSIBLE?

    I'm ready to give up and realized my dream of programming will never happen. I don't know how you all do it but you're all fucking psychic god-level wizards.

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

    (When learning) Do you ever “not get” a programming concept, decide to take a break and revisit it the next day and find that you magically “get it” now?

    Posted: 19 Nov 2018 08:11 PM PST

    It's just such an interesting phenomenon.

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

    Which University course to take

    Posted: 19 Nov 2018 07:57 PM PST

    So I want to be a programmer ( games, software, apps for mobile, OS anything). I am going to University next year (in India) for a degree and I was wondering if BSC in Computer Science and then a MCA would be enough? I head that getting a Btech CSE is better and I might not get it so can you guys please advise? Thanks.

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

    Small example of using Python to automate a boring task :) felt like sharing!

    Posted: 19 Nov 2018 03:08 AM PST

    Hey guys! So I wanted to get a transcript of this vid

    https://www.youtube.com/watch?v=7cjIWMUgPtY

    So I went to

    https://downsub.com/

    which resulted in a .srt file with this kind of content

    1 00:00:01,069 --> 00:00:03,610 This video was made possible by Squarespace. 2 00:00:03,610 --> 00:00:08,960 Build your beautiful website for 10% off at squarespace.com/Wendover. 

    I'm only interested in the text so I wrote a small python script to remove this! I noticed that every line that starts with a number needs to go, so I did this in main.py in the same folder as the original .srt file

    with open('sub.srt') as f: for line in f: if line[0].isdigit(): # if line starts with number pass else: with open('sub-clean.txt','a') as out: out.write(line) 

    Quick, dirty, and it does the trick! This is why I love Python! Resulting output file

    This video was made possible by Squarespace. Build your beautiful website for 10% off at squarespace.com/Wendover. According to conventional economic rules, casinos shouldn̢۪t be able to exist. That̢۪s because conventional economic rules assume humans are rational. Conventional economic rules would predict that, if someone offered you a deal where you gave them $100 and they gave you $94.80 back you wouldn̢۪t take that deal but fo 
    submitted by /u/Rainymood_XI
    [link] [comments]

    [Javascript/React] Can't figure out input field is not cleared

    Posted: 19 Nov 2018 11:51 PM PST

    I am creating a Todo List with React, and after you input a todo > hit enter > input should be automatically cleared.

    However, in my case, the input is not being cleared, however, the state of the current item is being cleared. But it just doesn't reflect in the UI, and actually clear the input. I thought that onChange property would sync up with the input and state, however it doesn't seem like it is.

    What am I doing wrong?

    For example, if I type in 'test', and hit enter numerous times, it only prints out one time, and the rest are blank, signifying that the state is empty strings, but the input still has the word 'test' in it.

    Codepen

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

    python: UnicodeEncodeError: 'ascii' codec can't encode character : ordinal not in range

    Posted: 19 Nov 2018 11:42 PM PST

    I've been trying to figure out this error for quite sometime. I haven't added a TRY/EXCEPT command as I hope to resolve this without using it. This code has worked before, which narrows the problem down to the outcome of results.

    My Code: https://pastebin.com/NSP4Aket

    ERROR:

    Traceback (most recent call last): File "opdir.py", line 70, in <module> print """<small><font color="red">{k}</font></small>&nbsp;<a href="{f}">{b}</a><br>""".format(f=f,b=b,k=k) UnicodeEncodeError: 'ascii' codec can't encode character u'\u2013' in position 19: ordinal not in range(128) 

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

    [C#] A script to generate a tile-based map not able to determine its own design

    Posted: 19 Nov 2018 05:27 PM PST

    Hello, /r/learnprogramming!

    I am creating a Dungeons & Dragons inspired dungeon map generator in Unity. For those unaware, a map can be visualized as a grid, with each grid square representing a 5-foot by 5-foot area. It is on these maps were many encounters take place.

    I have most of the script functioning properly -- I am able to create rooms, place them on the map, have the map display, etc. The issue comes in the validation method in the script. For some reason, it is not functioning 100% accurately. I am often given maps that have rooms overlapping other rooms or passages, passages overlapping each other, etc., I am given exceptions when setting tiles that a tile would be out of the bounds of the map array, even though the validation method should be checking for that first thing. I have followed my script and manually created maps following the script exactly, but every time I do it this way, I am not given any errored maps.

    Here is the script in question, as well as an example of a "good" map -- one generated without any errors -- and a "bad" map -- one generated with several overlapping areas. I have done my best to comment each step and case.

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

    My concerns with jumping into just learning programming, could use some advice.

    Posted: 19 Nov 2018 11:13 PM PST

    Right now I just want to jump straight into learning Swift with 0 programming experience.

    My concerns:

    Should I be learning a more valuable language that can build better foundation?

    Learn a language with higher job availability?

    Do I need to pick up a bachelor's degree in a related field to land a decent job with this?

    How long will it take if I put in REAL effort and grind it out everyday.

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

    Qt's resource files don't show up in stylesheet window's "add image" window...

    Posted: 19 Nov 2018 10:28 PM PST

    Here's my resource file. As you can see, it's got one image in it.

    But when I open the "add image" window in a widget's stylesheet editor, nothing shows up.

    I tried google. I tried hookle. Now what should I do?

    Solution: Compile the project once. And it's fixed.

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

    Program help

    Posted: 19 Nov 2018 06:29 PM PST

    So, I'm wanting to learn to programme so I can create a story. I hope to learn basic coding for visual novels, but I have no idea where to start. I have no way to pay for any help or tutoring I get, but I'm more than willing to talk about my story ideas. if you are willing to help, I'd be ecstatic, but I don't expect help for free. ill repay you how I can within reason, but thank you in advance for your help.

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

    How does one become a ‘smarter’ programmer?

    Posted: 19 Nov 2018 04:14 PM PST

    Had 3 technical questions I had to solve in under 2 hours today. I got 1 of them right.

    The other 2 were basically similar to the Coin Changing problem where you sort of had to do an exhaustive search to determine the final solution (one of these actually passed the test cases, but it was brute forced).

    All I know is how to brute force it seems.

    Having discussion with friends the technical interview questions they've been asked, it seems the general trend is that these all fall under the concept of dynamic programming.

    My question is, how do I become smarter at solving these kind of problems?

    One simple example of a 'smart' solution is Fibonacci using recursion. You can use memoization to remember the values you've already solved to speed up the algorithm (I would have never discovered this myself)

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

    Robotic Manipulation using Reinforcement Learning

    Posted: 19 Nov 2018 10:04 PM PST

    Hi all, Am working on robot arm manipulation and control using reinforcement learning, I need someone who can assist me with some computation. I am familiar with vrep and mujoco environment. Any help and advise is also welcome please.

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

    Looking for tutorial recommendations

    Posted: 19 Nov 2018 09:31 PM PST

    I'm looking to learn how to make a CRM, or something similar from scratch. I cant seem to find any tutorials myself and was wondering if any of you guys no of any. Preferably using React and node.js rather then php.

    If you guys no of any good resources for learning this please let me know!

    submitted by /u/404Developer
    [link] [comments]

    I'm having trouble accessing google cloud translation because of a credential error.

    Posted: 19 Nov 2018 09:16 PM PST

    https://cloud.google.com/translate/docs/quickstart-client-libraries

    I have signed up for Google Cloud , got my key in the form of the JSON package, set the environment variable (I checked the env variables and it's there) and yet when I run my sample code I get an error stating that I don't have the correct env variables set.

    My json package is in my downloads folder, and this is my env variables line:

    "GOOGLE_APPLICATION_CREDENTIALS C:\Users\Michael\Downloads\TranslationApplication-01-16a12201d473.json"

    Does anyone have any idea why this might not be working I've been trying all day. I can answer questions if you have any.

    the line where the error occurs is "TranslationClient client = TranslationClient.Create();" and the error just states that my credentials are not correct.

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

    Learning to programme without college education

    Posted: 19 Nov 2018 09:12 PM PST

    This is a question for those of you who work successfully as computer programmers (or anywhere in the field of computer science) without a college degree. What steps did you take throughout your life to qualify you for such a position? What online courses did you take? What advice would you recommend? If you were to go back and do it again what, if anything, would you do different? All help is greatly appreciated as im stuck at a crossroads.

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

    Resources to refresh on C++

    Posted: 19 Nov 2018 05:14 PM PST

    Hey everyone! I'm looking for resources on best practices and patterns for C++. For background I took a few c++ course in college and have been programming in C# python and JavaScript extensively for the last 2.5 years. Amy leads would be greatly appreciated!

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

    Get, set and this in Java

    Posted: 19 Nov 2018 08:21 PM PST

    Hello, I am in the first semester of CS, and I am struggling with how to use get, set and this, I have searched on the internet but still nothing, an example would be great! Thanks in advice!

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

    Getting an es lint ‘prefer arrow function’ warning on these 2 lines of code but idk how to solve it (nodeJS)

    Posted: 19 Nov 2018 08:17 PM PST

    This code is right from the mailgun-js api:

    mailgun.messages().send(data, function (error, body) { console.log('email sent');}

    I'm confused because there are no return calls

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

    HTML/CSS Checklist?

    Posted: 19 Nov 2018 07:57 PM PST

    Hi,

    I need to create a "Checklist" of sorts, with a list of options that can be clicked on anywhere to enable. This is hard to describe, so here's something that's similar to what I need.

    Pretty much like that, but instead of links, it allows you to check and uncheck elements. I'll be submitting this via a POST request. I am really inexperienced in HTML, but I can figure it out if you point me in the right direction.

    Thanks!

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

    Programmers who went to Community College for an AAS in programming and got jobs, is it worth it?

    Posted: 19 Nov 2018 03:57 PM PST

    I'm enrolled in a CC for an AAS in programming. Every job I see has "Bachelors" listed as a requirement. I plan to get my bachelors, but I need to make money right now, hence the associates. I'll finish the associates in a year-year and a half. It has a co op program as well, which is nice. I'm just scared, frankly. I'm going to be angry if I put in effort into this degree and get NOTHING out of it.

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

    Is this a good series for learning C#?

    Posted: 19 Nov 2018 07:40 AM PST

    I'm interested in learning C# and wanted to watch some videos, I stumbled across this one and my questions are; is it still relevant after 4 years and is it good? Do you have any recommendations for a good C# tutorial that I should check out whether it be in video form or text?

    https://www.youtube.com/watch?v=pSiIHe2uZ2w - The series that I'm referring to.

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

    Am I learning effectively?

    Posted: 19 Nov 2018 09:41 AM PST

    Hello guys, I am a second year CS major at a CC, and I have been doing projects on the side. I want to build up my experience with projects so I look more favorable to employers/internships in the future. My current programming class is really easy, I am 2 weeks ahead on projects and I have prior knowledge of the subject matter (mainly basic java/oop) so I want to do some programming on the side.

    I tried making an app with android studio and java, and felt I am solving the problems well, but I feel I am looking up a lot of basic information and my code is sloppy and probably bad practice, or there are better ways to do it. Is it better for me to step back from the project and work through a full java book then work through a full android studio book?

    I one of the problems I have problems with my career path is that I am unsure what to learn. I look up job descriptions and they all say "Must have experience in C++, java, html, css, javascript and know a bunch of frameworks too, PHP, sql, backend, etc". How do I learn and showcase my knowledge for this? Should I make projects for every language? Should I only know a few? Should they go together? I just want to set myself up for success and I feel I could bottleneck myself or waste time if I find myself learning the wrong way or learning the wrong things.

    Thanks

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

    How to start off with gameplay programming from scratch?

    Posted: 19 Nov 2018 07:21 PM PST

    Looking for a step by step help to guide me through this clusterfuck of a subject.

    This is the only job profile in which i can see myself working happily.

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

    No comments:

    Post a Comment