• Breaking News

    Saturday, March 14, 2020

    Self-taught developer, is it possible? learn programming

    Self-taught developer, is it possible? learn programming


    Self-taught developer, is it possible?

    Posted: 13 Mar 2020 07:36 PM PDT

    I've completed Intro to HTML & CSS courses on CodeCademy, and am halfway through FreeCodeCamp's JavaScript course.

    I've been considering joining a local Bootcamp in Los Angeles, it's a 3 month commitment and $12-15k investment.

    But I've heard of two sources - Brad Traversy's YouTube channel and The Odin Project. (The Odin Project specifically, has an amazing Full Stack Program that includes Ruby on Rails)

    My question is, would these two options, along with others that you all may suggest, be sufficient to learn enough (given immense time and dedication) to successfully land a full-time developer role?

    I just believe that you simply cannot become a developer in 13 weeks, so learning on your own may be the better route. Would love to hear your thoughts!

    tdlr; Introductory experience, considering local Bootcamp, prefer to learn on own and wondering your thoughts!

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

    New Subreddit r/LearnCybersecurity

    Posted: 13 Mar 2020 09:22 PM PDT

    A subreddit to learn and discuss Cybersecurity

    https://www.reddit.com/r/learncybersecurity/

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

    C++ if a pointer is declared but not initialized is it just NULL?

    Posted: 13 Mar 2020 07:51 PM PDT

    for example with a user defined structure node

    node*;

    would this statement just make the node pointer point to NULL?

    submitted by /u/2kfan
    [link] [comments]

    [Java] Is it "bad"/"unclean" to take advantage of how division involving two ints works in java?

    Posted: 13 Mar 2020 08:05 PM PDT

    In school, we were writing a programme to find the sum of digits in a number. I wrote something like this:

    int n=scan.nextInt(), sumOfDigits=0; while (n!=0) { sumOfDigits+=n%10; //adds last digit n/=10; //removes last digit }

    I feel a bit uncomfortable using n/=10, is it better to write something like n=Math.floor(n/10) (but like some function accommodates for negative numbers also)?

    Also are the two comments too much?? I feel like they help save a bit of time understanding the code when you go over it later, but only maybe 30 seconds or so since the code isn't difficult to understand. And it also makes the code seem sort of cluttered

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

    How to Avoid burnout As a noob

    Posted: 13 Mar 2020 01:38 PM PDT

    There's so many different techonlogies I want to learn how to use. Android, Ios, Git, React. But I don't want to get burnout because I'm too ambitious. How do I learn at a fast pace and avoid burnout?

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

    Grid

    Posted: 13 Mar 2020 07:20 PM PDT

    Is there a way to make the lines actually line up?

    https://codepen.io/Wazi8869/pen/JjdLZza

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

    I had an epiphany. Copy pasting from stackoverflow is the same as using a library you couldn't actually write yourself.

    Posted: 13 Mar 2020 09:17 PM PDT

    That's it. Copy pasting is ok if you understand what's going on.

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

    Dashboard creation for schooling system

    Posted: 14 Mar 2020 12:42 AM PDT

    So, since the corona virus has caused the school to shut down. I've been reached out by an mutual friend who wants to give online classes to it's students with just questionares and Mcqs to be solved with submission.

    Ps I'm an Beginner website designer and developer with basic knowledge on how the code works.

    However he wants an dashboard with access to both students and teachers where the students can submit their answers. Then after the submission the teachers can give out the reports to be shown on the dashboard on how they performed.

    My question is 1) How is correct way to create this type of dashboard with coding. 2) How to set up the login and password with separate access for teachers and students . 3) After my successful creation of this system can I still use it to fetch more clients.

    Thank, Looking forward to hear back .

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

    Looking for a semibig Java project that not very complex, but will make me learn alot.

    Posted: 13 Mar 2020 08:33 PM PDT

    I know as much as youd get out of an AP computer science highschool class in the US I'm currently learning algorithms and soon data structures. After I'm done and improved my programming logic I want to make a project thats something you can show on a resume for internships and isn't too complex that an expert would only be able to make.

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

    Wondering how to pass an array to a function when building a class. (c++)

    Posted: 14 Mar 2020 12:18 AM PDT

    I apologize if I'm not asking this correctly, but I'm working on a question for my c++ class and am hung up on the syntax.

    The specific part of the question I'm hung up on: "Method specifications ​ : Team​ Class Method: ​readRoster(string)​: It takes a file name and reads a list of players and their points separated by a comma. Each player should be stored into the ​players​ array. The function returns the number of players stored in the array. If the file cannot be opened, it should return -1"

    My class name is team, and my first crack at the code looks something like this:

    int Team :: readRoster(string filename) { ifstream myfile; myfile.open(filename) string line; if (myfile.fail()) return -1; while(getline(myfile,line)) { players[i] = line; numPlayers++; } return numPlayers; } 

    I created an array of arrays in the header file,

     private: string teamName; Player players[50]; int numPlayers; 

    but I'm unsure how to pass the array into the function.

    also unsure if I need to redefine "numPlayers" in this specific function. Classes are really throwing me through a loop so any help is appreciated.

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

    Java Certification

    Posted: 13 Mar 2020 06:13 PM PDT

    Any cheap/free Java Certification courses? I am in school for computer engineering and I am looking to add Java to my skill set.

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

    Is a working algorithm a proof?

    Posted: 13 Mar 2020 11:37 PM PDT

    I hope I don't violate the off topic rule but I think this is an edge case that fits.

    So, years ago I took a proof writing class in college. I couldn't wrap my head around the formal logic which obviously hurt my ability to write proofs (even though using formal logic wasn't a requirement for the course the text book didn't provide alternatives). But learning programming, while challenging, wasn't the same banging my head against a wall experience because with feedback I could overcome my difficulties with the language.

    But, I remember one of my first proof assignments was proving that an element was shared in two sets. Which I couldn't do for my proof homework but an algorithm spitting out that answer I figured out in <15 mins learning programming.

    So, my question is when can and can't algorithms be the same as proofs?

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

    Why do people use AWS S3 / imgur API for hosting images?

    Posted: 13 Mar 2020 11:30 PM PDT

    I am creating a web application to learn full-stack web development. I will release the website for public use, and people can upload images on my website. The number of options available for storing images is overwhelming, and I am not familiar with any of them. The easiest way out seems to be storing images on the hard disk of the server where I will host my backend code. Do web hosting services not allow us to do so? If we are allowed, then why do people use services like AWS S3 or imgur API? If I expect to have a total of 10 GB of images, what is my best choice to store the images?

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

    After first job tips

    Posted: 13 Mar 2020 11:27 PM PDT

    Hey guys so I secured my first Jr engineer job about a month ago and I work on a automation team, but they are having me work on web dev for this one project. Rn I don't feel like I have a strong foundation to do my work and there is allot of language, frameworks, and libraries I have to learn it know to use in order to do my task. It's kinda a lurking feeling that they are going to fire me for my incompetence. Any tips on how I can go about this?

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

    Programming NES for complete beginners in 2020

    Posted: 13 Mar 2020 03:32 PM PDT

    I am looking into developing my own NES game as a fun hobby, but I have no idea where to start. For background, my programming experience is limited to C and Python. I have read online that there is a way to program NES games with Python and then compile them into the necessary assembly language, but I'd rather learn to use the originally used assembly language. I am going to have to start from the ground up, and I have done some research online and found different resources that could be helpful, but many of the forums are old and outdated.

    The main problem I have is that I don't know what to get for a development software. On nesdev.com, the following link (http://forums.nesdev.com/viewtopic.php?f=10&t=3783) listed multiple different editors that could be used to program a game, but I'm not sure which of these are relevant or legitimate.

    I am also open to any suggestions of sites with decent tutorials on developing an NES game (especially starting with the basics) if there are any that you know to be useful/reliable. A few once reliable sites mentioned on the forums turned out to be dead links.

    I appreciate any help!

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

    How do I get data from a contact form?

    Posted: 13 Mar 2020 10:52 PM PDT

    I have made a personal website mostly for the experience of doing it, it is only files on my computer now, I will not be putting in online for a while. But what I want to know and can't figure out is what do I need to know about and work on to actually get the info from my contact form? I understand that this may be a long way out and I most likely need to learn something completely new.

    Right now, my project is only HTML CSS and JavaScript/Jquery but I know a little bit about php and MySQL but not enough to know if i need to use them or if i need something else. I'm sorry this is long winded, this has been the biggest road block I've ran in to so far and i unfortunately have no IRL supports.

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

    How to stop cluttering my development environment when working on multiple projects?

    Posted: 13 Mar 2020 10:30 PM PDT

    So i'm not sure if the title is clear enough but what i'd like to learn is if there's a way to keep my computer to remaining "clean."

    Let's say I want to work on three different projects: * a MERN project * a .NET project * Java-related project

    They all require different installs or downloads onto the computer and it's personally bothering me. i would like to keep my computer clean and not "cluttered" with all these installs and environment variables.

    the only way i know how to do it right now is to use virtualbox to load up an image for each project so that they are contained in VM but that just seems a bit heavy tbh.

    is there any other way (hopefully something that's better or faster than doing this)?

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

    [c++] program works sometimes, infinite loops other times, could this fstream error be at fault?

    Posted: 13 Mar 2020 10:02 PM PDT

    Hey yall, working on a homework assignment where I modify a game program in which the 4 players roll a die, adding the face value to their point total until they reach a point where one player has 50 points and the last player to throw the die is the final player in the randomly generated order of players.

    the code for the driver program:

    #include <iostream> #include <iterator> #include <string> #include <random> #include <ctime> #include "CPlayer.h" #include <fstream> using namespace std; int main() { const int winnersPoints = 50; const int size = 4; int nPlayers = 0; const int nFaces = 6; default_random_engine e; e.seed((unsigned)(time(nullptr))); uniform_int_distribution<int>ud(1, 6); uniform_int_distribution<int>up(1, size); int pIndex = up(e); int lIndex = pIndex; bool winners = false; //file operations //read in number of players ifstream inputCount; //ifstream object to access file containing player count. inputCount.open("playerCount.txt"); if (inputCount.fail()) { //error check cerr << "Could not open player count file. " << endl; exit(1); } else { inputCount >> nPlayers; //reads number from file, assigns to nPlayers variable inputCount.close();//closes file } //dynamic player array creation CPlayer* players = nullptr; players = new CPlayer[nPlayers]; //read in names of players ifstream inputNames; //ifstream object to access file containing player names. inputNames.open("playerNames.txt"); if (inputNames.fail()) { //error check cerr << "Could not open player names file. " << endl; exit(1);//if error, displays error message, closes program. } else { for (int i = 0; i < nPlayers; i++) { //populate dynamic array of names from file string temp; inputNames >> temp; players[i].setName(temp); } inputNames.close(); } do { pIndex = (pIndex + 1) % nPlayers; int die = ud(e); players[pIndex].addPoints(die); cout << players[pIndex].getName() << " rolled " << die << " -> " << players[pIndex].getPoints() << " points" << endl; if (players[pIndex].getPoints() > winnersPoints){ int deduction = -(players[pIndex].getPoints() / 2); // divide points in half through subtraction via addition of a negative number players[pIndex].addPoints(deduction); cout << "Over points limit, penalty will be applied. " << endl; cout << players[pIndex].getName() << " now has " << players[pIndex].getPoints() << " points." << endl; } else if (players[pIndex].getPoints() == winnersPoints) winners = true; } while (pIndex != lIndex || !winners); for (pIndex = 0; pIndex < nPlayers; pIndex++) if (players[pIndex].getPoints() == winnersPoints) cout << players[pIndex].getName() << " wins" << endl; delete[] players; players = nullptr; system("pause"); return 0; } 

    pardon the system pause, the main driver program was supplied by the professor, my assignment was to modify the program to use a class CPlayers, and to read the number of players and the player names from a file, creating a dynamic array of CPlayers which will be used to play the game.

    here is the header file for the CPlayers class

    #pragma once #include <string> #include <iostream> using namespace std; class CPlayer { private: string name; int points; public: //constructors CPlayer() { name = "No Name"; points = 0; } CPlayer(string n) { name = n; points = 0; } //accessors string getName(); int getPoints(); //mutators void setName(string n); void addPoints(int p); 

    };

    and here is the cpp file

    #include "CPlayer.h" string CPlayer::getName() { return name; } int CPlayer::getPoints() { return points; } void CPlayer::setName(string n) { name = n; } void CPlayer::addPoints(int p) { points += p; } 

    The problem is that when i compile it, theres a 50/50 chance that it works as expected or it infinitely loops and ignores the condition that ends the do while loop.

    When I run the debugger, the fstream objects both have an error at the line they are declared:

    std::basic_ios<char,std::char_traits<char> > <Unable to read memory> 

    I have no clue what this error means, but its the only thing that I can point to as to why the program occasionally loops forever. Would appreciate some input on this.

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

    How to get rid of white space all around my angular project?

    Posted: 13 Mar 2020 03:48 PM PDT

    The same answer I've kept finding online is to just set:

    html, body { margin: 0; padding: 0; }

    and I did this in the main component where my project is residing (the main app.component.css in the src/app folder) and even tried doing it in all the other components' css sheets but nothing changed. Chrome dev tools says there is a 8px margin from user agent style sheets and I have no idea how to get rid of it any help would be great

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

    Career path for front-end tweaker/optimizer?

    Posted: 13 Mar 2020 05:57 PM PDT

    Hi guys. Seems there are tons of career paths in programming, and the broad scope of "what I want to do" is clear for me - web development - Front End.

    Here's the twist however. It seems that far more then writing code from scratch, I'm interested in optimizing it. I get a blast out of creating better algorithms, then the ones already present, uprgrading things to current standards, greatly reducing page's loading time, and using less known, but powerful in the right hands features of core things (html, css, js). Especially css from what i see seems to be a skill that "everyone knows" but few have mastered, and while no one is looking everyone tries to sweep that part of development under the rag and fears taking a deep dive into it's true potential.

    All that being said...is this something i'll just have to love and hope to find opportunity to use as Front End Developer, or are there career paths when doing exacty that is sought after and lands you a job?

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

    Infor Lawson

    Posted: 13 Mar 2020 09:41 PM PDT

    I'm trying to figure out how to run an IC220 report and after convert to an Excel file. Thank you!

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

    Control media playback through KeyEvents (Java Android Studio)

    Posted: 13 Mar 2020 09:36 PM PDT

    Hey everyone! I'm developing an Android app which has a button whose purpose is to play and pause any music that's playing on the phone, regardless of the source of the audio, be it Spotify, Deezer, YT Music, or any other app. After a lot of googling I managed to find the following which does in fact pause and play music, but only affects the default android music player, no other media players.

     private static void pauseMusic(Context context, int keyCode) { KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); Intent intent = new Intent(Intent.ACTION_MEDIA_BUTTON); intent.putExtra(Intent.EXTRA_KEY_EVENT, keyEvent); context.sendOrderedBroadcast(intent, null); keyEvent = new KeyEvent(KeyEvent.ACTION_UP, keyCode); intent = new Intent(Intent.ACTION_MEDIA_BUTTON); intent.putExtra(Intent.EXTRA_KEY_EVENT, keyEvent); context.sendOrderedBroadcast(intent, null); } public void pauseMusic(View v) { pauseMusic(getApplicationContext(), KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE); } 

    Android's documentation on media buttons says the following:

    Prior to Android 8.0 (API level 26), the system tries to send the event to an active media session. If there are multiple active media sessions, Android tries to choose a media session that is preparing to play (buffering/connecting), playing, or paused, rather than one that is stopped.

    The minimum API I set for my project is Android 6.0. I have tried the app whilst Spotify is playing audio and instead of stopping Spotify, it stops Spotify and plays a song from the default player. I've also tried to resume Spotify and the same thing happens. Is there someting I'm missing? Or something I'm doing wrong? Any pointers to the right direction would be greatly appreciated!

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

    For loop won't count down

    Posted: 13 Mar 2020 09:35 PM PDT

    I made a program that counts up or down (counts from -1 down to their number) to a user's desired number. However, I am having an issue counting down from -1 to a number. Here is my code for reference: https://gist.github.com/chavezcesar34/fd320ab5a8984b0d5b7c9a2bd9a1998f

    EDIT: Solved it by adding a "-" in front of num like this "-num" in the for loop for the "down" section.

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

    No comments:

    Post a Comment