• Breaking News

    Thursday, December 17, 2020

    I am in coding bootcamp for two months now and I can't believe how much I've learned. learn programming

    I am in coding bootcamp for two months now and I can't believe how much I've learned. learn programming


    I am in coding bootcamp for two months now and I can't believe how much I've learned.

    Posted: 16 Dec 2020 04:58 AM PST

    I started in mid October in this program for full-stack .Net development. We finished the front-end part like a week ago and had a test. I nailed it and I can't believe how much I learned in two months. I hadn't written a line of code before and now I can get around html, css and js. I just wanted to share with everyone here and to say keep pushing. Now we started with C# and I know the basics because some things are so similar with js. I think I might do this for life, I am just having fun solving problems with coding for now. Keep pushing and keep developing. Love ya!

    EDIT: Thank you everyone for the upvotes and awards, I've never gotten a reddit award yay that's awesome. I didn't expect this much upvotes and support. This motivates me even more. I just had a class and going to bed soon, first thing tomorrow is coding. Good night, good luck and thanks again for the love.

    Ps: Might do an update when I finish. Love ya all.

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

    How many hours should I code?

    Posted: 16 Dec 2020 08:01 PM PST

    Hello! I am a high school student (currently a sophomore). I am wondering how many hours I should code each day to get into a top university in the US? Could ya'll share how much time you spent coding or the level of programming knowledge you achieved and what university you got into?

    Any comments would be appreciated:)

    Thanks!

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

    Best books on how computers work?

    Posted: 16 Dec 2020 08:24 PM PST

    I'm learning Java and C right now, but I know next to nothing about how computers work. Can anyone recommend any books that cover the hardware that makes computers work?

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

    Guys.. I'm finally doing it. I'm trying to code. Any recommended bootcamps etc that would be a fit for me?

    Posted: 16 Dec 2020 11:24 PM PST

    So I've been a lurker here for some time now and I've posted here and there. I'm finally getting into code. I find it FASCINATING. Just watched an hour long lecture and I literally think about it while I'm doing everyday things.

    I need some help fellas. My home and work life is pretty wild. I have a wife, almost 7 year old step son, and a 1 year old daughter. I love them tremendously. My work is also 12 hour days. One week I work Monday, Tuesday, Friday, Saturday, and Sunday. The following i only work Wednesday and Thursday. I have a lot of days off right? Having a family though and other responsibilities makes it tough. I'm trying to manage this and change stuff.

    I'd like to attend a bootcamp or maybe some free programs online. Do you all have any recommendations? Or any YouTube channels that would help as well? Right now I've been looking at CS50 (Thanks to a redditor I seen) and it seems amazing. Any advice or recommendation would be appreciated. I really think I'll absolutely love code because I just love to troubleshoot and identify and solve problems. I'm stoked about this journey I'm attempting to take and I hope it changes my life.

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

    I have an unrelated B.S degree, should I go back to school for C.S?

    Posted: 16 Dec 2020 08:16 PM PST

    I have a B.S in political science. I graduated in 2017 and never really did much with it. Eventually I started learning to code and ended up in a non-development focused IT job. I have been at my current job for about a year and a half.

    Should I continue learning on my own or go back to school?

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

    Why is that when I use a switch statement, I need cin.ignore if I'm doing an input for a string in one of the statements? C++

    Posted: 16 Dec 2020 04:55 PM PST

    Why is that this works?

    #include <string> #include <iostream> // List of functions void frequency(std::string source); // counts frequencies; dynamic memory and pointers int main() { int option; std::string inputted_string; std::cout << "What would you like to practice?" << std::endl; std::cout << "Type '1' to count the frequencies of a string" << std::endl; std::cin >> option; switch (option) { case 1: // Frequency std::cin.ignore(); std::cout << "Enter string: " << std::endl; std::getline(std::cin, inputted_string); frequency(inputted_string); break; } return 0; } 

    But this does not?

    #include <string> #include <iostream> // List of functions void frequency(std::string source); // counts frequencies; dynamic memory and pointers int main() { int option; std::string inputted_string; std::cout << "What would you like to practice?" << std::endl; std::cout << "Type '1' to count the frequencies of a string" << std::endl; std::cin >> option; switch (option) { case 1: // Frequency std::cout << "Enter string: " << std::endl; std::getline(std::cin, inputted_string); frequency(inputted_string); break; } return 0; } 
    submitted by /u/Stock-List-5330
    [link] [comments]

    How important is thinking ahead?

    Posted: 16 Dec 2020 08:25 PM PST

    So its consensus that learning by doing is the best way to get good at coding. However, lets say I'm building an app, surely there's things you might do that work in the short term but screw you over far down the line. I can't think of a programming example right now but in business there's loads of examples. E.g. My parents used a paper filing system for decades but if they had used software for their customer details, they wouldn't have to spend 30 mins a day prepping forms.

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

    Stuck in loop

    Posted: 16 Dec 2020 11:50 PM PST

    Here is Code

    /* program that generates a "random walk" across a 10x10 array. The array will * * contain '.' initially. The program must walk randomly from element to element, * * going up and down, left and right, by one element. The element visited will be * 
    • marked with letter A to Z in te order visited. */

      include<stdio.h>

      include<stdlib.h>

      include<time.h>

      int main()
      {
      char road[10][10];
      char ch = 'A';

      for (int i = 0; i < 10; i++) { for (int j = 0; j < 10; j++) { road[i][j] = '.'; } } srand((unsigned) time(NULL)); int i = 0, j = 0; while (ch <= 'Z') { switch (rand() % 4) { case 0 : if (i < 9 && road[i+1][j] == '.') { road[i+1][j] = ch; ch = ch + 1; } break; case 1 : if (j < 9 && road[i][j+1] == '.') { road[i][j+1] = ch; ch = ch + 1; } break; case 2 : if (i > 0 && road[i-1][j] == '.') { road[i-1][j] = ch; ch = ch + 1; } break; case 3 : if (j > 0 && road[i][j-1] == '.') { road[i][j-1] = ch; ch = ch + 1; } break; } } printf("s"); for (int i = 0; i < 10; i++) { printf("\n"); for (int j = 0; j < 10; j++) { printf("%c\t", road[i][j]); } } 

      }

    I did some tests and figured out that the program is stuck in loop due to these line

    road[i+1][j] == '.' road[i][j+1] == '.' road[i-1][j] == '.' road[i][j-1] == '.' 

    in their respective 'if' statements.

    It seems that they are resulting in false even though I have assigned them '.' in for loop above.

    The output of the program is blank.

    submitted by /u/Creepy-Ad-404
    [link] [comments]

    Does anyone know what that coding website is that's like a futuristic game, you have to write code to progress...

    Posted: 16 Dec 2020 11:41 PM PST

    Something along those lines? It's kind of sci-fi-ish, space type of game/site you have to sign up for, and progress through some coding challenges to go through the game, and I think it helps build out the game too... I wish I could remember what it's called, and I realize this is a very generic question, but my memory of it is super fuzzy. It's fairly new I think, I came across it earlier this year.

    I figure someone here must know....

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

    Need a new computer but concerned about what I need for my upper level courses

    Posted: 16 Dec 2020 11:36 PM PST

    I'm thinking of just getting an all in one that has 16gb ram 1tb hhd and 512 ssd the graphics are integrated intel i7-10070t. My concern is that I'll be taking an Artificial intelligence and machine learning course in undergrad, would this be enough as I've heard these things can get very process heavy

    Edit: In addition to previous, are these task heavily reliant on hardware?

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

    How to webscrape without restarting with 401 error?

    Posted: 16 Dec 2020 07:50 PM PST

    I am webscraping a website using C#. Eventually, I will get a 401 error from the website and I will keep getting the error. If I open a separate chrome browser, the website is fine. My IP isn't being blocked or anything. If I restart the process, the 401 error will be gone. I tried doing new CookieContainer() (and new WebClient), but this does not fix the issue. Any suggestions on what is happening? What might be in the process that isn't being refreshed? The website does not require authentication.

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

    Final project in python for college

    Posted: 16 Dec 2020 11:26 PM PST

    I have a project that's due to 29.12.2020. for my one-semester-university-class about python. We are supposed to use Google Colab and make whatever we want: a game, a site, music player, whatever we imagine. But I don't know how to even start, what project to pic, how to make it look nice. I don't want it to be too easy but I don't want to make my life harder with super complicated project. For it to be challenging but not too hard. We will have 10-20minutes to present our project and with grades we previously earned, we will get our final grades (so this is really important to me). Can you help me in any way, what project should I pick, how should I do my project, how to start, what should I pay more attention, any tips are welcome, please?

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

    A small but annoying problem

    Posted: 16 Dec 2020 11:10 PM PST

    When i download a tutorial video off youtube, sometimes the video is zoomed in but most times the uploader does not zoom in, so when i minimize the video player i use (potplayer) it becomes so small i cant see, the only way to see well is to make the video player full screen, but by doing so i cover vs studio code. Has anybody encountered this problem and how did they resolve it. This problem has held me back from doing any woek

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

    C programming - CodeBlocks alternatives

    Posted: 16 Dec 2020 11:07 PM PST

    Hi all. Been programming for 4 months with university and its surprising how I like it. Small problem is that we've been told to use codeblocks as editor, but I really dislike it. Any light (on the memory) alternatives that are simple and have a cleaner look?

    Ps. I don't want to download 20Gb of stuff to use Visual Studio Code 😅

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

    Learning code at a young age

    Posted: 16 Dec 2020 11:01 PM PST

    I have been interested in coding ever since I could remember. I've been trying to get into Python, as I have heard it is an easy starter language, but I can never retain the knowledge and I eventually lose motivation. Due to online school, I want to get back into learning it but I have no idea how, and I am scared that I will lose motivation again. I have to balance school with this because as I mentioned I am still at a fairly young age (highschool). Anyways, what ways to learn python do you recommend?

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

    Is it possible to disassemble an binary into a compilable assembly codebase?

    Posted: 16 Dec 2020 10:46 PM PST

    All the disassemblers I've seen output assembly in the format of reports, which as far as I know can't then be easily recompiled. Is there a tool than can disassemble a native binary into a code repo similar to what one would have if they were developing software with assembly, that can then be compiled by invoking an assembler?

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

    [Java] - The method setx(boolean) is undefined for the type Runnable

    Posted: 16 Dec 2020 10:34 PM PST

    Where setx(boolean) is formatting for a JButton or JFrame.

    I've Googled around for this problem-- I've asked on Reddit, StackOverflow, and Discord. Nobody has been able to help and this is just a last-ditch effort to get this part complete before I take a week long break as it's my last day of "week on week off" learning between Java and IRL languages. I'd really just like to get some help.

    Here is the bad part of code; the error lies within the JButton or JFrame formatting lines within the array:

     public class setFormat implements Runnable { public void run() { Runnable catFormat[][] = { {catFormat[0][0] , //Button layout & [0][0] placeholder; catFormat[0][0].setBorderPainted(false), catFormat[0][0].setBackground(muis), catFormat[0][0].setForeground(Color.WHITE), catFormat[0][0].setPreferredSize(new Dimension(151, 35)) } , { //Menu layout(theme) catFormat[0][0].setVisible(true), catFormat[0][0].setSize(150, 320), catFormat[0][0].setLayout(new FlowLayout(FlowLayout.RIGHT, 20, 15) ), catFormat[0][0].setResizable(false), catFormat[0][0].getContentPane().setBackground(muis), catFormat[0][0].setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) } }; }; }; 

    If you need to see the rest of the code, it can be found in this spoiler:

    import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.event.ActionListener; import javax.swing.AbstractButton; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; public class GUI extends JFrame { static Color muis = Color.decode("#433333"); //I set the theme here to use throughout; public class setFormat implements Runnable { public void run() { Runnable catFormat[][] = { {catFormat[0][0] , //Button layout & [0][0] placeholder; catFormat[0][0].setBorderPainted(false), catFormat[0][0].setBackground(muis), catFormat[0][0].setForeground(Color.WHITE), catFormat[0][0].setPreferredSize(new Dimension(151, 35)) } , { //Menu layout(theme) catFormat[0][0].setVisible(true), catFormat[0][0].setSize(150, 320), catFormat[0][0].setLayout(new FlowLayout(FlowLayout.RIGHT, 20, 15) ), catFormat[0][0].setResizable(false), catFormat[0][0].getContentPane().setBackground(muis), catFormat[0][0].setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) } }; }; }; public JFrame catmenuf = new JFrame(); { catmenuf = new JFrame(); setFormat catmenu = new setFormat(); catmenu.catFormat[0][0] = "generalb"; catmenu.catFormat[0][1]; } final JButton generalb = new JButton("General"); { setFormat general = new setFormat(); general.catFormat[0][0] = "generalb"; general.catFormat[0][1]; catmenuf.add(generalb); } final JButton skillsb = new JButton("Skills"); { setFormat skills = new setFormat(); skills.catFormat[0][0] = "skillsb"; skills.catFormat[0][1]; catmenuf.add(skillsb); } final JButton otherb = new JButton("Other"); { setFormat other = new setFormat(); other.catFormat[0][0] = "otherb"; other.catFormat[0][1] catmenuf.add(otherb); } public static void main(String[] args) { new GUI(); } } Ignore the calls to the method, I haven't gotten around to writing them yet as the method is still incomplete. 
    submitted by /u/Prestigious_Plenty48
    [link] [comments]

    How much of JavaScript do I REALLY need to learn to create my first app?

    Posted: 16 Dec 2020 10:31 PM PST

    Hi, I have been learning Python for a few months and have finished with the fundamentals (data types, data structures, loops, functions, OOP and classes) with the aim of creating a web app for my students.

    I want to avoid learning another language so badly, but after doing some research, it seems that Javascript, CSS and HTML plus Python for back-end really are the ideal combo for an interactive web app.

    Before I forget, my app idea is this:

    I'm a teacher (not in the US/Europe) and there's a plan to introduce media literacy in the syllabus to educate students on media bias, how message/images are constructed, narrative structure,etc. What I plan is to include notes on a few topics and create quizzes or uploading images or snippets of news articles that allows discussion among the students via the app (like a comment section).

    My question is, how much of Javascript do I need to learn? I'm not looking to be an expert, and to really master Javascript, it's something that takes months or even years. I plan to follow the curriculum on freecodecamp for basic Javascript.https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/

    TL;DR: Must one be a pro in Javascript to build mobile apps? Can I get by just with the fundamentals/basics? Besides Javascript, HTML and CSS, what else must I learn(emphasis on the word MUST, it's really not easy for me to learn all these)

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

    Holiday Entertainment: The Best Books, T.V. Shows, and Movies For Programmers

    Posted: 16 Dec 2020 04:33 PM PST

    Hey guys!

    It's almost holiday season. So if you're traveling (hopefully safely) and need something on the journey or if you're just staying at home and need something to pass the time, I compiled a list of the best books/movies/TV shows for us computer science enthusiasts.

    There's some great technical and non-technical picks to get educated, unwind, and learn something new! Feel free to drop your thoughts/opinions and other recommendations!

    https://blog.thecodex.me/python-culture/

    Thanks,

    Avi

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

    How to really use this youtube-upload program in Windows?

    Posted: 16 Dec 2020 10:31 PM PST

    Enter what code in this youtube-upload program in Windows?

    https://github.com/tokland/youtube-upload

    https://ibb.co/CMv6mdH

    https://ibb.co/XDSv3Y7

    asking to enter code

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

    Any Resources for learning web development?

    Posted: 16 Dec 2020 06:35 PM PST

    I have a lot of programming experience in C++ and Python, and would like to learn Web Development. I wanna start with front end first. I understand that I need to learn CSS, HTML, and JavaScript and maybe eventually React and Angular. What are some good resources (preferably free) for this?

    Thanks in advance!

    submitted by /u/Inevitable-Opening61
    [link] [comments]

    Implementing minimax on tic tac toe game

    Posted: 16 Dec 2020 10:01 PM PST

    I am trying to implement the minimax algorithm in my tic-tac-toe game so that the computer is "unbeatable" but am having trouble trying to implement it, I am currently segfaulting because it is infinitely calling itself and never hitting any of the base cases.

    the function call is in the computer move turn, i currently just have it as:

    cout << "minimax: " << minimax(board, false, 0) << endl; // passing in board, false since its the minimizer, and 0 starting depth which isn't actually used for anything yet and isn't needed atm.

    int minimax(int board[3][3], bool maximizer, int depth) {
    int score = 0;
    if(isWinner(board) == 1) { //if the player wins
    return 10; //return +10
    }else if(isWinner(board) == 2) { //if ai wins, return -10
    return -10;
    } else if(isWinner(board) == 4) { //if its a tie
    return 0; //return 0;
    }

    if(maximizer) { //if it is the maximizers turn (player)
    int bestMove = -10000;
    for(int row = 0; row < 3; row++) { //for each move
    for(int col = 0; col < 3; col++) {
    board[row][col] = 1; //check every spot
    score = minimax(board, !maximizer, depth+1); //call recursive function
    board[row][col] = 0; //undo move
    if(score > bestMove) {
    bestMove = score;
    }
    }
    }
    return bestMove; //return the best valued move
    } else { //otherwise its the minimizers turn(AI)
    int bestMove = 10000; //try the same logic but basically flipped
    for(int row = 0; row < 3; row++) {
    for(int col = 0; col < 3; col++) {
    board[row][col] = 2; //place the '0'
    score = minimax(board, !maximizer, depth+1); //call recursive function
    board[row][col] = 0; //undo
    if(score < bestMove) {
    bestMove = score; //find minimized score
    }
    }
    }
    return bestMove; //return it
    }
    }

    my isWinner function checks every path to see if the player or ai won. it returns 1 if the player won, 2 if the computer won, and 0 if its in progress still. I also added a check for if its a tie, it returns 4 and thats why i compare to 4 in the minimax function (just randomly chosen number).

    int totalMoves = 0;
    for(int row = 0; row < 3; row++) { //for each move
    for(int col = 0; col < 3; col++) {
    if(board[row][col] != 0) {
    totalMoves++;
    }
    }
    }
    if(totalMoves == 9) { max amount of moves on a 3x3 board is 9
    cout << "TIE GAME " << endl;
    return 4;
    }

    inside minimax, if I print out the value of isWinner at the top, it just infinitely prints out 0, saying its in progress still.

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

    How do you get an idea from a client's head into the software developer's head?

    Posted: 16 Dec 2020 06:13 PM PST

    If you have a client that wants very specific software built, how do you know what questions to ask them in order to deliver a minimum viable product?

    Obviously they can explain vaguely what their needs are, but beyond that, is it mostly up to the developer to figure out what to ask next? Is there any sort of standard "customer intake form" or anything like that that would help this process?

    Should the developer have any sort of write-up or presentation prepared for the client before any code is actually written, in order to confirm that all of the client's needs are met?

    Edit: There would be no project managers involved in my case. Just me and maybe a few other developers.

    This would my first "real" project.

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

    Can you suggest a best programming course online for beginners?

    Posted: 16 Dec 2020 09:57 PM PST

    I know there are a lot to choose from but what do you think is the best? Preferably about C++ or Python. Thank you!

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

    No comments:

    Post a Comment