• Breaking News

    Friday, January 8, 2021

    Is The Odin Project good? learn programming

    Is The Odin Project good? learn programming


    Is The Odin Project good?

    Posted: 07 Jan 2021 02:53 PM PST

    If it isn't worth trying, are there any alternatives?

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

    what it is like to know nothing about programming

    Posted: 07 Jan 2021 02:19 AM PST

    I started as a trainee in a small research and development company. I told them i know literally nothing and i don't expect any payment. I just want to learn. It was the truth.

    They wanted me to write a Lo-Ra server when i first contacted them. Cool, what is it? I had no idea. I didn't even know what pin was, or any other component. So i said, "I am gonna make a game". Well, nobody cared for sure.

    I started with coding snake in a C language on a raspberry pi. I was learning C and Linux at the same time. I up to challenge and went for pins. Okay, now i can light a led. So how about a button. Can i press buttons so they can change the I/O pins? Well, here it comes 'interrupts'. Okay, but i didn't understand anything. But it works, so move on. Then they told me if i am interested reading a Time of Flight sensor. Okay, what is it gonna measure tho? Are we gonna make something fly then calculate the time? Well, they said you are gonna request info from the sensor over I2C. Hmm, i don't think I2C is something real. Well, it was. I find a ToF library from internet, then tried to work on it. They helped me wire the sensor to raspberry. And code was working. I was like, 'woooaaa i did that'.

    Then i was like, snake game with buttons is boring. How about if i control the snake with ToF sensor. Well, it was really fun but was tougher than my job. After I stopped playing with games, and sensors, I said i am ready for a Lo-Ra server. I read about it, and i told myself i can do it. It took me a month to get an answer from it, even my girl respond quicker than that. I lied, i don't have a girl. Finally it was working, with a couple flaws, like only responds to first message, then stops. Well, i figured it out why, i was only storing the first message things, and using them for all messages. So it was practical, but was not correct and totally useless. They told me, how about if you store them in a database. Noooo, i don't like databases, they are too complicated for me. Only thing i stored in database was my tears. Then i stopped working on a Lo-Ra server.

    Also, i like to mention how i code, well it's gonna be short, like my codes. I couldn't figure out how to add couple .c and .h files into the makefile and compile them. So i was adding all files into the one .c file then compiling it. This did take like a year, now i am capable of seperating the files, what a huge improvement right there.

    Well, almost two years passed after i was trainee, since then i involved in 3 big projects and got pay raise like 5 times. I don't even ask for it. Then they offered me a huge money, because i had army duty, and i could pay for it instead joining the army. They paid all of it, but i will pay half back.

    TLDR: I learned a lot, I love my job, and i hope it loves me back.

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

    "A project can be anything". Advice for those who struggle.

    Posted: 07 Jan 2021 08:39 AM PST

    Hi everyone, I want to give you guys some advice about a topic I had huge difficulty with understanding in learning how to program. I finally seemed to get it in a way you don't read about online, which is too bad IMO.

    I also agree with the saying that if you want to become a good programmer, you should be doing projects. However, nobody does a good job in explaining how to confidently do this. I will try my best by explaining in detail how my programming skills accelerated by doing "projects". I hope it will help you guys with becoming more confident in your coding journey.

    First it's very important to define what is meant by a project. Does it need to be a huge application for a bank? The next leap in social media? Or a google search clone from scratch. Does a project need you to spend weeks or months before finalizing? This all seems a little bit too exaggerated, I know. However, the overwhelming feeling I got with trying to make the infamous "Todo list" from scratch, wasn't any different from the other projects I mentioned. If you are like me, you've probably quit programming many times...

    Now I will get to the point by telling you: "anything can be a project". Let me explain. let's say you've learned strings. All you know at this point is basic syntax, strings and a way to print/log them in a console. You come up with the idea of making a program that prints some lines of strings in a console. If you succeed at this, than you my friend finished your first coding project.

    This may seem very lame at first, I totally agree with you. However, the principle will never change. A project is just an idea, which you plan out and try to bring into existence with your coding skills. That's it. If you know strings well, you can come up with projects that come into existence by your knowledge of strings. If you really think this through, it isn't actually that lame after all.

    If you spend everyday, focusing on only one aspect of a programming language for a couple of hours by reading, watching tutorials and practicing along. You may be able to understand strings, integers, loops, if statements at the end of that week. If you know them well you are able to come up with some pretty awesome idea's which will only make you proud of yourself.

    If you keep learning small things and focus on one aspect at a time for a couple of weeks you will compound all that knowledge. The time spend on your projects will also increase the more your knowledge starts to compound. A lot of things will eventually come naturally to you (trust me). This way you will one day confidently make that new social media site you've always had in mind.

    I hope that my advice will be of good use. Happy coding.

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

    Don't learn programming... yet. Do this first

    Posted: 07 Jan 2021 11:47 PM PST

    Imagine that you're someone with little-to-no computer knowledge. You might use Excel at work and know how to post selfies on Instagram, but you have no knowledge about what goes on under the hood. For example, you don't know what a CPU or memory are. Or how a computer operates or what software is or how programming creates software, etc... None of these or related topics ever occurred to you.

    One day, you decide you want to learn programming on your own. You fire up Google, type the relevant query and find a multitude of online bootcamps and other resources that promise to get you going in a few weeks to a few months. Great!

    With shaky fingers from all the excitement about all the learning you're about to experience, you click on the first search result. Boom: Lesson 1. Download Python (what do snakes have to do with it???), install your favorite text editor (what's a text editor???) open up a CLI window (a what???), and so on... . What the heck are all these terms???

    Confusion and frustration quickly set in.

    There is a basic foundation of knowledge that programming courses seem to assume the student already has. But many an aspiring coder will not have any of this knowledge, and that makes the journey so much more difficult and frustrating. Many will quit before they even begin.

    I think, a better way to begin learning to program is to first learn the underlying foundations. The stuff they teach you in a good CS degree. The deeper you go into these topics before you start learning to program, the stronger and less brittle your learning foundation will be. A solid foundation will make your learning journey that much more enjoyable, effective, efficient and, ultimately, profitable.

    Here is a short sample of topics you should learn and get comfortable with before you write your first line of code.

    What is a computer?
    Main components of a computer (CPU, memory, storage)
    How computers store information
    How computers process information
    What is an OS?
    What is software?
    What is programming and how does it create software
    The different types of programming languages / paradigms
    Programming tools
    etc...

    This is obviously not a comprehensive list, but you get the idea. You can Google these topics and go into as much depth as you like, but at least know the basics and feel comfortable with them before you start a bootcamp.

    Happy to hear what everyone thinks about this. Do you agree / disagree? Any topics you'd add to the list above? (there should be many more)

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

    I made a search engine for free project-based learning resources

    Posted: 07 Jan 2021 12:33 PM PST

    Hello fellow learners, I made a search engine for free online resources such as Learn by doing / Project-based learning.

    Link to website

    It can give ideas to people who want to code a project while learning.

    It's basically an aggregator of various GitHub repositories on the subject but with a nice UI.

    Anyone can contribute to improve the CSV containing all the resources by opening a Pull Request.

    Repository

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

    Terminal game-engine, need advice

    Posted: 07 Jan 2021 01:19 PM PST

    This is one of my first larger c++ projects, let me know what you think about the rendering. Also, what do you think i should add next. I haven't made much more than what is visable in the gif bellow. My friends only want me to add laser projectiles, and i haven't done any game-engines before which means i really don't know what would be nice to have available in it. Thanks for any responses.

    The project is for learning purposes. There is a lot of tricks and solutions to my previous struggles in it that i hope can be helpful to anyone else doing similar projects.

    Project source code : https://github.com/sirjavlux/ConsoleGameEngine

    Gif: https://media.giphy.com/media/NMm92TRiwa9EA3Ah4C/giphy.gif

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

    Learn programming to use it only as a part-time job?

    Posted: 07 Jan 2021 06:49 PM PST

    Mid 30s guy here with experience in CAD and GIS and civil engineer, throught reddit and other sites i got more and more interested in programming and the possible aplication in my field.. but lately (and with the extreme situation of my country) started thinking more seriously about make it a "self-taught" career and being a freelancer but only as a part time job.. In your experience as programmers, is it wise or even possible to dedicate only a couple of hours a day in a given project and still being economic profitable, for me and for the supossed client? or is totally unrealistic and I should quit my current job to get into programming? also, is it even possible to learn a language with some level proficiency without college involvement? thank you!

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

    Is C# Good??

    Posted: 07 Jan 2021 02:56 PM PST

    Is C# a good language to learn today???? Yes I understand it is good for game development but beyond that, is it any good??

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

    CORS network error on local dev environment

    Posted: 07 Jan 2021 06:24 PM PST

    Hi everyone. I'm following this tutorial to build a PERN stack to-do app and of course I get stuck on an error that doesn't happen in the tutorial.

    PROBLEM: After I connected the frontend to the backend, I tried submitting a question and ran into a CORS network error. React runs on port 3000 and Postgres runs on port 5000, but I'm already using CORS in my app, so AFAIK it should take care of that. I called CORS before I defined my routes, and I've looked over the MDN docs about CORS and this error and can't figure out why this isn't working. I'm using firefox, but I get similar errors on chrome.

    The firefox dev console tells me:

    Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:5000/todos. (Reason: CORS request did not succeed).

    and

    NetworkError when attempting to fetch resource.

    The chrome dev console tells me:

    POST http://localhost:5000/todos net::ERR_CONNECTION_REFUSED

    and

    Failed to Fetch

    And the network tab tells me this: https://imgur.com/a/PAWRN7o

    HERE'S MY CODE:

    server/index.js:

    const InputTodo = () => {
    const [description , setDescription] = useState("type in an item");
    const onSubmitForm = async e => {
    e.preventDefault();
    try {
    const body = {description};
    const response = await fetch("http://localhost:5000/todos", {
    method: "POST",
    headers: {
    "Content-Type": "application/json"
    },
    body: JSON.stringify(body)
    });
    console.log(response);
    } catch (err) {
    console.error(err.message)
    }
    }

    return (
    <Fragment>
    <h1 className="text-center mt-5">Pern Todo List</h1>
    <form className = "d-flex mt-5" onSubmit={onSubmitForm}>
    <input
    type="text"
    className="form-control"
    value={description}
    onChange={e => setDescription(e.target.value)} />
    <button className="btn btn-success">add</button>
    </form>
    </Fragment>
    )
    }

    Button component that sends the API call:

    const InputTodo = () => {
    //description is the state, setdDescription is the function used to set the state
    const [description , setDescription] = useState("type in an item");
    const onSubmitForm = async e => {
    e.preventDefault();
    try {
    const body = {description};
    const response = await fetch("http://localhost:5000/todos", {
    method: "POST",
    headers: {
    "Content-Type": "application/json"
    },
    body: JSON.stringify(body)
    });
    console.log(response);
    } catch (err) {
    console.error(err.message)
    }
    }

    return (
    <Fragment>
    <h1 className="text-center mt-5">Pern Todo List</h1>
    <form className = "d-flex mt-5" onSubmit={onSubmitForm}>
    <input
    type="text"
    className="form-control"
    value={description}
    onChange={e => setDescription(e.target.value)} />
    <button className="btn btn-success">add</button>
    </form>
    </Fragment>
    )
    }

    WHAT I'VE TRIED: I tried adding this header to the API response: "Access-Control-Allow-Origin": "*" but that didn't help. I tried disabling my adblocker on the localhost, that didn't help.

    QUESTION I HAVE: Do I need to have my React server and my Postgres server running simultaneously? How do I do that?

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

    Just started CS50

    Posted: 07 Jan 2021 01:45 PM PST

    I am extremely excited, this is the best course I have ever taken!

    2 questions please!

    How long will it take me to finish the whole course studying 8 hours a day?

    Whats the best place to find CS50 student willing to interact and help each other?

    Thank you all

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

    Is it common to not have a clue what most startups are actually doing?

    Posted: 07 Jan 2021 11:40 PM PST

    I like to read on startups, but I find it very difficult to understand what most startups actually do. An example from TechCrunch:

    Volterra has innovated a consistent, cloud-native environment that can be deployed across multiple public clouds and edge sites — a distributed cloud platform. Within this SaaS-based offering, Volterra integrates a broad range of services that have normally been siloed across many point products and network or cloud providers.

    What??? And thats how most descriptions sound like.

    Most old startups (AirBnB, Facebook, DoorDash) are easy to understand. A marketplace, a social networking platform etc... I GET it. But all those new startups sound like "cloud native platform as a service with distributed blockchain serverless architecture".

    Am I missing some engineering knowledge to understand the newer startups?

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

    Do angular, react, and vue all serve the same purpose? And likewise with node, meteor, and express?

    Posted: 07 Jan 2021 09:24 PM PST

    Angular, react, vue: javascript libraries that help you design the UI of websites, they are strictly for front end development

    node, meteor, express: are all strictly backend, they are what make the websites run

    Is this right? And did I miss any popular options? It is confusing that there are so many different things all in javascript...

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

    List of tiny projects to hone specific JavaScript skills?

    Posted: 07 Jan 2021 02:07 PM PST

    I am looking for a resource that gives tiny projects or tasks that drill specific JavaScript concepts and it's variations. I.E a site that might give you a problem specifically designed around using Cases or Arrays or Objects which might then transition into Constructors. There is an overwhelming amount of resources out there and I am curious if there is one that is reminiscent of Gradeschool math kind of homework where you are introduced to a concept and you have to do 20 problems to drill in that tiny concept before moving on.

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

    CSS Help - First Time Programmer

    Posted: 07 Jan 2021 09:32 PM PST

    Everyone, this is my first post. I've literally just started programming. One of the projects I'm working on is a website for a project. There are two info cards under the same <class> that I'm trying to lay out side-by-side. I just can't make it work. Without making a ridiculous long post with my code, what's something I should look for?

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

    What should I learn next?

    Posted: 07 Jan 2021 08:44 PM PST

    Hello, I am a sophomore in college just finished my Fall semester and going into spring semester soon, I am studying computer science, for the past semesters I feel like I barely learned about my degree it was mostly general classes for math and other things that are required, so far I've only had one specific programming course which was about Algorithms and data structures in Java(following the suggested track for my degree by my advisor), and I feel like I am way behind everyone else(within computer science students) in programming, I try to do leetcode problems but that's it, do you guys think I should wait for college courses to teach me or just start doing stuff online? and if so what should I learn first, I was considering Android apps, or websites, which one can be more beneficial?

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

    When building applications, do you typically also build libraries?

    Posted: 07 Jan 2021 08:39 PM PST

    Hello - I build lots of applications, but I have never had to build a library. I am reading Functional Programming In Scala right now and it focuses on building libraries, which made me wonder: when do people build a general library? Every project I have done was a specific app with the implementation written into every method. Unless you plan to build a bunch of apps and want to reuse the code, what is the point of building a library and when does it become important?

    For example: my latest project is an app that delivers messages via REST API to phones with certain auditing guarantees. What would a library for that app look like?

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

    How much QA-Dev back and forth is normal?

    Posted: 07 Jan 2021 03:30 PM PST

    I'll push a feature only to have it QA denied, and the process can repeat anywhere from 5-10 times until the bugs are all worked out. Is this normal, or do I suck?

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

    how to handle searching an array of struct by attributes in C

    Posted: 07 Jan 2021 08:00 PM PST

    I'm working on a simple console program, it has a struct Person, and to make it even simpler let's assume that all of the attributes are integers, so the structure and the comparing function will look like this: ``` typedef struct Person { int name; int city; int email; } Person;

    int comparing(int x, int y) { return x == y; } now I have an array that contains elements of typePerson, and want to search in it, if I want to search based onnamethe for loop would look like this: for (i=0; i<n; i++) { bool = comparing(name, persons[i].name); if(bool) printf("found %d from %d", persons[i].name, persons[i].city); } this is simple, but if the user wants to search on the array based on two criteria? for example he wants to search for Persons who have a certain name and a certain city, how should I proceed to do this? I already started my searching function like this: int nbool, cbool, ebool, name, city, email; printf("what are the criteria you wanna use to search? (0 or 1)\n"); printf("name?: \n"); scanf("%d", &nbool); printf("2.city?: \n"); scanf("%d", &cbool); printf("3.email?: \n"); scanf("%d", &ebool); if(nbool) { printf("name: \n"); scanf("%d", name); } if(cbool) { printf("city: \n"); scanf("%d", city); } if(ebool) { printf("email: \n"); scanf("%d", email); }

    for(i=0; i<n; i++) { // don't know what to do here .. } 

    ``` but im stuck in the for loop, I don't know how to handle it, I hope my problem is clear and just a reminder the attributes are integers just for simplicity.

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

    Can I get information about how to use a module inside Python?

    Posted: 07 Jan 2021 11:40 PM PST

    Hello,

    I'm BM. A very nice and polite guy.

    Can I get information about how to use a module inside Python?

    Looking for something similar to man in bash.

    pip3 just shows basic info, no examples.

    I need some examples before I can start using the various modules.

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

    Python Redis Streams Question

    Posted: 07 Jan 2021 11:39 PM PST

    Hi all,

    Currently working on a project involving Python Flask and Redis. I would like to use Redis streams to get user input and send them to a backend microservice for processing. Then the results would be returned via stream back to the flask application to be displayed.

    It seems like there are three redis compatible modules for Python. Redis-Py
    , ReJSON
    , and Walrus
    . Of the three Walrus
    has the best documentation but no JSON support and ReJSON
    has support for JSON but no Streams support.

    Currently the Redis database is running in docker with the RedisJSON module enabled.

    flaskapp.py

    app = Flask(__name__) api = Api(app) db = Walrus(host=redis_host, port=redis_port, password=redis_password, db=0) stream = db.Stream('stream-one') class siteAPI_GP(Resource): # Returns existing Queries def get(self): queries = db.get('queryDB').decode('utf-8') return {'message': 'Success', 'data': queries}, 200 # Adds new Query def post(self): parser = reqparse.RequestParser() parser.add_argument('identifier', required=True) parser.add_argument('query', required=True) args = parser.parse_args() db.set('queryDB', str(args)) # Add form.query.data to stream msgid1 = stream.add({'message': args}) return {'message': 'Query Recieved', 'data': args}, 201 

    backend.py

    # Connect to DB db = Walrus(host=redis_host, port=redis_port, password=redis_password, db=0) # Connect to Stream stream = db.Stream('stream-one') # Pseudocode 

    Here is some pseudocode for what i would like to happen in backend.py after the script connect to the stream. Whats the best way of doing this?

    for message-received in stream-one: execute some code else print "still waiting for message" 

    I am currently thinking of using the Walrus modules in all Python scripts except flaskapp.py where I will use both ReJSON and Walrus to provide both streams and json functionality.

    All help is much appreciated!

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

    STUCK

    Posted: 07 Jan 2021 11:09 PM PST

    Hi I'm a beginner in programming I've installed codeblocks to execute c++ statements but somehow I am not able to create file with .c extension please help me out , how to create file in code blocks with .c extension

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

    staying logged in on refresh

    Posted: 07 Jan 2021 07:07 PM PST

    Hello people,

    I am learning programming and is currently doing a mini project, I'm trying to make it such that when the user refreshes the page, the user will still stay logged in.

    Currently I am sending the credentials from the client to the server and validating the credentials on the server, before returning the JWT token to the client side. However, when I refresh the page, the JWT token is lost as I only stored it in memory and the user has to re-login. I have read some tutorials online that suggest to store the data in a cookie? But then again, I have people telling me that it is not safe to do so and some recommend local-storage.

    May I ask what is the best way to securely do this, so that the user will stay logged in on refresh.

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

    Want to work on a Project like online code compiler. Need some help

    Posted: 07 Jan 2021 10:51 PM PST

    Hello code-geeks,
    I need some help in choosing the suitable technology for building a online code compiler..
    I had to choose which is the best server technology among them is suitable to build a online code compiler...
    I have some choices...
    1. Java Spring Boot
    2. Node js.
    3. Django python.

    also I am not getting a clear idea on ..
    does compiling and executing the code is a compute intensive task or a I/O intensive task..
    I'm open for the discussion on this question as well

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

    Courses for experienced full stack developer

    Posted: 07 Jan 2021 10:46 PM PST

    Hi, I am a full stack developer and my title says software engineer. Recently I want to try some courses like GCP cloud architect and AWS cloud architect. Please correct me if I'm wrong, I think those are related to infrastructure and dev ops.

    I am bit concerned about focusing more on actual coding / programming since I'm passionate about coding.

    So my questions are is there any better choices which focuses on programming for me to follow other than those courses?

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

    No comments:

    Post a Comment