• Breaking News

    Sunday, November 4, 2018

    Got a job as a web developer after learning solo for something like a year with no degree, if anyone wants questions learn programming

    Got a job as a web developer after learning solo for something like a year with no degree, if anyone wants questions learn programming


    Got a job as a web developer after learning solo for something like a year with no degree, if anyone wants questions

    Posted: 03 Nov 2018 05:56 AM PDT

    Hello, got job now 2 months into it.

    Location: Europe

    Pay: average (I offered myself for less but they gave me more)

    Job: web developer

    Learned through official documentations, freecodecamp, technologies / languages vuejs, nodejs, some php, sql, vanilla, css, html.

    no paid courses, only free

    edx how to code simple data, stanford databases and some other courses i found

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

    Complete beginner, highly recommend CS50!

    Posted: 03 Nov 2018 12:37 PM PDT

    Hi! Just want to share my experience, and help other complete newbies.

    I just started taking CS50 on edX last night. I don't have any experience in programming, 24 y/o. I only took the first 2 lectures so far and I loved every second of it. Started at 8-9pm, and had to force myself to go to bed at 5am. Woke up at 9am, and still practicing ^

    I highly suggest CS50! It literally made me fall in love with programming. I already set myself a plan, work on CS50 for only about 4hrs a day + 2-3 hrs on freecodecamp until I finish CS50. By then, hopefully I should have a better understanding of programming, my goals and what I want to pursue; and hopefully I'll have an idea on how to continue this passion (what classes I should take online, and programming language I should focus on).

    Edit: 24 y/o in NYC, working part-time in a field that I absolutely hate.

    Edit 2: Wow, thank you so much for the gold!!! I don't deserve this, but I will make sure to pay it forward.

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

    PNG vs SVG?

    Posted: 03 Nov 2018 07:50 PM PDT

    I'm confused, it looks like that both are used to show icons/small simple shapes and images. But which should I use?

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

    Live Coding: Python Dice Roller w/ Slack Integration using Lambda AWS

    Posted: 03 Nov 2018 04:07 PM PDT

    Intro / tl;dr

    Hello! I'm planning to live stream myself creating a Dice Roller in Python and integrating it as a slack command via Lambda AWS from start to end. The end goal is to end up with a slash command that looks something like /roll 3d6 + 2. I would love it if you'd come and watch, ask questions, and contribute!

    When?

    I'm planning to start live streaming Saturday Nov. 10th at 5 PM Eastern. You can watch on YouTube here: https://www.youtube.com/watch?v=eem_MCtHZ6A

    Why?

    There are two main reasons I'm doing this. First, I'm a teacher at heart and love to share my love of programming with others. Second, creating tutorials / learn to program series is time consuming and as much as I would love to create them, I just don't have the time. Additionally, creating tutorials often misses an important piece of programming education: the design process. Doing a live stream will (hopefully) show the entire design process and also provide a way for potential coders to ask questions.

    This is a bit of an experiment for me to see if it is possible to create something useful with a smaller amount of time invested. After the live stream, I plan to write up a postmortem referencing sections of the video and have the code + all of the commit history preserved for others to use.

    How can I prepare if I want to code along?

    I will be implementing all of the code in Python 3.6 since Lambda AWS doesn't yet support 3.7. I suspect that the majority of the stream will be watching me talk through the design decisions related to parsing and calculating results. I will be hosting the code on a public github repo so that people can clone and follow along with the code as it is on my end. Who knows, maybe I'll even be able to get someone to perform a PR and merge their code in.

    The Slack Integration will require that you have admin privileges on a slack workspace and that you have an AWS account.

    You can create a slack workspace free here: https://slack.com/

    The AWS Lambda implementation will utilize AWS API Gateways and AWS CloudWatch. Everything we do will fall into the free tier and shouldn't cost you anything (though I do think you need a credit card to sign up). You can create an AWS account here: https://aws.amazon.com/

    [Post scheduled by Later for Reddit]

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

    Do you like League of Legends and are trying to learn to program? We're making software that teaches people to code through video game driven examples.

    Posted: 03 Nov 2018 12:18 PM PDT

    Hey all! So, me and my team are building a tool that makes learning to program fun by combining it with video games and are using League of Legends for starters. We're working on a closed beta and would love to have some people come in and test out the experience. The first course is Intro to Python and the next one we're building is a Machine Learning course for more advanced coders!

    If you feel like you're up to it, join our Discord and I'll hook you up! https://discord.gg/JJWJMb5

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

    How can I be notified every single time when a page updates?

    Posted: 03 Nov 2018 11:34 PM PDT

    I need to get every single instagram post notification I have on from Instagram and right now I'm not even getting 10% their system is broke. So apart from refreshing every 10 minutes, how can I check a list of IG users and see when their page updates? I know their are bots that do this, for example, supreme restock trackers, I just don't know what language the're coded in.

    Thanks

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

    Network bandwidth monitor tools

    Posted: 03 Nov 2018 09:11 PM PDT

    Hello, I'd like to know what sort of tools might be available to help me make my own bandwidth monitor. Or if anyone is aware of any overviews on the topic (my googling didn't work out). This could be in C/C++ or python.

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

    [C++] I can't get my calendar program to display properly

    Posted: 03 Nov 2018 07:23 PM PDT

    Been working on this for about 8 hours. I've asked numerous people for help but no response. I'm begging you.

    Essentially the goal is to display a month with the correct formatting after prompting the user for the number month (1 for January, etc.) and the year from 1753 onwards. Since January 1st, 1753 started on a Monday, the number equivalents become 0 for Monday, 1 for Tuesday, until 6 for Sunday.

    We have very limited knowledge. The most advanced thing we've been taught is how to create a loop.

    I can't figure out why but it seems like I'm getting the formatting right but none of the words except the prompts are coming through.

    Here is my code:

    please ELI6 because I really don't understand C++

    Thanks guys.

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

    are you interested in a code analysis series?

    Posted: 03 Nov 2018 06:50 PM PDT

    hey guys me and my friend are thinking about doing a code analysis live stream/series where you submit your code and we give you live feedback on what you can do to improve your code and make it more readable/maintainable

    if you're interested in us doing this then please let us know

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

    I lost motivation to program because no matter what I want to program it was made before and better

    Posted: 03 Nov 2018 09:32 AM PDT

    I hope you know what I mean. I have a lot of ideas what I could do. Then I google it and most of the time it already exists. It feels like it is useless to spend so many hours to make something that already exists or can do more. Maybe it is because I'm still a beginner but it is freaking me out. Maybe you can help me out.

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

    Can this challenge be done using arrays instead of vector?

    Posted: 03 Nov 2018 08:53 PM PDT

    The challenge said to do it with an array, but I did it with a vector. I kinda cheated:

    https://github.com/Chubek/CodingChallenges/tree/master/DoubleTrouble

    I don't know how is it possible to erase something from an array. How am I supposed to do that?

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

    How to do gui dev for pre-written scripts? (in linux)

    Posted: 03 Nov 2018 08:48 PM PDT

    Hi,

    I have a bunch of programs written in a mix of languages. Bash, Python, etc.

    I basically want to develop a UI where a user can click what they want, and it will automatically be run in the linux terminal.

    For example, I have a list of things that need to be installed to even run them. If the user clicks on the "Install python" button, It should automatically run in a terminal:

    sudo apt install python2.7 python-pip

    Or for another function which takes an input file, the location of installation, and an output folder directory, it will run the program they've chosen.

    Example : They will give the location for an app named pictureMaker. The picture they want made. Their desktop as output. This will run in a terminal for them.

    ./Desktop/BobsFolder/pictureMaker -i /Desktop/Pictures/Dog -o /Desktop/

    I spent the past two days learning some CSS/JS/HTML making the UI and setting everything up in this program "UGUI" that I read online someone had recommended. But the guy who made it seems to have stopped supporting it, and only has put a tutorial on running things in windows command using the windows command and I can't figure out how to run it in Linux. If someone knows how to do that it would be a great help too as I've already made it all. I just need the buttons to run the commands I want. Otherwise if you have a suggest gui tool I can use that would be great too!

    Thanks in advance!

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

    Best way to test your solutions for those hidden checks? (LeetCode and others).

    Posted: 03 Nov 2018 08:47 PM PDT

    I'm looking for some way to judge the code to see if it's the best solution. It's Swift and I hear about hidden tests done when you submit your code.

    Is there a practice setup that will tell you if you've passed the hidden tests and how good your solution is?

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

    Where would you begin to get information on the stars

    Posted: 04 Nov 2018 12:02 AM PDT

    I was just thinking of a project to maybe just look into for the current star alignment in by a location, I am not sure where to begin to find a way to do that I tried searching for an API and I didn't seem to find anything. Just looking for some advice or direction..Thanks in advance :)

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

    Programming-related RSS feeds to subscribe to?

    Posted: 03 Nov 2018 11:52 PM PDT

    I just created a Feedly account and I'm looking for programming-related RSS feeds. News, tutorials, anything. Thanks a lot.

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

    Command Prompt setup

    Posted: 03 Nov 2018 11:41 PM PDT

    Hey everyone, I double checked the wiki and previous posts and unable to find something similar.

    What I have accomplished so far:

    Downloaded Java SE Development Kit 11

    Downloaded newest Notepad++

    What I need help with:

    setting a path for Command Prompt on Windows 10

    About 5 years ago I learned Java in high school and was shown I needed to create a path in an environment to have my notepad files be compiled and executed. I tried with NetBeans and Eclipse and the programs gave me more of a headache, but Command Prompt worked perfectly fine for me. I would love to also know where to install the JDK kit. If I am missing a step, by all means let me know, if there is a link to Explain To Me Like I Am 5, don't hesitate to post it, simpler is safer in this scenario.

    If I come across a solution I shall edit this post as Answered and with the respected links. Thank you all in advanced!

    submitted by /u/Vape-Riety
    [link] [comments]

    Help JAVA GUI

    Posted: 03 Nov 2018 11:31 PM PDT

    my balance for my code doesn't update until after it hits 100 I don't know why?

    import java.awt.BorderLayout;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.JComponent;
    import javax.swing.JComboBox;
    import javax.swing.JLabel;
    public class GameViewerFrame extends JFrame {
    private DiceComponent dice;
    private JButton button;
    private JRadioButton highButton;
    private JRadioButton lowButton;
    private JRadioButton sevenButton;
    private JPanel radioPanel;
    private JPanel controlPanel;
    private JComboBox<String> betCombo;
    private JLabel balanceLabel;
    private JLabel finLabel;
    private int balance = 50;
    private int winCondition = 100;
    private int loseCondition = 0;
    public GameViewerFrame() {
    createComponents();
    }

    class ButtonListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
    dice.roll();
    dice.repaint();
    int bet;
    int hls;
    String input = (String) betCombo.getSelectedItem();
    if (input == "£10") {
    bet = 10;
    } else if (input == "£5") {
    bet = 5;
    } else {
    bet = 1;
    }

    if (highButton.isSelected()) {
    hls = 1;
    } else if (lowButton.isSelected()) {
    hls = 2;
    } else {
    hls = 3;
    }

    if (hls == 1 && dice.getSum() > 7) {
    balance = balance + bet;
    if (balance >= winCondition) {
    finLabel.setText("You WON!! you hit " + winCondition + "!!");
    controlPanel.remove(button);
    } else {
    balance = balance + bet;
    }
    } else if (hls == 2 && dice.getSum() < 7) {

    if (balance >= winCondition) {
    finLabel.setText("You WON!! you hit " + winCondition + "!!");
    controlPanel.remove(button);
    } else {
    balance = balance + bet;
    }
    } else if (hls == 3 && dice.getSum() == 7) {
    if (balance + (bet * 4) >= winCondition) {
    finLabel.setText("You WON!! you hit " + winCondition + "!!");
    controlPanel.remove(button);
    } else {
    balance = balance + (bet * 4);
    }
    }
    else {
    if (balance - bet <= loseCondition) {
    finLabel.setText("You lost by not having enough money left to bet");
    balance = balance - bet;
    controlPanel.remove(button);
    } else {
    balance = balance - bet;
    }
    }

    String nBalance = "Balance = £" + balance;
    balanceLabel.setText(nBalance);
    }
    }

    class RadioListener implements ActionListener {
    public void actionPerformed(ActionEvent event) {
    button.setEnabled(true);
    }
    }

    public void createComponents() {
    dice = new DiceComponent();

    button = new JButton("Throw Dice");
    ActionListener listener = new ButtonListener();
    button.addActionListener(listener);
    button.setEnabled(false);

    highButton = new JRadioButton("High");
    lowButton = new JRadioButton("Low");
    sevenButton = new JRadioButton("Seven");

    ButtonGroup group = new ButtonGroup();
    group.add(highButton);
    group.add(lowButton);
    group.add(sevenButton);

    ActionListener radioListener = new RadioListener();
    highButton.addActionListener(radioListener);
    lowButton.addActionListener(radioListener);
    sevenButton.addActionListener(radioListener);

    radioPanel = new JPanel();
    controlPanel = new JPanel();
    finLabel = new JLabel();
    balanceLabel = new JLabel("Balance = £50");
    radioPanel.setLayout(new BorderLayout());
    radioPanel.add(highButton, BorderLayout.NORTH);
    radioPanel.add(lowButton, BorderLayout.CENTER);
    radioPanel.add(sevenButton, BorderLayout.SOUTH);

    String[] bets = { "£10", "£5", "£1"};
    betCombo = new JComboBox<String>(bets);
    controlPanel.add(radioPanel);
    controlPanel.add(button);
    controlPanel.add(betCombo);
    controlPanel.add(balanceLabel);
    controlPanel.add(finLabel);
    add(dice);
    add(controlPanel, BorderLayout.SOUTH);
    }
    }

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

    Binary Tree T/F question

    Posted: 03 Nov 2018 07:03 PM PDT

    I have some True of False questions.

    Is the maximum number of leaves in a binary tree of depth h 2^h.?

    Is the maximum number of nodes in a binary tree of depth h 2^(h+1)-1?

    If possible a very simple explanation but a True or False will work

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

    Started C# recently, would like to request help some some aspects of it please

    Posted: 03 Nov 2018 10:30 PM PDT

    Hello everyone,

    I have recently started out with C#, and even though programming is not my strong point, i would like to rectify that. I plan on pouring as many hours into this as possible to get over the hurdles, but there are things that I just cannot wrap my head around yet.

    I have found this website - w3resource - to help me start out.

    I understand the basics - operators, data types, etc - I am just having trouble with technicalities.

    I would like to do all the excercises listed in there, starting with the Basic topic, but i guess i would like to complicate my own life - instead of creating a new project or file for each exercise, i would like to put everything - i possible - to a single file, and have a user input decide which one to run.

    Example:

    Enter exercise number: {int}

    Which would take me to the corresponding exercise task.

    There are 62 altogether in the Basic topic, and i was wondering how complicated it is to make it behave like so:

    if I enter ....

    {1} ► Would run exercise 1, which is print Hello {name} in a different row

    {6} ► Would run exercise 6, which is ask 3 numbers as user input, then multiply them.

    ...etc

    I trust you, i don't trust myself, so clarification:

    • I intend to find a solution for each exercise myself, i am not asking you to solve them for me

    • I wonder if it is possible to make something at a beginner level that would essentially act as a selector for exercises in a single file, as opposed to creating a new project for each one ►user input string ► convert to int ► run specific code for given exercise

    • I am assuming this problem has multiple solutions, apart from difficulty, is there any reason to implement one over the other?

    Also, I am currently using Visual Studio Community, and I was wondering if MonoDevelop is more preferred for C#?

    Thank you!

    Downvote? What did i do wrong?

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

    How to learn to code - Treehouse

    Posted: 03 Nov 2018 06:23 PM PDT

    Sublime Plugin

    Posted: 03 Nov 2018 10:07 PM PDT

    I am interested in writing/improving on a sublime plugin. However, when looking for documentation I have found it fairly sparse. I have found the sublime API, but it is hard to find information on how to debug a sublime plugin. Has anyone does this and if so do you have any advice?

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

    Perl Vs python . Which is easy to learn?

    Posted: 03 Nov 2018 09:31 PM PDT

    Hello people, I am a College student and want to learn a scripting language. I know C and very basic idea of algorithm and data structures.

    I have read about python being famous,but people also say perl can do the tasks much easier than python. So I am confused, which language should I pick to learn. Consider me a noob,almost.

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

    What to do when you don't understand why your code works?

    Posted: 03 Nov 2018 03:06 PM PDT

    Many times while trying to solve a hard programming problem, I resort to trial and error. Change one thing, test it, doesn't work, try another, test it, until it works. However, if I were to explain my code to someone else line by line, I wouldn't be able to explain why my solution works, it just does. This invariably happens when working on more complex problems involving many subproblems at once, like my working memory can't process the whole thing at once, only fractions of it, piecemeal. How can I avoid this?

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

    I'd like to become a programmer

    Posted: 03 Nov 2018 08:49 PM PDT

    Hi, I've always been interested in programming, I've messed around with C, Python, and other languages I don't remember, I've never got to a point where I could work on projects, I have no idea of what to do with the knowledge.

    Anyways, recently I realized I want to work as a programmer, meanwhile I do my life stuff, I'd like to develop skills good enough for a job, what language should I pick up that is universally used, while at the same time being on a level of easy/intermediate, it doesn't matter the area of its use, I wanna pick up anything.

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

    No comments:

    Post a Comment