• Breaking News

    Wednesday, January 29, 2020

    An Open Letter to Those Who Want to Learn Programming learn programming

    An Open Letter to Those Who Want to Learn Programming learn programming


    An Open Letter to Those Who Want to Learn Programming

    Posted: 28 Jan 2020 06:44 PM PST

    I found a list of courses on Instagram which had some interesting mostly free places to learning programming, forgot who the poster was but here goes:

    Introduction to Interactive Programming in Python by Rice University

    Programming for Everyone by University of Michigan

    Introduction to Programming with MATLAB by Vanderbilt University

    Machine Learning for Musician and Artists by University of London

    Elements of AI by University of Helsinki

    Machine Learning by Stanford University

    Learn to Program: The Fundamentals by University of Toronto

    Divide & Conquer, Sorting & Searching, and Randomized Algorithms by Stanford University

    Creative Applications of Deep Learning with TensorFlow by Kadenze

    The Analytics Edge by MIT

    Computing in Python I by Georgia Tech

    Runestone Interactive by Georgia Tech (one of my personal favorites, had a great time with this site https://runestone.academy )

    Cryptography I by Stanford University

    Internet History, Technology, and Security by University of Michigan

    Functional Programming Principles in Scala by EPFL

    CS50's Introduction to Computer Science by Harvard University

    Introduction to CS and Programming Using Python by MIT

    How to Use Git and GitHub by Udacity (Personally I would really recommend learning about GitHub, feel free to message me if you want a quite rundown)

    Python for Data Science by UCSD

    Python and Statistics for Finacial Analysis by HKUST

    Introduction to HTML5 by University of Michigan

    As a personal side note, with programming, it is more of learning the principles and applying them to different languages as most object-oriented languages have the same four core principles of inheritance, polymorphism, abstraction, and encapsulation. Then there are markup languages such as HTML or XML, they all share some similarities. With the number of languages I know, I often get the syntactical elements mixed up. Hope this help ~Jun

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

    Programming is a strange craft

    Posted: 28 Jan 2020 05:02 AM PST

    Programming is weird.

    A lot of it is pretty mundane, and when it isn't, it often feels like hitting your head against a brick wall for a week, leaving you there asking yourself: "What did I do to deserve that ?", and yet so many, myself included, find great joy in it.

    Not just in the result, not just in the progression toward creating something, not just in having fixed that damm bug and having designed that one solution, but in the actual process of it. Most of the individual bits aren't that thrilling, but there is something about the process of programming as a whole that is just so rewarding, and I feel like it goes beyond mere flow. An excellence to it that makes it so right and satisfying, that makes it so that when you are exhausted and cannot process one more bit of information today and all is said and done, you think to yourself "What did I do to deserve that ?";

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

    Self-learning - Will I find work remotely?

    Posted: 28 Jan 2020 03:55 AM PST

    First-time poster but been following a lot of useful info and advice here. Thanks to everyone for that!

    I am starting my journey learning front-end right now following various online material. Starting to get the hang of HTML -> CSS and then will tackle Java Script. A year ago I tried Python via book but hit a learning wall/ big life changes depleted time... moved from Canada to a poorer country (personal reasons).

    Currently, my life is;

    • I have a wife and kids - my priority
    • I work Customer Service for an American company. My background is mostly in management.
    • I work full time - with commute - I am away from home 10 hours a day.
    • I work awful night hours to adapt to US time - takes a toll on family.
    • I net ~ $50/day
    • Naturally, I'm a native English speaker
    • Canadian citizen still, have a Canadian address, phone number & Bank Account (its TD so can be used in US)

    My goals;

    • Do something more interesting.
    • Work from home/ remotely.
    • Make more than $50/ day, but willing to start there.
    • Have more flexibility to my schedule

    The reason for my post is to simply ask, will this be realistic after I've developed some skills before I sink all my free time into it?

    I have read many saying nobody will hire a person remotely that has no experience, but I believe I bring a unique "cost/ risk" scenario.

    What would be your suggestions? Should I pivot my learning/ working strategy? Will I find the results I'm looking for?

    Thank you wonderful people of Reddit!

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

    6 step programming process?

    Posted: 28 Jan 2020 08:57 PM PST

    I'm a fourth year CS major, graduating next year though because of a second major in math and a minor in electrical engineering.

    I'm currently in an operating systems class where the teacher references/demonstrates use of the 6 step programming/development method. I've looked online and there are some variations of this so the steps include (it's more than six since i'm unsure how the substeps go):

    1. Starting with your main function, write function description header (Function name, algorithm, pre/post conditions, exceptions)
    2. Design your program/Outline (with comments) the process of the function
    3. Go through your comments and figure out which functions are used for which steps; comment that out. As you're adding the comments for necessary functions, if there is some function you'll need to create for that step then you branch off to:
      1. write the function description and define the function (in my case in the appropriate separate .c file)
      2. resolve the return with a dummy value
      3. add the function also to the .h file
      4. if your function uses parameters of a new type you need to define, you branch again....
    4. Once you're done with commenting out main, you write the code in main for each step.
    5. Main is done. Now to the .c file. outline the steps for each function.
    6. Comment out which steps might call other functions; branch if the function calls another function and repeat 3.1-3.4 for the called function. Come back and repeat until all the steps have the specified functions commented.
    7. top to bottom in the .c file write the code for each step of each function all while branching if needing to define global variables, defining new structs/dataTypes and branching more if a function needs you to make another function.

    One can probably see how I might get lost somewhere in there. While it's an incredibly structured way of programming, I'm wondering if anyone who uses this method regularly feels like it's too unfocused. I have ADHD so im either hyperfocus on one task or not at all. It's really hard for me to get into step one, break it down into sub-steps then jump to a sub-step that, in my case likely involves working in a different file, only to come back to the other sub-steps, and then when done with those to come back to the original step to go to step two. Some sub-steps get broken down even more, to the point I feel like I'm just jumping all over and lose track of where I am. I think of it as a rabbit hole process; when you need something you follow it all the way down the rabbit hole until every thing is able to compile and then come back up and repeat. I can follow along with the professor just fine, but I can't remember when I'm on my own.

    I can see how this is good for programming, because it involves defining everything before any code has been written so that the "shell" of a program you create can still compile. Then, at every step of actually writing the code, you can compile successfully and not get yelled at about undefined variables or references, things being unresolved etc. which helps for debugging problems more quickly and leads to a lot cleaner, more organized code.

    So really I'm just wondering if anyone else been required to use this method and has had the same problems/has tips for me? Maybe some of y'all use different methods that might be easier for someone like me?

    Any help is much appreciated.

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

    Good Websites for Coding Tests

    Posted: 28 Jan 2020 08:28 PM PST

    I finish my A.S. in Programming this semester and I plan to pursue a bachelor, however I wanted to know where my skills are when it comes to the programming industry, I was wondering if there was a way I could take programming tests similar to the ones you would take for interviews or stuff you would do on the jobs, like the ones I always hear about when it comes to programming videos on youtube. Are there any free sites that allow you to take these types of tests?

    Currently I know: C#, Java, HTML/CSS/JavaScript, and some SQL and PHP I mostly plan to stick with front end web development or front end programming however I'm willing to dip my toe in backend as well.

    I just don't know if my skills are professional level yet and wanted to see how I would fare on coding tests.

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

    I have a very stupid question. I took my first CS class today and I’m confused about something

    Posted: 28 Jan 2020 10:21 PM PST

    We were shown a demo of a program that demonstrates a turtle stomping.

    The code was: for i in range(6): taylor.forward(100) taylor.stamp() taylor.left(60)

    We coded the turtle's name to be Taylor I just omitted that part of the code.

    We were then told to write a program that would draw a 10-sided polygon (PLEASE DO NOT DO THIS FOR ME.) My question was: how do we determine how many steps should be taken? Does it matter? For the example code, it was 100, is there a formula for it?

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

    Is it a good idea to learn low level programming by making a VM and assembler from scratch?

    Posted: 28 Jan 2020 08:58 PM PST

    The idea is that I simulate a 100% RISC device with a VM (not based off of anything in particular) and then I make an assembler separate and then try to accomplish things like memory management, more advanced math functions, common programming functions like for loops, pointers, and making a stack.

    Maybe eventually I could make a file system? An entire Operating System? I don't know what I'm doing really and that's why I'm feeling uncertain that this is the right approach for me. My goal is to understand on a deeper level how these systems work and the best way that I learn is by making one myself. I did a quick search and it sounds like making an OS is a lot harder than I'm imagining. What should I do form here?

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

    Programming maths

    Posted: 28 Jan 2020 11:43 PM PST

    Hi. I am doing my cs degree and decided to go down the ai route which starts now. Looks maths heavy which is fine but what maths do you recommend learning and from what resources? I did okay at maths at school.

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

    Include time you clicked open within URL code?

    Posted: 28 Jan 2020 11:41 PM PST

    If this is possible, I imagine it'd be pretty simple, but I'm not even sure where to start.

    I do a lot of hobby projects using googleforms, and one thing I enjoy is how you can add "?entry.1=ANSWER" to the link to make it input text already prepared into the form.

    Is there a code that I could include in the hyperlink (posted on Reddit) that would set the Date/Time that the person opened the link?

    I know if it's possible it wouldn't be secure and the person could tweak it manually, but that's not a big concern.

    Ideally I'm wanting to be able to compare the open-link time to the submitted log-time, although the link might get opened in a timezone other than the one the sheet is set in. Not sure how that changes the ability here.

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

    Hi! I am Currently working as a React developer & I am able to mentor 1 person (due to time constraints).

    Posted: 28 Jan 2020 07:42 PM PST

    Hey everybody! The title pretty much says it all. By the way I am on an alt account for various reasons.

    So I had a pretty up and down journey while learning front end development. I am fully self taught no school/bootcamp. So it wasn't until I was about 6 months in when I was able to find somebody to mentor me. I think that was around the perfect time to give me the boost I really needed. So I truly appreciate the importance of having a mentor.

    As long as you have a semi-decent amount of experience and are "ready" for a mentor. I would be able to be there for questions etc. Just leave a comment on this post and I will check back tomorrow! Look forward to hearing from one of you.

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

    How to access a JavaFX label from another class?

    Posted: 28 Jan 2020 11:14 PM PST

    I want to change the properties of a Label that is in the Controller class MainController defined as @FXML Label label. The label and the MainController are properly 'linked' in the FXML file. (Running the program with this much yields no errors)However, I have a third class say TestClass from which I want to access the Label.I've tried instantiating the MainController class, and then calling the Label as follows:

    MainController c = new MainController(); c.label.setText("..."); 

    This yields the label to be null. I then tried creating a setter-type function that basically sets the text for me, but that didn't work either, and lead to the label being null.

    Then I tried creating the controller as:

    FXMLLoader loader = new FXMLLoader(....); //it contains the correct URL to the FXML document loader.load(); MainController c = loader.getController(); 

    Then I tried accessing the label both with the setter-function and directly, neither worked.

    Finally, I tried creating a function in the TestClass

    public void connect(MainController c){ c.setLabelText(...); } Calling this Method in the MainController class as: TestClass t = new TestClass(); t.connect(this); 

    And yes, this does work, I'm having to call it in the Controller class, which defeats its purpose.

    I think the problem is with instantiating controller classes

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

    Where to start to build a click to call app?

    Posted: 28 Jan 2020 10:46 PM PST

    So since skype discontinued it's click to call functionality (phone numbers turn into hyperlinks, which in turn can be used to instantly click to call that number via Skype) I cannot find a similar, fast enough click to call app solution. I want to build my own, a very simple version without all these call center features. I've never touched any sort of communication protocol topics, so I'm a bit lost on where to start reading. How do you get these free numbers to use for calling via an app. Can I code this in JS? I want to do this from scratch. If somebody can give me a topic on where to start, that would be greatly appreciated.

    submitted by /u/0rando
    [link] [comments]

    So my company is willing to pay for a class in Perl any suggestions?

    Posted: 28 Jan 2020 06:48 PM PST

    So as the title says I work for a company as a front end developer and they would like for me to learn the back end language they use...haha yes its perl but it works perfectly for our application. Does anyone have any guidance to where I should go for online courses.

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

    I have a doubt about Static Methods. Why are they present in a class? Why do we need static methods in OOP?

    Posted: 28 Jan 2020 10:22 PM PST

    A Class is a template for an Object where we can create instances of them. Why would we need static methods on them? Why do they reside inside the Class? How does an object(instance of a class), relate to a Static method?

    Languages like ruby don't let a static method be called from an object instance.(which I agree with, as the static/class method does not belong to them). Can't OOP live without static methods?

    Can you give me an example, like how/when does a static method be required for an instance of a User class?

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

    An efficient way to calculate n^n

    Posted: 28 Jan 2020 06:19 PM PST

    What is the most efficient way to calculate nn in Java. Im super confused as to how to approach this problem. Any advice is appreciated.

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

    Getting php to work with visual studio code

    Posted: 28 Jan 2020 09:59 PM PST

    Hey guys hope you're good . I am trying to start learning php and i am using wamp I have done all the xdebug stuff and everything is enabled I have put my php file in c/wamp/www/testphp but visual studio code is being weird. Every time i update the file it throws this error, "failed to save test.php: Insufficient permissions. Select retry as Admin to retry as administrator. " and when i do save as admin, it updates normally on my browser but the thing is whenever i make changes to the file on visual studio code, it always prompts me to save as admin. How do i fix this guys please anyone?

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

    How can I practice coding without putting my laptop at risk?

    Posted: 28 Jan 2020 09:27 PM PST

    Hi all, I am about to start my MPH and a GIS cert program. Both of which require some basic coding knowledge. I am however fascinated by data science and machine learning so I have set out to learn Python and R over the next 8 months before school starts.

    I know some basics of python and R from some courses as an Undergrad. But now that I am trying to learn on my own I have no idea how to practice or try any code without putting my personal computer at risk. How can I run code without using my computer's console or at least use the console but in a safe environment. The last thing I want is to accidentally brick my computer.

    I have been told to use Anaconda but I have no idea how to use it. Any recommendations?

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

    Java: Classes, methods, functions

    Posted: 28 Jan 2020 11:37 AM PST

    Figured it belongs here: just started learning Java from scratch with no programming experience whatsoever. Love the process of learning such a great thing, but I can't wrap my head around the structure of classes, methods and functions and their relations to one another. Is there an easy (ELI5) explanation?

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

    What can I do to make my site more uniform, and responsive?

    Posted: 28 Jan 2020 08:37 PM PST

    Just finished my first big project since I started coding again, got it looking great, but then when I closed the console, it looked like crap. I'm going to be brushing up on my CSS, because I'm definitely rusty. What are some things I could do to the CSS in this code to make it always look good?

    https://jsfiddle.net/Loevs82m/

    CSS:

    *{ font-family: Arial, Helvetica, San-serrif; } h1 { background: red; color: white; font-size: 48px; text-align: center; } #main-container { position: absolute; display: flex; flex-wrap: wrap; perspective: 10000px; } .card-container { position: relative; display: flex; transform-style: preserve-3d; flex-wrap: wrap; justify-content: center; align-content: center; flex-basis: 31%; height: 300px; width:300px; box-shadow: 1px 1px 6px 2px rgb(40, 40, 40, 0.6); margin: 5px; transition: 1000ms; background: #0000ff; border: 10px solid gold; } .frontFace, .backFace { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; flex-basis: 31%; text-align: center; position: absolute; height: 100%; width: 100%; backface-visibility: hidden; color: white; /*Temporary*/ text-shadow: -2px 0 red, 0 2px red, 2px 0 red, 0 -2px red; } .backFace { transform: rotateY(180deg); height: 100% width: 100%; } .frontFace img, .backFace img { position: absolute; margin-top: 30px; background: white; } img { border: gold 3px solid; width: 66%; } .name{ font-size: 24px; margin-top: 110px; } .frontName { font-size: 24px; position: absolute; margin-top: 2px; } .type { margin-top: 150px; margin-left: 66%; } .id { position: relative; margin-top: 2px; } 

    HTML:

    <!DOCTYPE html> <html> <head> <title>Pokedex</title> <link rel="stylesheet" type="text/css" href="styles.css"> </head> <body> <h1 id="main-header">Pokedex</h1> <div id="main-container"> </div> <script src="index.js" type="text/javascript"></script> </body> </html> 

    JS:

    const container = document.getElementById('main-container'); function getPokemon(callback) { const xhr = new XMLHttpRequest(); const url = 'https://pokeapi.co/api/v2/pokemon/'; xhr.onload = function() { if(xhr.status === 200) { const pokemon = JSON.parse(xhr.responseText); pokemon.results.forEach((poke, index)=>{ let cardContainer = document.createElement('div'); cardContainer.className = 'card-container'; container.appendChild(cardContainer); let frontFace = document.createElement('div'); frontFace.className = 'frontFace'; cardContainer.appendChild(frontFace); let sprite = document.createElement('img') sprite.src = `https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/${(index + 1).toString()}.png` frontFace.appendChild(sprite); let backName = document.createElement('h4'); backName.className = 'name'; function capitalName(string) { backName.innerText = string.charAt(0).toUpperCase() + string.slice(1); } capitalName(poke.name) frontFace.appendChild(backName); }) callback(); } } xhr.open('GET', url, true); xhr.send(); } function cardBack() { const endPoint = this.innerText.charAt(0).toLowerCase() + this.innerText.slice(1); const card = this.parentElement; const xhr = new XMLHttpRequest(); xhr.onload = function() { if(xhr.status === 200) { if(card.childNodes.length === 2) { card.style.transform = 'rotateY(180deg)'; } else { const details = JSON.parse(xhr.responseText); let backFace = document.createElement('div'); backFace.className = 'backFace'; backFace.addEventListener('click', ()=>{ card.style.transform = '' }) card.appendChild(backFace); let sprite = document.createElement('img') sprite.src = `https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/${(details.id).toString()}.png` backFace.appendChild(sprite); let name = document.createElement('h4'); name.className = 'frontName'; name.innerHTML = details.name; let type = document.createElement('h4'); type.className = 'type'; type.innerHTML = details.types[0].type.name; backFace.appendChild(name); backFace.appendChild(type); let ids = document.createElement('h4'); ids.className = 'id'; ids.innerHTML = details.id; backFace.appendChild(ids); card.style.transform = 'rotateY(180deg)'; } } } xhr.open('GET', 'https://pokeapi.co/api/v2/pokemon/' + endPoint, true); xhr.send(); } getPokemon(()=>{ const cardFront = document.querySelectorAll('.frontFace'); cardFront.forEach((card)=> { card.addEventListener('click', cardBack); }) }); 
    submitted by /u/laurajoneseseses
    [link] [comments]

    What is the most sought out language to learn that would make you most employable?

    Posted: 28 Jan 2020 08:27 PM PST

    I'm kind of overwhelmed with all there is to learn.

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

    Zybooks Programming Fundamentals I in C

    Posted: 28 Jan 2020 07:48 PM PST

    I'm currently taking the class as an 8 weeks course at the community college I attend.

    I have some math background so functions in chapter 2 and the introduction to logic/bools in chapter 3 were both fairly straightforward. I get to the string comparison module (3.12) and suddenly my mind blanks out.

    For chapters 1 and 2, the professor was having us do all of the participation exercises in addition to the challenges and our one lab. Now we're doing just the challenges and the lab for our assignments. I feel like I'm not really learning anything no matter how long I think it over.

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

    How do I start?

    Posted: 28 Jan 2020 07:41 PM PST

    I'm trying to start creating a video game in unity 2D I've learned a lot of the leguage to program it but I don't know what pulls me back of doing so, maybe the interface, or could it be that I don't have enought patience for learning the basics of unity? What should I do in order to really start making my game? Any advices? I'm really starting to freak out... Should I study hard and buy books and stuff? Thanks in advance :)

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

    App Development Sorces

    Posted: 28 Jan 2020 07:00 PM PST

    Trying to learn the basics of app development but I'm missing a few parts. Can anybody post a link or explain where you host your app (like a server, and how do you get it there) and how you can get an app to communicate with the server. Thanks.

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

    Extracting a list of courses from university website.

    Posted: 28 Jan 2020 06:09 PM PST

    My university has its course catalog on many pages, depending on the subject matter. How would I go about extracting course number, credits, title, and description from each page to an excel sheet?

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

    Can I just use SQL to create and populate a database and write queries?

    Posted: 28 Jan 2020 05:59 PM PST

    I have an assignment where we need to build a database for a public library, write SQL queries to create a database and populate your database with the sample set of data. So far we have learned stuff about MySQL, Oracle database express edition and SQL. I would like to do this assignment just using SQL is this possible? Is there a differeence between SQL-server-express-edition and SQL server? I'm not sure what I need to download, on Mac if that matters

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

    No comments:

    Post a Comment