• Breaking News

    Saturday, October 10, 2020

    A list of 100 Projects to build learn programming

    A list of 100 Projects to build learn programming


    A list of 100 Projects to build

    Posted: 09 Oct 2020 02:51 PM PDT

    I've compiled a list of about 100 projects that you can try out to learn more about programming and also at the same time build serious projects that you can put up on your portfolio.

    Do check it out and tell me what you all think! Here's the link:

    https://github.com/aceking007/100ProjectsOfCode

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

    Been watching a ton of tutorials? Thinking you are getting smarter? STOP! It is time to build/create SOMETHING - a basic program, a project, anything! WithOUT guidance (except some googling). This way you can finally solidify what you have learned!

    Posted: 09 Oct 2020 08:16 PM PDT

    Most of us have heard about that "tutorial hell" where you get stuck doing tutorial after tutorial, thinking you are learning SO MUCH, but really you are just fooling yourself. Of course, you have learned some concepts, and could probably spout off some information when asked about it, but if it came to sitting down and building a project from scratch, most of you probably couldn't do it (speaking for people similar to myself, perhaps self-taught, with minimal amounts of experience). I cannot speak for you few geniuses out there that manage to absorb information the moment you hear it :O - you know who you are.

    I have been teaching myself Django as I plan to be a web developer of some sort in the near future. I have followed many tutorials, and even followed along making the project that was shown in the tutorial many times, thinking - whoa, this is easy stuff!

    Today, I sat down and actually tried to create a project from scratch - something simple, a basic CRUD for creating computers models with a name, manufacture date, and weight (I came up with this GENIUS idea while looking AT my actual computer /s). It took me HOURS to actually catch up to where I was in these tutorials and LOTS of searching on stack overflow to examine concepts I was fairly sure I already knew. There is a HUGE difference between learning a concept, and applying that concept, and I learned that today. Several hours into the project and everything just makes SO MUCH MORE SENSE. I swear, if I had just done a quick tutorial and then tried to make a project right away, I probably would have saved myself so much time, rather than watching a bunch of similar tutorials thinking "I am getting stronger!" No. The real strength is in showing the skills you learned without side-by-side guidance. I am grateful that I finally decided to started to apply these techniques today, or I would probably be off watching more tutorials, further complicating my time when it came down to actually making something!

    So wherever you are - and yes I am talking to you CS tutorial junkies out there; you know who you are - finish whatever tut you are watching (or it will bother you if you don't, trust me, I've been there) and just START something! Ignore the FEAR, press on!

    Happy coding :)

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

    Easiest language to make simple games?

    Posted: 09 Oct 2020 05:58 PM PDT

    FAQ suggested: ...make 2D/3D games - JavaScript, C#, or C++ (more)

    But I think I remember reading somewhere that C is a more abstract and difficult language to learn. Not sure about Java - Is there something simpler that I can use to make very simple games? (It would be almost a visual novel type of horror game or things that are like 2D Pixel based RPG type...)

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

    How much of your free time do you spend working/learning?

    Posted: 09 Oct 2020 07:39 AM PDT

    Besides the 40-50h work week, how much do you want (or have to) work/learn besides that? Or is the 40h of work all one needs to do as a programmer?

    submitted by /u/Snoo-65620
    [link] [comments]

    What Project Got You Your First Job?

    Posted: 09 Oct 2020 08:07 PM PDT

    Probably for most people there wasn't just one project. I'm just curious if there was one that impressed your interviewers more than the others. Or, if you are the one doing the interviewing, what was an impressive project you saw from an entry level developer?

    submitted by /u/pre-tend-ed
    [link] [comments]

    Website that guides you into contributing to open source projects

    Posted: 09 Oct 2020 01:57 PM PDT

    There was a website posted here a while ago that guides you into contributing to open source projects. Does anyone know what it is?

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

    Should I go ahead with an internship if it’s not with the tech stack I want to learn?

    Posted: 09 Oct 2020 10:32 PM PDT

    Been studying web dev at college for 3 months (a year on my own) and I know basic HTML/css and currently learning JavaScript and php.

    Got an opportunity for an internship as Wordpress dev. Their stack is Wordpress, php, jquery and sass. They build out custom themes with php and are offering to train me from scratch.

    Problem is I want to learn how to build out front ends in react and back ends in node eventually.

    Is this still a good foot in the door? Will it still be possible to become a good programmer in a role like this? What do you recommend?

    Thanks.

    Also in advance I sincerely apologise if I sound ungrateful. I feel overwhelmingly lucky but I just want some advice because I don't know anyone in this industry in real life other then my teachers who have also suggested I take it.

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

    Feedback wanted on my simple Python number guess game

    Posted: 09 Oct 2020 10:07 PM PDT

    Hi everyone,

    EDIT: the format is broken isn't it? Stupid question maybe, but how do I format my code in Reddit? I used inline code, but it became this mess to read..

    EDIT2: Tried to improve the format

    EDIT3: I couldn't get it to work in the post so I put in a comment instead. Sorry, I will learn more about reddit formatting next time.

    I am currently still beginning at coding and I am mostly learning by myself. I try to stray a bit off from the tutorials and try somethings on my own since that is more interesting / I feel like I learn a lot more.

    However, I am also very afraid that I am teaching myself bad habits without realizing it or writing code that is hard to read or have weird variable names etc.

    If you have time, I would appreciate it very much to get some feedback from other people as to how I can improve my code.

    Also, let me know if the Reddit formatting is wrong, or if you are not allowed to ask these kinds of questions.

    Thank you!

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

    The great divide between writing a simple script VS a program

    Posted: 09 Oct 2020 05:48 PM PDT

    As a learner of python of a few months now, I have become quite comfortable with syntax and basic concepts - understandably so, as it seems about 95% of learning resources cover this first month of learning.

    But I find myself facing now standing at the edge of a cliff looking out into a great expanse of the unknown. There is a huge difference between writing a simple exercise script to solve a simple problem vs a program which actually does something with more than a few steps. I look at libraries and other projects for clues to how a professional programmer structures code, breaks it down into abstracted components and then glues it all together. But as a beginner, most programs and libraries are incredibly sophisticated and complicated to decipher.
    I know a lot of people will say to just start writing your own projects and I agree hands-on is good, but I need guidance into this next stage of learning - how to approach a program, break it down and structure it. When to use a class method vs a function, or a superclass vs a subclass, when to separate modules, etc.
    What advice would you give to someone in my situation? Thanks for any input

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

    What C++ game dev things should I learn?

    Posted: 09 Oct 2020 08:37 PM PDT

    Can you please tell me What C++ game development things should I learn? Cause I want to be a game developer and I know a bit of C++ basics I am still learning. Also, how do I learn them?

    Also what C++ libs should I use for game development and C++ topics for game development.

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

    Where can I find professional examples of resumes/portfolios for web dev?

    Posted: 09 Oct 2020 02:32 PM PDT

    Half way through my bootcamp and I thought I'd start to create my resume/portfolio. Just don't know where to start. Any guidance is much appreciated!

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

    Need help with valgrind error

    Posted: 10 Oct 2020 12:02 AM PDT

    Hey, so I'm trying to do pset5 from cs50, and need some help. I get a memory error when I run valgrind.

    My code:

    // Implements a dictionary's functionality #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include "dictionary.h" #include <string.h> #include <ctype.h> #include <strings.h> // Represents a node in a hash table typedef struct node { char word[LENGTH + 1]; struct node *next; } node; // Number of buckets in hash table const unsigned int N = 280; int numberWords = 0; // Hash table node *table[N]; // Returns true if word is in dictionary else false bool check(const char *word) { // TODO //hashes word using hash function int index = hash(word); for (node *temp = table[index]; temp != NULL; temp = temp -> next) { if (strcasecmp(temp->word, word) == 0) { return true; } } return false; } // Hashes word to a number //hash table is (super)slow might fix it later unsigned int hash(const char *word) { char *x = NULL; x = malloc(sizeof(char)*strlen(word) + 1); int total = 0; for (int i = 0; i < strlen(word); i++) { if (isupper(word[i]) != 0) { x[i] = tolower(word[i]); total += x[i]; } else { x[i] = word[i]; total += x[i]; } } free(x); // TODO //return total % 280; return total % 280; } // Loads dictionary into memory, returning true if successful else false bool load(const char *dictionary) { //opens file dictionary to read FILE* dictPtr = fopen(dictionary, "r"); //returns false if file fails to open if (dictPtr == NULL) { return false; } char word[LENGTH + 1]; //iterates over each word in dictionary until end of file while (fscanf(dictPtr, "%s", word) != EOF) { //declares index int index; //make new node for each word node *newPtr = malloc(sizeof(node)); //returns false if it fails to allocate memory if (newPtr == NULL) { return false; } //copies the word using strcpy into node strcpy(newPtr->word, word); //saves what index the word should be in, in index index = hash(word); //sets 'next' pointer in node = head of array (of pointers) newPtr->next = table[index]; //sets head of array to new node table[index] = newPtr; //adds global variable numberWords by one for each numberWords++; } // TODO return true; } // Returns number of words in dictionary if loaded else 0 if not yet loaded unsigned int size(void) { // TODO return numberWords; } // Unloads dictionary from memory, returning true if successful else false bool unload(void) { //for each node in table, starting at the back (so you dont lose access to the rest of the table), free for (int i = 0; i < N ; i++) { //sets ptr equal to head of linked list for (node *ptr = table[N - 1 -i]; ptr != NULL; ptr = ptr -> next) { node *temp = ptr; free(temp); } } // TODO return true; } 

    s

    When I run

    $ help50 valgrind ./speller texts/cat.txt 

    I get:

    ==11098== Memcheck, a memory error detector ==11098== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==11098== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info ==11098== Command: ./speller texts/cat.txt ==11098== MISSPELLED WORDS ==11098== Invalid read of size 8 ==11098== at 0x401397: unload (dictionary.c:130) ==11098== by 0x400E59: main (speller.c:152) ==11098== Address 0x723c910 is 48 bytes inside a block of size 56 free'd ==11098== at 0x4C30D3B: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==11098== by 0x401392: unload (dictionary.c:134) ==11098== by 0x400E59: main (speller.c:152) ==11098== Block was alloc'd at ==11098== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==11098== by 0x4012A2: load (dictionary.c:91) ==11098== by 0x4009B4: main (speller.c:40) ==11098== WORDS MISSPELLED: 0 WORDS IN DICTIONARY: 143091 WORDS IN TEXT: 6 TIME IN load: 2.51 TIME IN check: 0.00 TIME IN size: 0.00 TIME IN unload: 0.24 TIME IN TOTAL: 2.75 ==11098== ==11098== HEAP SUMMARY: ==11098== in use at exit: 26,648 bytes in 467 blocks ==11098== total heap usage: 286,193 allocs, 285,726 frees, 9,462,671 bytes allocated ==11098== ==11098== 552 bytes in 1 blocks are still reachable in loss record 1 of 2 ==11098== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==11098== by 0x5258EB9: __fopen_internal (iofopen.c:65) ==11098== by 0x5258EB9: fopen@@GLIBC_2.2.5 (iofopen.c:89) ==11098== by 0x40125E: load (dictionary.c:77) ==11098== by 0x4009B4: main (speller.c:40) ==11098== ==11098== 26,096 bytes in 466 blocks are still reachable in loss record 2 of 2 ==11098== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==11098== by 0x4012A2: load (dictionary.c:91) ==11098== by 0x4009B4: main (speller.c:40) ==11098== ==11098== LEAK SUMMARY: ==11098== definitely lost: 0 bytes in 0 blocks ==11098== indirectly lost: 0 bytes in 0 blocks ==11098== possibly lost: 0 bytes in 0 blocks ==11098== still reachable: 26,648 bytes in 467 blocks ==11098== suppressed: 0 bytes in 0 blocks ==11098== ==11098== For counts of detected and suppressed errors, rerun with: -v ==11098== ERROR SUMMARY: 142625 errors from 1 contexts (suppressed: 0 from 0) Asking for help... ==11098== Invalid read of size 8 ==11098== at 0x401397: unload (dictionary.c:130) ==11098== by 0x400E59: main (speller.c:152) Looks like you're trying to access 8 bytes of memory that isn't yours? Did you try to index into an array beyond its bounds? Take a closer look at line 130 of dictionary.c. 

    Could someone explain to me why?

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

    Would you say that Microsoft documentation on C# is good enough to become an expert at it, as well as Ml.net

    Posted: 09 Oct 2020 11:50 PM PDT

    So I would like to become good at machine learning in C# and to do that I think I need to master C#, would you say that Microsoft's documentation on these two things is good enough to make things like facial recognition and fingerprint recognition? I'm sorry if my question is difficult to understand

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

    Whats the best way to upload and use an image in a website?

    Posted: 09 Oct 2020 11:32 PM PDT

    I'm trying to make an e-commerce website for my college's DBMS project. I want to make an admin user who has the ability to add products to the database and since each product has an image, I want to be able to add an image as well. I'm going to be using the PERN stack for the project.

    The way I thought was to have an image attribute in the product table that simply stores the image name. The image will be uploaded directly to react's public folder using multer, from where I can then refer it using the name from the db. This just feels kinda wrong to me, to just use the public folder like that.

    There should be a way to store the image in the backend itself and then send it as a response right? Or is there an even better way to do it? I don't even need the entire answer. Just a couple of keywords so that I can google it because atm I don't even know where to start.

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

    What is my error here?

    Posted: 09 Oct 2020 10:54 PM PDT

    Newbie looking for the right tools for a beginner project

    Posted: 09 Oct 2020 10:40 PM PDT

    Hi there!

    I've been learning some small website building basics. Just displaying things with HTML, CSS and moving a few elements with JS.

    I learn best when I work on a project I'm interested in, so I'd like to create a site that can get info from the Blizzard API. Things like "Character Bob has done x/100 Achievements from this category".

    I've looked around a bit and feel overwhelmed. What should I look into to do this? I've found the API documentation, but I'm not even sure what language to use to make those access calls or how to find my starting point. Can this be done with JS? Do I need to look at any frameworks that could help me?

    So far I've mostly seen that APIs seem to give info in JSON, and then that could be called using Ajax requests? Am I on the right track with this?

    Thank you for any help!

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

    How to call an action in a controller with only ID in the URL in .Net?

    Posted: 09 Oct 2020 10:23 PM PDT

    I want that if I run a URL like: localhost:52330/123, then an action should get called for this. I tried the routing like this:

    routes.MapRoute(

    name: "Parameter",

    url: "{id}",

    defaults: new { controller = "Home", action = "GetUrl", id = UrlParameter.Optional }

    );

    But it doesn't seem to be working. Please help

    submitted by /u/shadow-sphynx
    [link] [comments]

    Good SFML tutorials?

    Posted: 09 Oct 2020 06:23 PM PDT

    So far I have been using the documentation to learn, but it seems more like something to be used as a reference. Is there any good tutorials to use?

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

    Are you solving the wrong problem? (Short intro to "xy problem")

    Posted: 09 Oct 2020 06:06 PM PDT

    Ever heard of the XY problem? No? Those of you in tech support may have seen it without knowing its name, but it actually happens quite often in programming and tech support. In fact, if you answer questions here, you may have seen quite a few here.

    Here is an example from xyproblem.info, albeit rewritten for JavaScript

    n00b> How do I get the last 3 letters of the filename?

    feline> If it's in a variable, you can slice it like str.slice(-3)

    feline> Wait, why are you asking? What do you really want?

    feline>Do you want the extension (of a file)?

    n00b> Uh, yes?

    feline>There's no guarantee that every file name will have a three-letter extension, so blindly grabbing three characters does not solve the problem.

    With that said, here are three ways to get it, using regex, split, or slice+lastIndexOf

    See the problem? noob asks for X (last 3 characters of string), but actually wanted to solve Y (get file extension). What if there was no extension? What if the extension is MORE THAN 3 letters?

    See how it completely changes the problem?

    What really happened goes like this:

    • n00b wants to solve a problem (get the extension of a filename)
    • n00b has no idea how to do it, but thinks of a related approach that could work (get last 3 characters)
    • n00b don't know how to do that either
    • n00b, instead of asking for help on the ORIGINAL problem, asked how to solve this alternate problem.
    • which does NOT solve the original problem, even if solution becomes available.
    • after a ton of wasted time and futile struggle, n00b finally revealed the actual problem

    So, are you solving the right problem? Or an XY problem?


    From https://kcwebdev.blogspot.com/2020/10/are-you-solving-right-problem-ie-xy.html

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

    Anyone here who had attended 42, I have questions regarding the Piscine

    Posted: 09 Oct 2020 09:48 PM PDT

    I am about to take part in the Piscine taking place in 42KL, a branch of 42 located in Bandar Sunway, Malaysia.

    1. My situation is that I can't exactly commit a lot of time to the Piscine because I have a night job. At most I can commit is to come in at 9 or 10 am, and then stay until 8 pm every day, thus committing 10 to 11 hours a day, while only sleeping 4 to 5 hours a day. Is this enough for me to do the Piscine?

    2. How difficult is the Piscine for someone who is already familiar with coding? I have experience already developing Android apps and I have a few apps of production value in my portfolio.

    3. Does the Piscine usually tackle logic and algorithm stuff? I am thinking maybe I can practice logic and algorithm problems before the Piscine in the C language before attending, so that I have a higher chance of completing it in spite of the shorter time that I have.

    4. Lastly, is it actually a trap for students to commit too much time daily for the Piscine? I have a feeling that students should not actually work too much until they burn out, that they should collaborate with each other and work smarter instead.

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

    Function in C which returns the number of values greater than a certain value of a Heap Max

    Posted: 09 Oct 2020 05:44 PM PDT

    I need to write a function in C that returns the number of elements greater than an element of value x out of a maximum of heap, with heap and x being sent as parameters of the function.

    The struct of the heap is:

    struct heap{

    int max; /*size of heap*/

    int next; /*next position in array*/

    int* info; /*array of elements*/

    };

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

    Anybody have a good resource for beginner C# projects?

    Posted: 09 Oct 2020 09:04 PM PDT

    I can make a simple calculator in C# and a guessing game, so I thought something like Tic-Tac-Toe would be a good next step-not true. The struggle was immense, and I got so discouraged I quit programming for a couple of months, but I want to try again.

    Any good project ideas or good resources? Tutorials that let you try it yourself first? Any help is appreciated.

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

    I have a weird bug when trying to instantiate a photon object in Unity 2020 and Photon pun 2

    Posted: 09 Oct 2020 09:01 PM PDT

    I am creating a networked Unity game using Photon Pun2 and Unity 2020.1.3f1 and I'm having a weird issue with Instantiation. My code is:

    PhotonNetwork.Instantiate("Players/PlayerController", new Vector3(0f, 5f, 0f), Quaternion.identity, 0);
    }

    Every time I change the string for the folder location the game works 1 time. If I try to re-play the game I get a null ref and it says I need to make sure that "Players/PlayerController" exist. If I change that string to "Player/PlayerController" then change the folder it will work 1 time. Then the same error.

    This seems like some sort of an internal bug to me. My Resources folder is in the assets folder, and im 100% sure my path is correct. I've been using this for years without issue.

    Any ideas?

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

    What's a good console based, beginner project that applies all the basics of programming?

    Posted: 09 Oct 2020 08:39 PM PDT

    I've been using C# to teach myself programming for 2 weeks because I'm bored and it's been really fun. And I have an application idea that I want attempt to build eventually, but I am not at that level yet for sure.

    So I am familiar and practiced with the basics: data types, variables, operators ,loops, arrays, methods and classes. I'm looking to make a project that's longer, the longest thing I made is around 70 lines of code, and a project that can help solidify my understanding on the basics of programming, or force me to fill in the gaps I have on the basics because I doubt I know everything yet. I don't think I'm ready for anything that involves a GUI yet, so something that preferably only on the console.

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

    No comments:

    Post a Comment