• Breaking News

    Saturday, November 23, 2019

    If you are learning programming(newbie), these may be your treasures on the internet! learn programming

    If you are learning programming(newbie), these may be your treasures on the internet! learn programming


    If you are learning programming(newbie), these may be your treasures on the internet!

    Posted: 22 Nov 2019 02:55 AM PST

    As many ask for free resources in this vast world of internet, so I thought of sharing these treasures with you I came across on Twitter.

    👉16 Sites you can learn coding for free.

    • GitHub
    • Codecademy
    • Treehouse
    • Udemy
    • Coursera
    • Khan Academy
    • W3Schools
    • EdX
    • FreeCodeCamp
    • Evanto tuts +
    • Codeconquest
    • Udacity
    • Sololearn
    • Code Avengers
    • Learnenough

    ETA from comments: - The Odin Project - GeeksforGeeks - chingu.io

    👉10 Free Games to improve your coding skills

    • CodeMonkey
    • Flexbox Defense
    • Ruby Warrior
    • CodeCombat
    • Robocode
    • Cyber Dojo
    • Code Wars
    • CodinGame
    • Flexbox Froggy
    • Code Hunt

    ETA from comments: - exercism.io - edabit - HackerRank - Advent of Code - Leetcode

    👉10 Programming Blogs You can follow

    • Coding Horror
    • A List Apart
    • Codepen
    • The Crazy Programmer
    • CodeWall
    • Cloudscaling
    • CodePen Blog
    • Hackster . io
    • CSS-Tricks
    • The Mozilla Blog

    Edit to Add:

    👉Here are 20 YT channels to follow - Corey Schafer - TheNewBoston - Traversy Media - Dev Ed - Sentdex - Data School - FreeCodeCamp - ProgramWithErik - Coding Garden With CJ - FunFunFunction - The Coding Train - CodingPhase - CSDojo - MMTuts - LevelUpTuts - Wes Bos - Academind - The Net Ninja - Stefan Mischook - Caleb Curry

    ETA from comments(mostly for learning C++): - Javid9x - Bo Qian - CoffeeBeforeArch - Vadim Karpusenko

    If you know and use other resources, please do mention in your comments so that others may find them helpful.

    Have an amazing day! Happy coding! :)

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

    Got my first programming job coming from a non technical background!

    Posted: 22 Nov 2019 12:38 PM PST

    Hey everyone, I just wanted to share the news and excitement, and hopefully give some hope to those that may have been/are in a similar position. January of 2019, I was still enrolled in pharmacy school. Prior to that I received my Bachelors degree in Biology. February of 2019, I began my transition over to computer science by enrolling in a masters in Computer Science degree. On my own time, since January 2019, I was learning Python, and in school I took classes in Java and in C. Since June, I had been applying to computer science related internships. After having applied to over 150 positions, and interviewed 4 times, I am thrilled to say that I finally landed my first tech job as a Data Scientist Intern. I will heavily be using Python,R, and complimentary technology. I am beyond excited, and I just wanted to share that excitement! To anyone out there, that may have been in or is in a similar position, just know that if you set your mind to anything and are persistent you can achieve it. It will take a lot of time and effort but you can do it! 😀

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

    Are website builders going to replace hand coding?

    Posted: 22 Nov 2019 11:39 PM PST

    I've just recently started learning HTML and CSS and so far I like it and could see myself diving deeper into web design and web developing. Just like most of you guys, I've been seeing a handful of Wix ads telling me that I can build proffesional looking websites and what not, most people say it is better to use those website builders to save time, but is it really worth it? Are Wordpress and Wix really more useful than coding a website by yourself? Will those website builders replace HTML and CSS and should I stop learning them?

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

    how would I make a hamburger button that closes the nav after I've already clicked it once to display it

    Posted: 22 Nov 2019 09:07 PM PST

    hey I'm trying to make a hamburger button that opens on one click and then closes on the next.

    here's my html

    `<button class="hamburger">` `<div class="hamburgerLineOne"></div>` `<div class="hamburgerLineTwo"></div>` `<div class="hamburgerLineThree"></div>` `</button>here my Javascript` 

    here's the CSS that hides the nav and then shows it when the button when clciked

    nav {

    `font-size: 40px;` `display: none;` 

    }

    .showing{

    `display: block;` 

    }

    here's the javascript

    let hamburgerNav = document.querySelector('.hamburger')

    let navList = document.querySelector('nav')

    let navPop = function() {

    `navList.setAttribute('class','showing')` 

    }

    let navExpand = hamburgerNav.addEventListener('click', navPop)

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

    Udemy Black Friday Sale

    Posted: 22 Nov 2019 12:32 AM PST

    Just FYI, Udemy's Black Friday Sale started today. Everything that was $20 two hours ago is now $10.

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

    Need help finding the last letter of a name.

    Posted: 23 Nov 2019 12:00 AM PST

    Hey all, I just learnt how to find a letter in a String using charAt and the length using charLegnth but I got 2 assignments, one is to find the first letter of a name BUT put the search for the first character in its own method. Second one is finding the last letter of a name while the name is from the user's input (meaning the length is different each time) and again put the search for the first character in its own method. I'd be glad if anyone can give a hint or help in some way.

    https://hastebin.com/vefaxaluyu.cs

    That's my code for the first one by far, but it's not working and I'm trying to figure what I did wrong.

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

    ArrayList indexes its elements, LinkedList does too?

    Posted: 22 Nov 2019 11:58 PM PST

    ArrayList shifts its elements when we remove first element for instance and it takes a lot of time so removing an element is a major con for this ADT. But I created LinkedList that contains around 7000 String elements. Then did this operations:

    System.out.println(list.get(1005));

    list.remove(0);

    System.out.println(list.get(1005));

    Output: "figure" "Comes"

    My question is did LinkedList shifted its elements like ArrayList or am I getting the concept wrong?

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

    Guide to create a Photo editing web app

    Posted: 22 Nov 2019 11:48 PM PST

    I have been learning javascript for a while now. How can I create basic photo editing app which can perform cropping,filtering and layers. Any blogs, tutorial,guide to create such web app. I just need to know what goes into creating such web app

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

    Getting Started with Android Application Development! Some Questions!

    Posted: 22 Nov 2019 10:31 PM PST

    I researched and found that Java is the best language for Android Application Development. Can I make applications like Facebook, Instagram, candy crush, flappy birds etc using Java.

    Also, what are others things possible with Java? Thanks

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

    Best way to get non-programmer up to speed for basic analysis/QA?

    Posted: 22 Nov 2019 10:21 PM PST

    I work as a product owner/analyst in a front-end dev team, but I never had any formal CS training. I'm alright with html/css/javascript from self-learning, but due to the lack of in-depth training, have a hard time understanding some concepts and lingo that devs use in everyday work, especially when it's backend or devOps related. For example, when we're troubleshooting site issues devs may mention lingo like "ajax calls", "TTL", "nginx", "http headers" or "akamai cache", which I will only find out after the fact from googling (and not a very good understanding still), but resulted in me not understanding what in the world they're talking about during the meeting itself.

    What's the best way to get up to speed on basic concepts/lingo, from a product owner perspective, just so I don't feel like devs are speaking Latin in meetings? Reason I'm asking is as a product owner I don't think I have to go through full CS courses or programs cause we're not working with code after all. It's kinda disappointing a lot of sites like Codecademy or Coursera are no longer free, as I really loved their laid-back and easy-to-use UI and beginner friendly approach.

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

    I need help to understand help to make this work

    Posted: 22 Nov 2019 10:04 PM PST

    In this assignment, you will create the following data file in Notepad: 25 5 1 7 10 21 34 67 29 30

    You will call it assignment4.dat and save it in c:\data\lastname\assignment4. Where lastname is your last name.

    The assignment will be a console application that will prompt the user for a number. Ex. Console.Write("Enter a number: ")

    And then read in the number Ex. Number = Console.ReadLine()

    You will then read the data file using a while statement. For each time you read a value from the data file you will compare it to the user input value.

    Ex. User inputs the value "10". The first value from the data file is "25". 25 is greater than 10, so the output would look like this, "25 is greater than 10". The next value from the data file is "5", so the output would be "5 is less than 10". Also check for equal values as well.

    You will also total the values from your data file and then average them at the end. Your total will be 229 and the average will be 22.9. The total variable should be a double and rounded to two decimal places. The results should be printed to the screen at the end of the program.

    Required elements:  Comments and documentation  Data file  While statement (read the data file)  Totaling the contents of the data file  Averaging the total

    Variables needed:  Number (input from the screen) o Type double  Datanumber (input from the data file) o Type double  Total (values totaled from data file) o Type double  AverageData (Average from the total) o Type double  Const variables of string type o Author o Date o Purpose

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

    This is for Python Learners from India

    Posted: 22 Nov 2019 09:40 PM PST

    Guys, here's a great opportunity for you to enroll in online courses at just RS. 360, with udemy black friday sale. I highly recommend that you take a look at top python programming courses in this post and get one for yourself

    Good luck!

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

    Do I need to delete pointers that arent allocated with new?

    Posted: 22 Nov 2019 09:33 PM PST

    I understand that if I do:

    int* ptr = new int; 

    I have to run:

    delete ptr; 

    What about just:

    int* ptr; 

    Do I still need to run delete in the destructor?

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

    [Tinkercad Codeblocks] Least "line" 3x3 sphere array?

    Posted: 22 Nov 2019 05:44 PM PST

    So far this is the smallest I've gotten it

    https://imgur.com/a/eZ23Yb9 (sorry about the ss, can't figure out how to do it otherwise)

    Due to the variable system here I don't think it is possible to make it smaller, came here to make sure.

    (for CS class btw)

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

    Potential plagiarism

    Posted: 22 Nov 2019 05:36 PM PST

    I'm not sure if this is the right place to discuss this, but any sort of input that could help is greatly appreciated.

    I've been flagged for plagiarism on one of my assignments in an introductory to CS course, and as a result, I received 0 and I'm having to meet up with the instructor next week to discuss the grading.

    I've been extremely busy with other classes and also I have a job so I don't have time to go to office hours outside of class. So instead, I went to seek help from Chegg Tutors, and I requested a lesson with a tutor to assist me with the assignment. I may have not cited in the program that the tutor helped me write the code. I'm feeling extremely anxious because I don't know what to tell the instructor when I meet with him.

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

    Page has to be refreshed in order to get data from the api

    Posted: 22 Nov 2019 05:06 PM PST

    I have a working auth. flow. There is just one strange bug. When I log in with a first user I first have to refresh the page in order to get data in my view. When I log out with this user and a next user logs in I still have the data of user1 in my view. If I log out again with user2 and log in with user3 I have the data of user2 in my view. So it seems like its always one behind. I tried to fix it with with destroying the subscription, but that didn't solve the problem. Also when I think that bug begins when I have to refresh my page in order to get my first users data, to destroy the subscription cannot be the errors solution.This is my code:auth.service: Where I post the users credentials, give back a token, and store it and the user_id in order to get the authenticated users data in the view.

     import { Storage } from '@ionic/storage'; import { JwtHelperService } from '@auth0/angular-jwt'; export const TOKEN_KEY = 'access_token'; export const USERNAME_KEY = 'username_key'; export const USER_ID = 'user_id'; ... user = null; refreshToken = null; authenticationState = new BehaviorSubject(false); constructor(private storage: Storage, private helper: JwtHelperService) { this.checkToken(); } checkToken() { this.storage.get(TOKEN_KEY).then(access => { if (access) { this.user = this.helper.decodeToken(access); this.authenticationState.next(true); } }); } apilogin(username: string, password: string) { return this.http.post<any>(`${this.url}`, { username, password }) .pipe( tap(res => { this.storage.set(TOKEN_KEY, res['access']); this.storage.set(USERNAME_KEY, username); this.storage.set(USER_ID, this.user['user_id']); this.user = this.helper.decodeToken(res['access']); console.log('my user: ', this.user); this.authenticationState.next(true); })); } apilogout() { this.storage.remove(USER_ID); this.storage.remove(USERNAME_KEY); this.storage.remove(TOKEN_KEY).then(() => { this.authenticationState.next(false); }); } 

    page.ts: here I get the data that I display in my view. (user service just retrieves a single user. In the end I destroy the subscription)

     import { Storage } from '@ionic/storage'; import { USER_ID } from 'src/app/services/auth.service'; import { SubscriptionLike } from 'rxjs'; information = null; id: number; key: string; subscription: SubscriptionLike; constructor(private storage: Storage, private activatedRoute: ActivatedRoute, private userService: UserService, private authService: AuthService) { } ngOnInit() { // How to get just the authenticated api? if (this.authService.authenticationState) { console.log(this.storage); this.storage.get(USER_ID).then(val => { this.id = val; this.subscription = this.userService.getUserDetails(this.id).subscribe(result => { this.information = result; console.log(this.information); }); }); } } ngOnDestroy() { this.subscription.unsubscribe(); this.information = null; } 
    submitted by /u/Caturix2199
    [link] [comments]

    Learning C++ having prior knowledge of programming

    Posted: 22 Nov 2019 04:11 PM PST

    Hey guys, I am planning to learn c++ online and was wondering what are the best online courses or resources available? I am already fluent in Java and also understand some of c++ but I want to start from the basics of C++ for a strong foundation. Let me know what you guys think. Thanks!

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

    For those looking for more information/understanding on unit testing...

    Posted: 22 Nov 2019 03:53 PM PST

    So I've posted on here a couple of times before about unit testing. It can be confusing as different sites and different people tend to go about it differently. So I remember listening to Uncle Bob on one of his talks where he advised that your tests should have an API and I thought "what the hell is he talking about? Aren't we supposed to be testing classes? The class' API is the test API..." and so forth. The confusion comes in because most people, even Uncle Bob, only show the rudimentary aspects of unit testing....which is usually just one class.

    So I picked up an early release (MEAP) for Unit Testing by Manning. No, it's not my book, I don't receive any compensation for mentioning this book. I am talking about it because it cleared up a LOT of confusion I had. Going by online resources, you only get the basics, and then it's up to you to form your own. I've got prior books, The Art of Unit Testing, I have the Beck book, the xUnit book, the Growing using tests book, and I have one for .net Core. They all use almost the same language, the same things that make a unit tests, but they're all slightly different in their approaches. This lead to the confusion and issues that I've had.

    So that brings me to the new book. It actually talks about the two schools of thought on unit testing, explains what makes them different, and the reasoning behind their approaches. It is a bit biased towards one, but he explains why. It also goes into ways on how to analyze your test code, and helps explain that 'test API' that Uncle Bob was talking about. So now, when I read something online, I can tell which school they belong to, and what they're doing makes more sense.

    I don't want to go into too much detail, but one school believes that the isolation of tests if to make each test run in isolation from each other test so they can be run parallel while the other school interprets the isolation as being isolated from other classes which leads using a lot more mocks. This also influences their definition of unit as well. So while both schools often use the same language, the same features that make a unit test, etc. they interpret them in completely different ways. I wasn't aware of these idiosyncrasies and that's what lead to my confusion: I was trying to apply both schools of thought onto one another which doesn't work very well.

    So, if you're as confused as I was about some of the contradictory stuff out there, I'd suggest checking the book out when it's published or checking out it's early access.

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

    CS50 first or jump right into Python?

    Posted: 22 Nov 2019 11:46 AM PST

    Hello world,

    I'm looking to learn to code coming in with zero experience. I think I want to start off with Python as it sounds like a flexible language which I can start making things quickly with. The little emotional victories of making something that works would most likely keep me invested in it long term. I have registered for the edx CS50 course but I think I would rather just jam out on python. What would be a better use of my time? Longterm I'm trying to work freelance, hopefully developing a product of my own.

    Thanks for any tips n tricks

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

    Weird sound...

    Posted: 22 Nov 2019 07:14 PM PST

    When i go this link and click on programming model link it my phone makes a sound like its dialing something...

    https://algs4.cs.princeton.edu/10fundamentals/

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

    why isn't my height attribute applying to the id

    Posted: 22 Nov 2019 07:08 PM PST

    So I have this image that I want to give a bigger height and the height isn't applying:

    https://codeshare.io/GblbMV

    How do I apply the height since my specified 300px isn't doing it?

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

    Don't know the problem with my C++ code/file

    Posted: 22 Nov 2019 07:07 PM PST

    I have some code written in C++ but when I try to run it I get an error message saying that the project does not exist. I have never seen this before. why is this happening?

    #include <iostream>

    using namespace std;

    void TempUpdate(), ArrayFiller();

    int main()

    {

    int rows, columns;

    double tempTop, tempRight, tempLeft, tempBottom, epsilon;

    cout << "How many rows would you like the array to be?";

    cin >> rows;

    while (rows > 26 || rows < 1)

    {

    cout << "I'm sorry, but the number of rows must be between 0 and 26. Please pick a more "

    "suitable value for the number of rows";

    cin >> rows;

    }

    cout << "How many columns would you like in the row?";

    cin >> columns;

    while (columns > 30 || columns < 1 )

    {

    cout << "I'm sorry, but the number of columns must be between 0 and 30. Please pick a more"

    "suitable value for the number of columns";

    cin >> columns;

    }

    double metalPlate[rows][columns];

    metalPlate[1][1] = 0;

    cout << "what would you like the constant temperature on the left edge to be?";

    cin >> tempLeft;

    while(tempLeft < 0 || tempLeft > 300)

    {

    cout << "I'm sorry but the value you entered must be between 0 and 300. Please enter an"

    " appropriate value.";

    cin >> tempLeft;

    }

    cout << "What would you like the constant temperature on the top to be?";

    cin >> tempTop;

    while(tempTop < 0 || tempTop > 300)

    {

    cout << "I'm sorry but the value you entered must be between 0 and 300. Please enter an"

    " appropriate value.";

    cin >> tempTop;

    }

    cout << "What would you like the constant temperature on the bottom to be?";

    cin >> tempBottom;

    while(tempTop < 0 || tempTop > 300)

    {

    cout << "I'm sorry but the value you entered must be between 0 and 300. Please enter an"

    " appropriate value.";

    cin >> tempBottom;

    }

    cout << "What would you like the constant temperature on the right side to be?";

    cin >> tempRight;

    while(tempRight < 0 || tempTop > 300)

    {

    cout << "I'm sorry but the value you entered must be between 0 and 300. Please enter an"

    " appropriate value.";

    cin >> tempTop;

    }

    cout << "what value would you like to input for epsilon?";

    cin >> epsilon;

    ArrayFiller();

    TempUpdate();

    }

    void ArrayFiller(int rows, int columns, double metalPlate[rows][columns], double tempLeft, double tempTop,

    double tempBottom, double tempRight)

    {

    metalPlate[0][0] = tempLeft*tempTop/2;

    metalPlate[rows][columns] = tempRight*tempBottom/2;

    metalPlate[rows][0] = tempBottom*tempLeft/2;

    metalPlate[0][columns] = tempRight*tempTop/2;

    for (int rowNumber = 1; rowNumber < rows; rowNumber++)

    {

    metalPlate[rowNumber][0] = tempLeft;

    }

    for (int rowNumber = 1; rowNumber < rows; rowNumber++)

    {

    metalPlate[rowNumber][rows] = tempRight;

    }

    for (int colNumber = 1; colNumber < columns; colNumber++)

    {

    metalPlate[rows][colNumber] = tempBottom;

    }

    for(int colNumber = 1; colNumber < columns; colNumber++)

    {

    metalPlate[0][colNumber] = tempTop;

    }

    }

    void TempUpdate(int rows, int columns, double metalPlate[rows][columns], double epsilon)

    {

    int insidecells, epsiloncheck, counter, rownumb, colnumb;

    double newvalue;

    counter = 0;

    insidecells = (rows - 2) * (columns - 2);

    for(rownumb = 1; rownumb < rows - 2; rownumb++)

    {

    for(colnumb = 1; colnumb < columns - 2; colnumb++)

    {

    if(rownumb == 1 & colnumb == 1)

    {

    epsiloncheck = 0;

    counter++;

    }

    newvalue = (metalPlate[rownumb + 1][colnumb] + metalPlate[rownumb - 1][colnumb]

    + metalPlate[rownumb][colnumb + 1] + metalPlate[rownumb][colnumb - 1])/4;

    if(metalPlate[rownumb][colnumb] - newvalue < epsilon & newvalue - metalPlate[rownumb][colnumb] < epsilon)

    {

    epsiloncheck++;

    }

    if(epsiloncheck == insidecells)

    {

    cout << metalPlate;

    }

    metalPlate[rownumb][colnumb] = newvalue;

    }

    counter++;

    }

    }

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

    Any recommended Entity Framework Core books / resources?

    Posted: 22 Nov 2019 03:06 PM PST

    I apologize if this isn't the right place for this type of question. I am familiar with EF Core (watched turtorials / read docs) and have a baseline understanding but would like to dive deeper. There are quite a few books out there with most costing money and it's hard to pick based on the background research I've conducted on those books. Was wondering if anyone had any book recommendations or other solid sources.

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

    Searching a book or video course which covers a project from start to finish

    Posted: 22 Nov 2019 03:02 PM PST

    hey guys, right now I am learning c# with courses from pluralsight. the good thing with this is that I get a good understanding of the single topics but what I really miss is an understanding of how a whole project is build and how all these single techniques work together. do you know of a ressource (can be a book or video course) which teaches how to build an easy program from scratch and show how to structure everything? I am looking more for a detailed explained source code then another tutorial which explains what a for loop is. maybe there is a nice github repo which is aimed for peaople like me who knows the basics but still need the glue to put everything together ;)

    thank you very much!

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

    What Fullstack Development techs/libraries/concepts are currently Standard to-must-know and will be for 2020?

    Posted: 22 Nov 2019 06:45 PM PST

    Good night.

    TL;DR for simplicity, I'm tired of always being behind others on whats trending, useful to learn, whats basic and what everyone on the field gives for granted, so I want to step up, skill up and be up to the standards.

    I have always been a relatively mediocre developer, always doing what needs to be done to reach the level asked for, but seldom going further from it, usually, jobs force me to catch up on what sort of knowledge I should have already, at least the basics ironed out, however I never take the initiative to aspire for more, to reach new heights.

    Now, I managed to hit a high end job on a software development company and their requisites for knowledge are sky high, I'm catching up as best as I can but I had a sudden realization... Once I reach it... Now what? I'll just become a useless slob again?

    A senior developer, gave a speech about how to improve as a developer and aspire for more, he gave us the rundown of how we should tackle our future and this has really really fired me up...

    i aspire to become more than a programmer, more than a developer, more than a web developer, more than a senior developer, I want to become an architect one day and the path to learn it all starts with the first step... So I ask all of you reddit, what are the technologies that are currently in use? what kind of things are interesting reads, even if I wont use them, to nurture my knowledge?

    Thank you very much for your thoughts. Very much appreciated.

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

    No comments:

    Post a Comment