• Breaking News

    Friday, January 19, 2018

    Hey r/learnprogramming, we're (again) putting on a 100% free online code bootcamp, livestreamed direct to your computer. learn programming

    Hey r/learnprogramming, we're (again) putting on a 100% free online code bootcamp, livestreamed direct to your computer. learn programming


    Hey r/learnprogramming, we're (again) putting on a 100% free online code bootcamp, livestreamed direct to your computer.

    Posted: 19 Jan 2018 04:29 PM PST

    Hey r/learnprogramming, we're going to put on another 100% free, livestreamed mini code bootcamp. It's a great way to get the basics of programming down (we go a lot further than most people think you would in a two week course), and, of course, we don't charge anything for it.

    Last time we did this a few months ago we had a few hundred people participate, including many people in the Reddit community, and it seemed like a good time (if it sucked feel free to comment and say so). So we're putting on another free live course. It'll start from ground zero, and over the course of two weeks we'll cover everything how text editors and code work generally to HTML, CSS, JavaScript, Git and Github. It won't get you to the point where you can get a job, but hopefully it serves as a solid foundation to jump off from, and you'll be able to build some simple stuff like a portfolio website or a simple JavaScript-based game.

    It starts at 6:00 PM Pacific Time each night (that's 9:00 PM Eastern), and will consist of short lectures Monday through Thursday, as well as a short assignment to complete each night. If you can't make the live class or have to miss a day, registrants will have access to the archive of each class after it's complete.

    You can register for the mini bootcamp here, and you'll be invited to the Slack channel as well: https://lambdaschool.com/mini-bootcamp.

    Now before you go and bust my balls, as I know reddit is wont to do, we do hope that some students take this course, find they enjoy our teaching style, and decide to attend the full six-month, full-time computer science academy - that's how we can justify paying people big salaries to teach for free. But I promise it won't be a giant sales pitch, we're just going to try and create something valuable for everyone.

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

    What was in your portfolio, before you got hired.

    Posted: 19 Jan 2018 09:45 AM PST

    I would like to see what people put in their portfolio right before the interview process/before they were hired.

    I think it could help give ideas for projects for myself/others to work on for their own portfolio.

    (I am asking those who were successfully hired)

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

    6 tips to make you better at teaching yourself

    Posted: 19 Jan 2018 10:11 PM PST

    As a long time programmer now trying to teach myself orchestral music composition, I've put together a few tips that made me better at teaching myself new skills (especially when it comes to programming). I thought they also may benefit the r/learnprogramming community. You can view the original post with a better formatting on Medium.


    6 tips to make you better at teaching yourself

    I have been teaching myself new skills for a long time. Here are six tips that are based on my experience.

    As I wrote in a previous article, I'm embarking on a new journey. I'm gradually leaving programming and getting into music composition. This is a perfect time to review some of the tips that served me well for over 20 years of teaching myself new skills.

    I. Something that you like

    It may sound evident, but I find it nearly impossible to learn about something that doesn't make me feel good. I sometimes had to learn a particular programming language or technology stack that I didn't enjoy and found that I couldn't commit to long-term memory what I was learning.

    I often read posts on reddit that go along the lines of "I want to learn how to code, but I am struggling with motivation, help me." Why learn a new skill that you don't enjoy in the first place? To get a better job? Maybe… and then what? Getting miserable because you have to do that job? Better spend your time on something you enjoy even if that doesn't make financial sense at the moment. In the end, it will. Trust me. The world always needs skilled and passionate people, even in the weirdest domains!

    How this applies to me: I know I won't have any problems spending countless hours learning about the music creation process. Writing music, listening to it and then sharing it brings me joy.

    II. Always learn within a context

    If I again take the example of coding, don't just go like "I want to learn how to code." Instead, approach it within a context. You want to learn A because you want to do B. Learning for the sake of learning won't bring you far and will only make you tired. On the other hand, if you tell yourself "I want to build this app idea that I have therefore I need to learn how to program," you start with much better chances to achieve your goal. This is particularly true when it comes to programming. Writing computer software ultimately serves the purpose of solving a problem.

    How this applies to me: I want to hear my music featured in a video game, TV show or movie trailer. At the moment, I supplement my income by selling programming books and building apps. Ultimately, I want to switch the source of my side income to selling my compositions, whether for trailers music or stock music libraries.

    III. Routine: you need one

    This is probably the most given advice when it comes to learning something new: you need a routine. Even if you think you don't. As humans, we are very efficient pattern-recognition machines. Gradually, when you sit at your desk to get your daily dose of learning at a fixed time, your brain will go into commit-to-memory mode on its own. As a side note, it is always better to study 30 minutes per day than trying to cram every possible bits and pieces of knowledge over 10 hours straight on weekends. Again, this is how our brain works.

    How this applies to me: I watch many TV shows. I like that. The Walking Dead, Vikings, Archer, Rick and Morty, Orange is the new black, Game of Thrones, and so on. There is always a new thing to binge watch in bed. Instead, I now commit to only watch one episode of a TV show during my lunch break once or twice a week. I'll spend an hour or two before bed on learning about and practicing music composition.

    IV. Practice

    I briefly touched on that in my previous article. Learning is only one side of the coin. As early as possible, you need to put into practice what you learn. This is probably the most important advice in this list. You can't learn to ride a bike by reading books about riding bikes or from watching online videos. At some point, you'll need to get on a bike and find your balance. The theory you gain from books will help you understand what makes it possible to ride a bike but it won't make you an expert rider.

    This is true in all fields. In programming, you'll likely face errors that were not explained in your learning material. By meeting these real-world problems and solving them on your own, you will grow. In music, it's only by writing tons of it that you'll get a feel for what works and what doesn't.

    How this applies to me: I am splitting my learning time evenly between theory and practice. However great what I'm currently learning is, I stop myself at a fixed time to move onto practicing. Sometimes, it's hard because the subject at hand is exciting but I am doing it nonetheless.

    V. Writing to learn

    This is another tip that has been working very well for me. As soon as I learn a new tricky concept, I write about it. Explaining it in my own words helps me make sure that I understood everything. If you get blocked writing about something you just learn, the chances are that you didn't fully understand the concept.

    I see this as a trend too, particularly on Medium. It seems that a lot of young developers write authoritative pieces after only a few days of learning something new. Don't write for others at first, write primarily for you. This can be a very effective tool for committing something to your long-term memory as well.

    How this applies to me: I said it before, I plan to write once or twice a week about my journey to learn orchestral music composition. I'll do that in the morning before getting ready for work. Not only, I write about what I learn; I also write more general articles like this one that applies to a broader audience. If this is of any interest to you, you should totally follow me on Twitter or join my Facebook page, or follow me on Medium.

    VI. Don't be alone

    We also are very social animals. Learning a new skill can take a very long time and make you feel lonely at times. Join communities active in your new field of study. Share with others and learn from others. Don't sit alone with your books and tutorials; this is the surest way to get burnt out and give up before you had a chance to shine at your new endeavor.

    How this applies to me: well, I joined Medium to share a little bit of what I'm doing, and I hope to read some comments on my articles to interact with human beings. I also selected a few communities on reddit: r/entrepreneur to gain knowledge and exchange about the business side of thing, r/WeAreTheMusicMakers because it is full of like-minded people and already had some meaningful interactions there. I've also signed up at V.I. Control. I have Twitter, Facebook, Instagram and SoundCloud accounts. I'll get to building a YouTube channel once I have more meaningful content to share.

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

    Will help with programming (Ruby, JS, etc) for English practice

    Posted: 19 Jan 2018 03:13 AM PST

    Hi, folks!

    I'm middle full-stack web developer from Russia. I have some experience with web, a bit with mobile develpment, work primarely with Rails/JS stack, but also interested in Elixir and worked for some time with PHP and Java.

    As you know, programmers need a good English for sure, and that's where my problem is. I don't feel comfortable when using it.

    I can share some of my experience just in case it helps me to improve language skill, maybe in text format or even by speaking from some progress point.

    If you're a beginner and interested in, please, let me know. PM me here or on Gitter, my nickname is rtrv on GitHub. Happy coding for everyone!

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

    Free Resources for learning C

    Posted: 19 Jan 2018 10:36 AM PST

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

    Having a very beginner problem with a for loop in python

    Posted: 19 Jan 2018 07:21 PM PST

    I've only been taking this python class for 2 weeks now, and I think i'm on the right track. I posted earlier and got some help, but now I'm lost again. At the moment, I'm only doing (a). The problem I think (I could totally be wrong) i'm having is I somehow need to make expenses ** i somehow, but when I try to put it in my variable I Get an error saying i is not defined.I would really really appreciate some help I've been trying to make this work for over 3 hours now :( , thanks!

    Here's my code so far http://prntscr.com/i2yh0u

    and here's the directions http://prntscr.com/i2yh7a

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

    Experienced programmers, how long did it take you before you felt "competent" at what you were doing?

    Posted: 19 Jan 2018 06:10 PM PST

    I put in 32 hours of studying this week (The Upskill course by Rob Dey) and I feel "unsatisfied" with my level of progress. I just feel I should know more with the time I put in. But I don't, I still struggled to remember under which folders certain files were (Rails) and what each one did, for example. Is this bad? Also, my brain is fried.

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

    Does anyone know about managing a very simple database?

    Posted: 19 Jan 2018 08:14 PM PST

    I'm not really sure how I should solve this, but I want to provide a service where the client submits a "vote" by submitting a string and then the number of users submitting that same string are counted. the counting is reset every day.

    Basically, I need a voting API that has thousands of possible options.

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

    Question regarding taking entry web dev/intro to programming classes simultaneously.

    Posted: 19 Jan 2018 05:45 PM PST

    I'm not entirely sure which route I want to pursue, so I thought I'd get my feet wet with a little bit of both. I've dabbled with freecodecamp/codeacademy and have enjoyed myself but would also like to explore the "programming" side of things. I'm wondering if it would be ill advised to enroll in both classes at the same time at my local school?

    Thanks for any input.

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

    Checking if a char contains a capital or lowercase of a letter.

    Posted: 19 Jan 2018 07:49 PM PST

    if (repeat == ('Y' | 'y')) 

    I want it to check if 'char repeat' is either 'Y' or 'y'. Tested it with bitwise OR and it'll either work when I type 'Y' and not work when I type 'y' or work when I type 'y' and not work when I type 'Y'. It's one or the other. My IDE (Xcode) tells me that if I use logical OR then the code won't execute. I've tried google but it doesn't really answer my question.

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

    Do you pass arrays/objects by reference in socket.io?

    Posted: 19 Jan 2018 05:31 PM PST

    I know that in Javascript, arrays and objects are always passed by reference. Is this still the case when you send an object with socket.emit, or will it create a copy and then send it over the socket instead?

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

    What is currently the best way to create a documentation website from a Github repo? What do the cool kids do?

    Posted: 19 Jan 2018 11:17 PM PST

    I have an R package which has been rigorously documented via roxygen2, with examples and tests via testthat.

    What is the most convenient way to convert this to a website? Is ReadTheDocs still the thing everyone uses?

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

    A new addition to after school clubs

    Posted: 19 Jan 2018 05:11 PM PST

    Came upon this news story. Chess club wasn't nerdy enough anymore. They had to up their game to Cyber-Security Clubs! ;)

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

    OpenMP matrix multiplication library

    Posted: 19 Jan 2018 07:10 PM PST

    I'm looking into playing around with OpenMP and later, OpenMPI, possibly CUDA. My motivation is to gain some footing on parallel and scientific computing on distributed systems.

    I want something like torch.Tensor or numpy to use as a reference, toy code to and learn something implementing a few algorithms in the space.

    Please suggest if you've come across simpler reference code.

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

    Starting Backend Web Development

    Posted: 19 Jan 2018 06:47 PM PST

    I finished the frontend of web development with HTML CSS JavaScript and now I want to move on to backend. What should I start with on the backend if my main goal to be employable?

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

    Research Paper Topics for Issues in The Field of Cryptography/Password Security?

    Posted: 19 Jan 2018 06:46 PM PST

    I know this may not be the right subreddit, but I've already posted in /r/cryptography and am also asking here as this has a much more active user base.

    I have to write a research paper on something in my field (software engineering) for my Communications in Engineering class.

    Unfortunately, I've been having difficulty narrowing down a topic for my research paper.

    I'd like to relate it to cryptography / password security but would anybody have any ideas as to some significant problems in Cryptography that I could write a relatively short (10-pages) paper on?

    I've considered ideas such as:

    "Standardizing global password security" and "Observing relationships between demographics and password strength/frequency of hacks, etc."

    But these seem either too vague or aren't a 'problem' with a solution - which if I haven't made clear is the focus of the research paper: find an issue in your field and its proposed solutions.

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

    Book suggestions for learning PHP for experienced java/python developer

    Posted: 19 Jan 2018 10:23 PM PST

    Hi.

    I'm an experienced Java and Python developer, and are about to start programming in PHP. Which books (and other resources) would you recommend me looking into, to learn PHP?

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

    A project idea for the terminally ill: Write a bot that has many things you've wanted to share with people, that operates after you die.

    Posted: 19 Jan 2018 10:19 PM PST

    It can probably be awkward if you're just trying to fight off whatever disease and do your best to not suffer. I was on a site that's not very well known, browsing profiles, and I came across one that did just that. He actually had an account sign up on a date after he knew he would be gone.
    So if you're somewhere along your programming education journey and realize there isn't enough time left to have the career of your dreams, that's one thing to think of. As this example I found put it, he said it's a way for him to sort of live on once he's gone.

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

    trying to insert row in SQLite3

    Posted: 19 Jan 2018 06:16 PM PST

    Hi,

    I'm trying to insert rows in a database using python3 and SQLite3. i'm inserting some soccer data, where one of the competitions is "Copa del Rey". I get an error saying "sqlite3.OperationalError: near "Copa": syntax error" so i guess the "del" in the string is being evaluated even though i'm using the .format function.

    This is my python/SQL statement:

    c.execute(f''' INSERT INTO table_name(ID, Competition, region, active) VALUES( {i['competition']['id']}, {i['competition']['name']}, {i['competitionRegion']}, 0); ''') 

    i really don't se what i'm doing wrong

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

    Tests to help me tell if I know enough to get a job?

    Posted: 19 Jan 2018 09:55 PM PST

    I have always had issues with imposter syndrome and correctly being able to judge what I know and what I am worth skill wise. Are their any tests for a website developer (preferably front end oriented) that would help me judge where I am at and if I truly know enough to get my first job in development?

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

    BEM file structure not followed by their own website?

    Posted: 19 Jan 2018 09:43 PM PST

    I am doing BEM from their website, and I inspected their HTML and CSS codes to see how it is done.

    Quick start file structure states that I should put every block in it's own directory.

    But look at their website they only have 1 css file, without even using a folder.

    I downloaded first website. It has multiple blocks, so what is the deal? Do I not understand their quick start?

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

    [C] Having an issue with arrays filling with random garbage.

    Posted: 19 Jan 2018 05:51 PM PST

    I'm working on a simple tic tac toe problem for homework. Just feeding in a board state, and filling an array, and then getting some information from it. I'm using a 2d array (2 rows, 8 columns) to keep track of win conditions (row 1 is win conditions for x, row 2 is win conditions for o). The issue I'm having, is that the array is randomly filling with garbage. Either the first 4, or last 4 columns in the top row fill with random integers. It changes depending on what parts of the program I comment out. I can't find any mistakes in the code I've written. If I do just x's or just o's sections of the code, it all works, and the sections are written exactly the same.

    What it is outputting:

     [x][o][o] [x][o][o] [x][o][-] [2][0][0][1][-1179704703][32767][1551124233][32640] [0][3][2][2][2][1][1][0] Team O has won! 

    What it should be outputting.

     [x][o][o] [x][o][o] [x][o][-] [3][0][0][1][1][1][1][0] [0][3][2][2][2][1][1][0] Both Teams have won! Draw! 

    Help. Please. I've never written C before :(.

    Here is the code:

    #include <stdio.h> int checkTicTacToe(char one, char two, char three, char four, char five, char six, char seven, char eight, char nine); int main() { checkTicTacToe('x','o','o','x','o','o','x','o','d'); return 0; } int checkTicTacToe(char one, char two, char three, char four, char five, char six, char seven, char eight, char nine) { char arr[3][3]; arr[0][0]=one; arr[0][1]=two; arr[0][2]=three; arr[1][0]=four; arr[1][1]=five; arr[1][2]=six; arr[2][0]=seven; arr[2][1]=eight; arr[2][2]=nine; /* This section checks each row for characters that are not 'x' or 'o' and then prints that row.*/ for (int a=0;a < 3; a++) { if (arr[0][a] != 'x' && arr[0][a] != 'o') { arr[0][a] = '-'; } printf("[%c]",arr[0][a]); } printf("\n"); for (int b=0;b < 3; b++) { if (arr[1][b] != 'x' && arr[1][b] != 'o') { arr[1][b] = '-'; } printf("[%c]",arr[1][b]); } printf("\n"); for (int c=0;c < 3; c++) { if (arr[2][c] != 'x' && arr[2][c] != 'o') { arr[2][c] = '-'; } printf("[%c]",arr[2][c]); } /* Declaring variables used for victory checks */ int checkx = 0; int checko = 0; int tacwin[2][8]; /* Checks for vertical win condition. */ for (int d = 0;d < 3; d++) { for (int e = 0;e < 3; e++) { if (arr[e][d] == 'x') { tacwin[0][d] = tacwin[0][d] + 1; }}} for (int d = 0;d < 3; d++) { for (int e = 0;e < 3; e++) { if (arr[e][d] == 'o') { tacwin[1][d] = tacwin[1][d] + 1; }}} /* Checks for horizontal win condition. */ for (int g = 0;g < 3; g++) { for (int h = 0;h < 3; h++) { if (arr[g][h] == 'x') { tacwin[0][g+3] = tacwin[0][g+3] + 1; }}} for (int j = 0;j < 3; j++) { for (int k = 0;k < 3; k++) { if (arr[j][k] == 'o') { tacwin[1][j+3] = tacwin[1][j+3] + 1; }}} /* Checks diagonal win condition */ for (int l = 0;l < 3; l++) { if (arr[l][l] == 'x') { tacwin[0][6] = tacwin[0][6] + 1; } } if (arr[2][0] == 'x' && arr[1][1] == 'x' && arr[0][2] == 'x') { tacwin[0][7] = 3; } for (int l = 0;l < 3; l++) { if (arr[l][l] == 'o') { tacwin[1][6] = tacwin[1][6] + 1; } } if (arr[2][0] == 'o' && arr[1][1] == 'o' && arr[0][2] == 'o') { tacwin[1][7] = 3; } /* Checks xwin and owin arrays for fulfilled win conditions. */ for (int f = 0;f < 8; f++) { if (tacwin[0][f] == 3) { checkx = 1; } } for (int f = 0;f < 8; f++) { if (tacwin[1][f] == 3) { checko = 1; } } printf("\n"); for(int i = 0; i < 8; i++) { printf("[%d]", (tacwin[0][i])); } printf("\n"); for(int i = 0; i < 8; i++) { printf("[%d]", (tacwin[1][i])); } /* Detects and declars winners. */ printf("\n"); if (checkx == 1 && checko == 0) { printf("Team X has won!"); } if (checkx == 0 && checko == 1) { printf("Team O has won!"); } if (checkx == 1 && checko == 1) { printf("Both teams won! Draw!"); } if (checkx == 0 && checko == 0) { printf("Neither team won! Draw!"); } return 0; } 
    submitted by /u/Sheylan
    [link] [comments]

    Trying to avoid monolithic mysq query, using union to order groups separately

    Posted: 19 Jan 2018 09:35 PM PST

    I have 4 sets of results to sort, upcoming, active, concluded and tbd. I want to order these groups separately. For example upcoming by Start_Date, active by End_Date. How do I avoid duplicating my code, and still have them all in one query so I can lazy load with a LIMIT?

    The query: https://pastebin.com/ExWDdSN8

    I know an alternative could be splitting them into single queries, going from one to the next appending their contents.

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

    Most optimal language for this use case?

    Posted: 19 Jan 2018 05:38 PM PST

    I'm currently developing an application that will be receiving data at fairly high rates from another application via a udp socket. I want to write this data to file and also display it on graphs. For the user interface though, I wanted to use C# and windows forms. But for the backend I'm unsure if I should use C# as well or C++.

    I'm much more comfortable with C++, it's my language of choice but it seems complicated to interface between the two languages if I use a more object oriented approach. On the other hand, I'm concerned about performance with C# since I have to read packets containing 100 to 200 bytes at 20-50Hz.

    If anyone can point me in a direction I would greatly appreciate it, I'm unsure what would be the best way to achieve this.

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

    Object Modelling in JS

    Posted: 19 Jan 2018 05:13 PM PST

    So after several on-sites, I've realized I'm extremely weak at class/OO modeling of example application data structures. I'm talking "design a poker game" or "design a music player like iTunes" where you have functions like "playSong and pauseSong and skipSong" etc. I think part of the reason I'm having difficulty may be because JS isn't particularly suited to OO programming. How can I get better at these, and does anyone have any good online resources? In desperate need of help, and feeling pretty low about these...

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

    No comments:

    Post a Comment