• Breaking News

    Saturday, December 7, 2019

    Introducing ProjectLearn.io - Project Based Learning learn programming

    Introducing ProjectLearn.io - Project Based Learning learn programming


    Introducing ProjectLearn.io - Project Based Learning

    Posted: 06 Dec 2019 03:30 AM PST

    Tutorials are great, but building projects is the best way to learn. Do project based learning and learn code the right way!

    ProjectLearn provides a curated collection of programming tutorials (from different sources on the Internet) in which learners build an application from scratch. These are divided into different primary programming languages and frameworks. Some have intermixed technologies and languages.

    ProjectLearn is open-source on GitHub. You can contribute to the list of projects as well!

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

    Is FreeCodeCamp the best singular source to learn front-end web development? Or should I look elsewhere?

    Posted: 06 Dec 2019 11:56 AM PST

    Hi! quick question <title text here>.

    Or are there better places to serve me some learning? I have heard of the Odin project but from what I gather alot of their material is pulled from or linked to other sources anyway.

    Also, I don't have much interest in also learning Ruby ontop of HTML/CSS and JS right now. That's already alot to digest.

    Any thoughts? Thanks :)

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

    HS Coding Club Help

    Posted: 06 Dec 2019 04:13 PM PST

    Hey guys,

    Some of you may remember my last post, in which I discussed starting a HS club about a month ago. Well, my school's administration has a bunch of painful, unnecessary formalities in creating clubs that we finally got out of the way today.

    Now... How do you guys recommend I operate the club on a meeting to meeting basis? We have discussed competitions and will definitely be practicing for them, but besides that, what do you guys think should happen at an average meeting? I don't want people to lose interest. I have considered a group project but I don't know how I would incorporate new members so that they'll stay. Should I just teach lecture style? I'm sorry if I am overthinking this.

    If anyone has some ideas or thoughts, I would really appreciate it. Thanks :)

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

    Tech Career Advice Required: Recovering from Long-term Illness, Studying to be a C# Web Dev

    Posted: 06 Dec 2019 04:28 PM PST

    Hi guys. I need some career advice.

    I'm recovering from long-term chronic illness. It hit me in university and I've been battling it for 5-10 years. I'm doing much better now (fingers crossed) and I want to return to work.

    While I was sick, I toyed with programming. I didn't get too far, but I decided I want to work in programming. I love the C#/.NET Core tech stack. Just looking at the tech industry, I think the easiest point of entry would be as a ASP.NET Core Web developer.

    Now I don't know if any of my guesses are correct. If there are any programmers or hiring managers from the tech industry, I'd like to ask some questions. For reference, I live in near Toronto, Canada.

    If you saw my resume (with a 5+ year employment gap), what would it take for you to hire me? I have a bachelor's but it's not in math or tech. Would I have to take 2-year college program? Or would a good portfolio be good enough?

    If you'd be satisfied with a portfolio, what things would you want to see on it? What technologies would you recommend to a web developer? Be very specific. I'm thinking of going with ASP.NET Core for the backend and Javascript/HTML/CSS for the frontend. If I have time, I'll throw in React too.

    If you agree that's a good path, what kind of income am I looking at? (I live in the Greater Toronto Area.) Are there growth opportunities in this career path? Are there alternate careers I could jump into from this one such as Business Analyst?

    That's it. Is there any advice you'd like to give me?

    I appreciate your assistance. Thanks everyone.

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

    Coding is extremely valuable and challenging !

    Posted: 06 Dec 2019 02:41 PM PST

    hey everyone,

    I'm new to reddit and I wanted to share this video for anyone who might be in the same situation as me. If you wanted to learn to code, there are so many resources out there! Don't let anyone tell you, you need a degree or some fancy job to be a coder. Eventually, you'll end up learning about CS, and Engineering as you go.

    I made a video about this if you want more insight.

    https://www.youtube.com/watch?v=q5NmA30RU1M

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

    A friend asks me to build a portfolio website for him. How to make it easy for him to edit the content?

    Posted: 06 Dec 2019 04:32 PM PST

    Hello, a friend requests me to build a portfolio website for him. I can easily create one with React.js and Django. However, how to make it easy for him to edit the content? He doesn't know how to code and I don't want him to call me whenever he needs to edit something on his website.

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

    Weakly and Strongly typed languages

    Posted: 06 Dec 2019 08:05 PM PST

    I was wondering what factors affect the speed of a programming language and in the case of weakly and strongly typed languages, which one will be faster? I couldn't find anything on this and after thinking about it for long, I figured that I should ask here.

    Likewise, which one is faster - Dynamically or Statically typed ?

    Edited : stronger to faster

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

    Beginner trying to make a weather forecast app in C#, can't figure out why my code won't work

    Posted: 06 Dec 2019 11:19 PM PST

    So after following some tutorials and using https://openweathermap.org/current, I got some code going and now I've been spending hours trying to figure out why it won't work. I started by making a Windows Forms app and made this interface. At first it was going to be able to find the weather of any city you typed in, but I can't find such an option on openweathermap so I only restricted it to Seoul, Korea. However I don't understand why nothing happens when I click the button, I thought it should bring back the forecast in the text boxes.. If anyone could help it would be really appreciated.

    This is my full code:

    https://pastebin.com/a6hWPxqR

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

    Java swing framework actionListener help

    Posted: 06 Dec 2019 11:17 PM PST

    I'm currently trying to make a GUI for a game and I'm having trouble controlling the gameflow using JButtons. The main is supposed to loop through the players while there are days left in the game the while loop on line 56 is supposed to display the GUI with some JButtons that will update the variable nextPlayer, but the program essentially gets stuck in this loop forever and the buttons won't change nextPlayer.

    The repository is https://github.com/iveHadThisBugForAWeekPlsHelp/Swinghelp

    • The while Loop causing issues is on line 56 of deadwood.java
    • The Jbuttons are defined on like 208 of basicSwing.java
    • The code can be ran from deadwood.java, To see the problem in the gui, run deadwood, then click either two or three players, and then click move and select a room - now it's stuck in the loop

    This might be a simple issue but I never learned how to use the actionListeners and this has been stumping me for a week

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

    Why is it when you inspect a website's code that their "classes" are so long

    Posted: 06 Dec 2019 05:09 PM PST

    So basically I look at other sites and try to replicate their site so get practice. Although when I look at the sites code I can't help but notice that the classes are very long. Why is this? Like they seem overly complicated for no reason. I understand that some sites implement bootstrap and what not into their classes but in tutorials the classes are very simple. Can someone explain this?

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

    Just created the V2 of my parking assistant

    Posted: 06 Dec 2019 07:10 PM PST

    When life gives you bananas!!!!! Just eat them. Necessity is the mother of inventions, and I won't deny that fact. Frankly speaking, this is the 2nd time I bumped into our garage wall since we moved into this new house. That's it, there would be no third time.

    Full Video Tutorial: https://www.youtube.com/watch?v=MqJxUf3Cugg

    In this video, I am going to use an ultrasonic sensor to calculate the car's distance from the garage wall and display it using green, blue, yellow and red LEDs. The color of LEDs indicates whether to keep moving, slow down, stop or go back.

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

    How to unit test Vanilla JS script that makes fetch API call and manipulates DOM

    Posted: 06 Dec 2019 07:02 PM PST

    I have a basic vanilla JS script that uses the fetch API to make an AJAX call to a placeholder json db, and does basic DOM manipulation. The application is served with json-server.

    I need to unit test the application. I tried using jest, but I get ```ReferenceError: fetch is not defined```

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

    [C++ Help] Using recursive function to return the sum of all the values in the array.

    Posted: 06 Dec 2019 10:24 PM PST

    I keep getting 65 instead on 55. i already tried three different iterations for the return function, but still get 65...

    int sumValues(int [], int );
    int main() {
    const int ARRAY_SIZE = 10;
    int mainArray[ARRAY_SIZE] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
    cout << sumValues(mainArray, ARRAY_SIZE) << endl;
    return 0;
    }int sumValues( int mainArray[], int ARRAY_SIZE )
    {
    if (ARRAY_SIZE < 0) {
    return 0;
    } else{
    return mainArray[ARRAY_SIZE] + sumValues(mainArray, ARRAY_SIZE - 1);
    }

    }

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

    Do you focus on one language or do you try and practice each one often?

    Posted: 06 Dec 2019 10:16 PM PST

    I'm a cs student and every semester I learn a new language, which is awesome, but I feel like I am starting to forget a lot of simple things in language I learn last year. I'm trying to use as many languages as i can to practice, but that takes a lot of time and I don't learn as much as i could. Should I focus on one or two languages, like maybe c and python?

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

    Help running Python Maze Solver from Computerphile

    Posted: 06 Dec 2019 10:00 PM PST

    Hey all, I am trying to run the code from

    https://github.com/mikepound/mazesolving

    He implements a maze solver using python, however i'm such a noob I can't figure out what to change to load in the .png of the mazes O_O please help

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

    Instructions in a MIPS Processor

    Posted: 06 Dec 2019 09:29 PM PST

    I'm struggling with creating certain instructions for a simulator of a MIPS Processor in C. I have certain notes, that I'm trying to follow but keep running into a segmentation fault when the program is executing.

    Load Byte unsigned:One byte is loaded from memory into the lowest byte of R[rt]. The rest of R[rt] contains only zeros.

    void lbu(unsigned int instruction){

    unsigned int rs = RSMACRO(instruction); unsigned int rt = RTMACRO(instruction); unsigned int immediate = IMMEDIATE(instruction); ((registers[rt >> 24]) & 0xFF); unsigned int mask = 0x8000; unsigned int mask2 = 0xFFFF0000; if(immediate & mask){ immediate = immediate | mask2; } unsigned int* x = (unsigned int*) &memory[registers[rs] + immediate]; registers[rt] = *x; 

    }

    Store byte instruction: The lowest byte of R[rt] is stored in memory.

    void sb(unsigned int instruction){

    unsigned int rs = RSMACRO(instruction); unsigned int rt = RTMACRO(instruction); unsigned int immediate = IMMEDIATE(instruction); ((registers[rt] >> 24) & 0xFF); unsigned int mask = 0x8000; unsigned int mask2 = 0xFFFF0000; if(immediate & mask){ immediate = immediate | mask2; } unsigned int* x = (unsigned int*) &memory[registers[rs] + immediate]; unsigned int result = *x; result = registers[rt]; 

    }

    Also, how do I perform a zero extension? I made sign extensions, but I'm not sure how they differ from one another.

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

    Can't figure out the error!

    Posted: 06 Dec 2019 09:22 PM PST

    So I was solving a problem where I have to swap two characters in a string (all of them entered by the user). But the problem is that, during execution of the program, it is not able to read both of the two characters entered by the user, in this case the values of variables a and b. Instead it reads only a and then immediately reads the string C, without reading the value of variable b. Any solution or better alternative for this?

    #include<stdio.h> #include<stdlib.h> #include<string.h> int n; int temp,pos1,pos2,l=0,i; char a,b; char C[1000]; void main() { scanf("%d",&n); while(n--) { scanf(" %c %c",&a,&b); scanf("%s",C); l=strlen(C); temp=0,pos1=0,pos2=0; for(i=0;i<l;i++) { if(C[i]==a) pos1=i; if(C[i]==b) pos2=i; } temp=C[pos1]; C[pos1]=C[pos2]; C[pos2]=temp; } printf("\n%s",C); } } 
    submitted by /u/kenny_ackermann
    [link] [comments]

    Something similar to Codecademy?

    Posted: 06 Dec 2019 05:24 PM PST

    Codecademy used to be pretty great for getting started and I was able to learn CSS / HTML through it - however I've been learning Python now, and trying to learn it through Codecademy has turned into a nightmare, everything is gated behind massively expensive paywalls.

    Is there a website similar to codecademy with interactive tutorials, etc that would be useful for Python learning? Any help appreciated.

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

    Question regarding programming languages

    Posted: 06 Dec 2019 09:06 PM PST

    I am from non IT background and recently I got placed in a IT based company, now I am supposed to learn .net, sql, dbms,java, c# and such types of languages in a very short amount of time..anyone please suggest me some tricks to learn it quickly and efficiently.

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

    Has anybody tried the Treehouse Techdegree?

    Posted: 06 Dec 2019 12:20 PM PST

    I clicked through on an ad that I saw in my Facebook feed. I've been looking at General Assembly for a bootcamp program for FSJS, but this looks way cheaper. I guess the only drawback is not being able to go to a physical classroom. (I'm in NYC.)

    I also saw they're running some kind of holiday sale discount on the TD. Is this worth it? Or do they do this often?

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

    Python: how do i run coordinates for the turtle module from a text file?

    Posted: 06 Dec 2019 05:14 PM PST

    Assignment: For this assignment, write a script that reads the following file with instructions on how to draw a shape and uses those instructions to draw the shape using Python's Turtle module:

    (Text file)

    The script should first load the shape instructions into memory and then draw the shape from the loaded instructions.

    Question(s): I've been stuck when it comes to reading/writing to and from text files. How do i get the turtle module to work from a text file? (just the commands, i.e. forward 100 left 60)

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

    Using cURL with Multiple Files

    Posted: 06 Dec 2019 05:04 PM PST

    How to develop a logical temperament ?

    Posted: 06 Dec 2019 04:55 PM PST

    Like while doing this sorting techniques like bubble sort and all. Logic is instantly developed . Anyone who tells me how can I work on my logical temperament . Sometimes I am good in logic sometimes it goes to poor level. It's not a constant think.

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

    Feasibility and approach of remaking an old program that utilizes COM ports?

    Posted: 06 Dec 2019 04:42 PM PST

    Hello. There's a program I would like to remake. It's an "access control" (doors are unlocked with proximity cards) program that communicates with a control panel via COM ports that then lock / unlock doors with magnetic locks by triggering a relay. The issue is that it's quite dated by now and only runs on Windows XP SP 1 (unless spending some serious money to buy a newer version--which we did but that was for some reason unusably glitchy. Support was unhelpful in getting it resolved). It would be super cool and useful if I could rewrite this program. I've done some programming, but am still a beginner and unsure of how this could be approached. Is it possible to essentially "sniff" the data being sent from the computer to the control panel (such as for adding a card number into the system) and then create my own program that implements this core functionality (with the option to add my own awesome features) by copying / replaying the observed traffic? Is this realistic or am I talking about intense reverse engineering?

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

    HELP! How to make a basic derivative calculator which is only limited to polynomial equations.

    Posted: 06 Dec 2019 04:39 PM PST

    I'm a freshman in college, taking up Computer Science and we are about to finish our CS 11 class (Introduction to C) and our professor gave us an individual task to write a program that takes the first derivative of a simple polynomial equation. He gave us 5 days to solve this task and I'm stuck! I tried searching for solutions in stack overflow and other websites and they keep mentioning unfamiliar stuff like "binary trees" or "parsing" which I AM ABSOLUTELY NOT FAMILIAR WITH YET. I would love to learn about this on my own but I feel so overwhelmed because of the limited time and other college stuff I need to do.

    Example:

    Input: 4x^2+3x+5

    Output: 8x+3

    It's that simple but I can't seem to wrap my head around on what I should do.

    I tried making my own program but it can only solve the first coefficient:

    include <stdio.h> include <string.h> include <ctype.h> int main() { char num[100]; int dec = 0, i=0, j, exp = 0, ans = 0; clrscr(); printf("Enter a function: "); fgets(num, 100, stdin); if(num[i+2]=='\0'){ printf("\nThe answer is 0.\n"); } else{ for(i=0; num[i]!='x'; i++){ dec = dec * 10 + ( num[i] - '0' ); } exp = exp * 10 + ( num[i+2] - '0' ); ans = dec*exp; printf("\nThe answer is %dx^%d\n", ans, --exp); } return 0; } 

    Your output on this would be much appreciated.

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

    No comments:

    Post a Comment