• Breaking News

    Wednesday, December 30, 2020

    I recreated Pokemon Firered in the browser but with programming questions learn programming

    I recreated Pokemon Firered in the browser but with programming questions learn programming


    I recreated Pokemon Firered in the browser but with programming questions

    Posted: 29 Dec 2020 12:16 PM PST

    Hi everyone!

    I've always wanted to build a browser game where you can battle the instructors at the coding bootcamp that I teach at.

    If you're learning how to code, come test your knowledge by battling the instructors!

    Desktop users only!

    Check it out here

    Source code here

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

    How can i improve my logic skills?

    Posted: 29 Dec 2020 10:36 AM PST

    I know basics of Python which I learned from a tutorial, but my logic skills aren't very good. It takes me a while to solve simple coding challenges.

    How can I improve? Should i go through a discrete maths course, or any other course?

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

    I don't understand how to read documentation (like for an API). It's incredibly confusing. How do you do this?

    Posted: 29 Dec 2020 09:39 PM PST

    Like when I read the Discord.py documentation to implement new features it's extremely unclear how to actually use the library. It has incomplete examples (or sometimes straight up inaccurate ones) and I almost always have to go ask in a programming discord how to actually use it.

    Can someone please explain to me how I'm supposed to understand this stuff?

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

    Where do I start when looking for jobs in IT?

    Posted: 29 Dec 2020 11:31 PM PST

    I've received two certificates from MITx and IBM in intro Python and data science with SQL. I'm 36 years old and have no formal education in computer sciences prior to March of 2020. I feel very confident with my understanding of, and ability to, learn new concepts in programming with Python.

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

    Where to go from here? [JS]

    Posted: 29 Dec 2020 10:52 PM PST

    Hi guys, I need advice here... so some weeks ago I have started a Udemy-course (https://www.udemy.com/course/the-complete-javascript-course/) by Jonas Schmedtmann and right now I am at section "A closer look at functions", and I feel a bit lost. The course is well-praised but I find it at this part (Section 10) really theoretical, the instructor tries to give small challenges along the way, but these are not real world examples, I mean they are not related to a bigger project. These stuffs here are hard, I am learning about bind, call and apply and I feel I should learn it by doing a project. But I am also confused, should I look after a project, or just follow the course? Somehow I feel I will forget everything if I don't use these concepts. On the other side, I also don't want to break the progress and pick up another course or something.

    Could you give me any advice?

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

    What I want to do to be a Mobile app and Web app developer ?

    Posted: 29 Dec 2020 08:22 PM PST

    I just learning programming I was wondering where to start and how to start , while surf through internet there is too much content on internet I cant find my clear path way to start my new carrier as a developer

    My idea is want to be a mobile app and web app developer i want to learn the core part of everything computational theory , fundamentals of programming

    Give me a idea and suggestions

    where to start ?

    And how to start ?

    submitted by /u/varun-pandian
    [link] [comments]

    When would I want to use a callback function over a promise or async/await?

    Posted: 29 Dec 2020 10:31 PM PST

    My understanding of a promise is that a promise or async await allows the program to work on other things while waiting for something to return/finish. Why would you ever use a callback function if you can get your function to run asynchronously? The only use case seems to be if you aren't depending on inputs or function calls inside the program, and everything is contained internally. But at the point it just seems like a promise is just unnecessary, rather than actually detrimental. Is there a point where I would want to use a callback function over an asynchronous one?

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

    Entry level job that supports/benefits someone learning programming.

    Posted: 29 Dec 2020 05:49 PM PST

    Anyone have any recommendations for entry level jobs that would be good for someone learning web dev and programming? I'm currently unemployed and spending most of my days learning HTML, CSS, JavaScript, and Python. I also spend several hours a day practicing touch typing.

    I was an Electrician but due to back injuries need a career change. I've jumped into programming wholeheartedly. I need to get back to work as bills and debt are looming. but I'd love to find a job that helps strengthen the skills I hope to use someday. Any advice or suggestions would be greatly appreciated.

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

    At what point does Functional programming show its use compared to procedural and object oriented?

    Posted: 29 Dec 2020 05:20 PM PST

    With procedural programming, it seems like you're very focused on some sort of "domino effect." When one thing happens and completes, the next thing should begin. When that one is done, the next thing is suppose to happen. You think in terms of one thing happening after the other action just took place.

    Object oriented programming seems to be on the basis of a lot of interaction with other entities in the program. Game development comes to mind like Call of Duty.

    Now what is it about functional programming that seems to be the one thing it excels at. I get that concurrency and parallelism is great for functional programming. It also seems to work really well with Object Oriented in that it gives you some information regarding the object. Outside of that, I can't really seem to figure out when functional programming seems to shine.

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

    Why don't more applications run from storage as opposed to running on servers?

    Posted: 29 Dec 2020 11:39 PM PST

    I don't know what the technical terms are, but why arent applications designed like Joplin (note-taking app, stores encrypted text files in cloud storage) as opposed to other self-hosted applications, which require spinning up a server?

    I don't understand why I have to spin up a server to sync my calendar and todo list, when all that required is rclone + .vcf or .ics files to be synced

    What's the technical term that differentiates these two types of applications (one that stores data in cold cloud storage and one that runs and serves data running on a server)? I imagine its required if one wants to interface with the data from a browser?

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

    Hi guys need some help with udemy course choosing.

    Posted: 29 Dec 2020 11:19 PM PST

    I can buy only one course on this new year sale on udemy so I can learn programming. I have 3 options 1. Web Development by Cole steel/web development by Angela Yu 2. 100 days of code by Angela Yu 3. React complete guide

    I want to start freelancing and I'm a complete beginner in programming so I want to know which route will be good for me so I can learn programming and start freelancing not so late.

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

    I need help making a game

    Posted: 29 Dec 2020 07:25 PM PST

    Hello my fellow programmers. I need everyone's help. I'm trying to make a game. It's text based, very similar to the Lone Wolf books. My dad grew up with those types of books and games so I want to make one for him as a late Christmas present. Idont have much yet, and I need room ideas.

    The story is that you are a guard that was thrown in prison after a lich took over the kingdom. My idea is that there will be about 9 rooms not counting the starting location, each one with an encounter or 2. They could be secret doors to other places, combat, hell even random items to examine etc. I only have the first room programmed and I'm struggling to come up with others so if you have time, please send an idea with an accompanying encounter!

    Examples could be something like: Humans and skeletons would be good enemies and stuff. For example on encounters, you find a skull shaped symbol in one room and in another you find a skull shaped hole that activates a secret switch and an easter egg.

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

    Is C++ code compiled for "an architecture" or for "an OS" or both???

    Posted: 29 Dec 2020 11:49 AM PST

    Sorry for the most likely very basic question, I've been learning C++ and wrote a few console apps for myself using Visual Studio, but always compiling for ARM as I run them on my Raspberry Pi. This has worked well for me.

    I want to make a console app as a silly joke/birthday gift for my brother, but he runs both Windows 10 and Linux on his laptop... however his laptop has an AMD CPU and not ARM.

    I would like to make my little console app run on both Windows and Linux, my original plan was to compile one version for Windows and the other for Linux in MSVS, but I just realised it seems I target the architecture (x86 or ARM), and not the OS.

    So, if I compile a console app "for Linux" like I thought I was doing with my other apps, it seems it's actually being compiled for ARM and not "for Linux". So... does this mean if I compile my console app for x86, it could run on Windows AND Linux if they both are on x86 CPUs?? But... Windows runs .exe and Linux has .out no? I'm a little confused. Basically I'd just want to learn exactly what code is compiled "for", if that makes sense

    Thanks a lot!!!

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

    Struggling to start Ruby

    Posted: 29 Dec 2020 10:59 PM PST

    Hi, I'm having trouble viewing any scaffold I make in Ruby on Rails. I'm accessing it through Amazon AWS, if that makes a difference. I've applied some fixes to the gemfile- putting SQlite into the proper version and disabling web console- but still no dice. I can see the welcome screen but no scaffold. I did the take db:migrate part correctly, I think? It looks like a really easy thing but damned if I can't get it to work. Is Amazon still the best platform for this? I'm brand spanking new and am stoked about learning, but I'm in a dead end here :(

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

    I have been asked to complete an assignment and send it's GitHub link to my potential employers. How to make sure other competitors don't see it on GitHub, but my employer still does?

    Posted: 29 Dec 2020 07:03 PM PST

    Everyone who applied for this job including my classmates received the same assignment and I don't want others to look at it.

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

    Need an Idea..

    Posted: 29 Dec 2020 10:46 PM PST

    Hello guys,

    i want to develop something that my family can use(only written in C#). But i have no clue what. Can you guys share some ideas please :)

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

    UML Diagram for GoF Design Pattern Examples written in Python and Java

    Posted: 29 Dec 2020 10:38 PM PST

    Hello, I have published UML Class and Sequence diagrams of GoF Design Pattern examples written in Python and Java. You can see the diagrams on these GitHub pages:
    Python: https://github.com/takaakit/uml-diagram-for-python-design-pattern-examples
    Java: https://github.com/takaakit/uml-diagram-for-java-design-pattern-examples

    If you are interested in UML representation of Python or Java code, this content may help you.

    I hope you will find it useful!

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

    Why is this solution not enough?

    Posted: 29 Dec 2020 06:48 PM PST

    I am trying to solve an "easy" problem on Hacker rank and my solution gives the right answer to the expected output yet I can seem to pass the question:

    #Note I understand this is no where near a clean piece of code, but It still solves the problem at hand. The problem is: Task Given an integer, , perform the following conditional actions: If n is odd, print Weird If n is even and in the inclusive range of to , print Not Weird If n is even and in the inclusive range of to , print Weird If n is even and greater than , print Not Weird if __name__ == '__main__': n = int(input().strip()) if n % 2 == 0 and n in range(2, 5) or n > 20: print("not weird") elif n % 2 == 0 and n in range(6, 20): print("weird") else: print("weird") 
    submitted by /u/Btek010
    [link] [comments]

    Seeking Advice

    Posted: 29 Dec 2020 10:29 PM PST

    I for the longest time thought I wanted to program. I spent a couple months at the end of summer learning Python 3 on CodeCademy. I always heard to learn python first as it will make learning other languages easier. I got almost to the end of my course and just began getting so frustrated, feeling like I was just wasting my time because I couldn't actually put anything together. I knew and still know the syntax, what functions and all that other stuff are, but I have no idea how to actually put anything together and that's why I had quit. One of the practice challenges was to build a simple text-based Pokemon style game. I couldn't for the life of my get it to work. Another was to code something that you could input text or a text file to and it would 'erase' specific words from the text that you wanted it to, this was way worse than the Pokemon game, I mean I spent multiple days if not weeks, some days were literally 10+ hours just staring at the screen getting flustered because I couldn't figure it out. This all seems like it should be some relatively simple stuff, so if I couldn't get that, how would I ever get anything more complex. The only reason I'm even coming back to the topic is because I kind of want to code plugins or mods for Minecraft using java. I guess I'm asking if I should even try again, if it would be worth my time and frustration or would I most likely just fail again like I have multiple times throughout the past couple years. Also should I say screw python? I personally never seen a point in learning python besides learning the basics of coding, because to me python doesn't have many good uses. I really don't know what to do, if I should get back into programming, should I start with something other than python? Should I not get back into it at all? Should I learn just what has peaked my interest with java for Minecraft mods/plugins?

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

    CS50 - Problem Set 4 - Recover - Help!

    Posted: 29 Dec 2020 10:11 PM PST

    I've seen many posts regarding the difficulty of CS50 on this subreddit before, and now it's my turn!

    I am struggling mostly with the use of functions such as fread and fwrite, mostly due to not understanding the error messages I am getting.

    #include <cs50.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> int parent (void); int load(void); bool jpgcheck (int buffer[]); int jpgcount = 0; int buffer [512]; char filename[8]; //Open card// int main(int argc, char *argv[]) { FILE *card = NULL; card = fopen ("card.raw", "r"); parent(); } //Make new file, name it// int parent (void) { //If we haven't found 50 pictures// if (jpgcount != 50) { sprintf(filename, "%03i.jpg", jpgcount); FILE *img = NULL; img = fopen (filename, "w"); load(); } //If we have, kill it// return 0; } //read from the card and put it in the buffer. If it is what we need, write it into the currently open file// int load (void) { fread (buffer, sizeof(int), 512, card); //FIRST ERROR HERE// while (!(jpgcheck (buffer[0]))) { fwrite (buffer[0], sizeof(int), 512, ("%03i.jpg", jpgcount)); fread (buffer, sizeof(int), 512, card); } if (jpgcheck (buffer[0])) { fclose("%03i.jpg", jpgcount); jpgcount++; parent(); } } //checking if the block loaded into the buffer is the beginning of a new jpeg file// bool jpgcheck (int buffer[]) { if (buffer[0] == 0xff && buffer[1] == 0xd8 && buffer[2] == 0xff && (buffer[3] 0xf0) == 0xe0) { return true; } else return false; } 

    I get 10 errors, the first of which is on the first line of the 'load' function, where I have marked "First error here".

    recover.c:40:38: error: use of undeclared identifier 'card'; did you mean 'rand'? fread (buffer, sizeof(int), 512, card); ^~~~ rand /usr/include/stdlib.h:453:12: note: 'rand' declared here extern int rand (void) __THROW; ^ 

    I have absolutely no idea what this means and with all the other confusing errors I am receiving my resolve to complete this course is falling fast. Any help or advice would be greatly appreciated.

    Thank you in advance!

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

    Javascript - How to pass value from one html page to another?

    Posted: 29 Dec 2020 12:06 PM PST

    I have a list with <a> elements in page1.html. I wanna make it so when i click one of the list items i go to page2.html and the text content of the list item appears at the top of the page.

    How do i do this using vanilla javascript only?

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

    How can I get a twitter notification from a signed in browser on a raspberry pi so I can text it to myself?

    Posted: 29 Dec 2020 05:50 PM PST

    I'm running twitter bots on a cluster of raspberry pis. Each pi is signed into a unique twitter account in the browser. I've written a script that can send myself a text notification, but I have to figure out how I can actually recognize I have a twitter notification to be able to text it to myself.

    - I am unable to sign into these accounts via the mobile app on my phone since they all run on different vpns and will get banned if they suddenly all sign in from one IP.

    - I don't believe tweepy/twitter api doesn't provide an endpoint to check your notifications

    Is there a trivial way that I'm not thinking of to know when I have a twitter notification so I can then send it to myself?

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

    How many programming languages do you know?

    Posted: 29 Dec 2020 09:29 PM PST

    Is it possible to be fluent in 5 languages.

    Edit: what language should I learn and stick with to make it easier for me to switch over to any other language. I'm new to programming.

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

    No comments:

    Post a Comment