• Breaking News

    Saturday, February 6, 2021

    What have you been working on recently? [February 06, 2021] learn programming

    What have you been working on recently? [February 06, 2021] learn programming


    What have you been working on recently? [February 06, 2021]

    Posted: 05 Feb 2021 09:00 PM PST

    What have you been working on recently? Feel free to share updates on projects you're working on, brag about any major milestones you've hit, grouse about a challenge you've ran into recently... Any sort of "progress report" is fair game!

    A few requests:

    1. If possible, include a link to your source code when sharing a project update. That way, others can learn from your work!

    2. If you've shared something, try commenting on at least one other update -- ask a question, give feedback, compliment something cool... We encourage discussion!

    3. If you don't consider yourself to be a beginner, include about how many years of experience you have.

    This thread will remained stickied over the weekend. Link to past threads here.

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

    I know this is generic, but I just got my first job offer and i'm beyond excited.

    Posted: 05 Feb 2021 09:40 AM PST

    After all the hard work, I've finally landed my first role as a Junior Software Developer. Don't give up! I don't have a degree, I didn't go to bootcamp, nor did I start with an internship. All that matters is that you genuinely learn the skills, work hard and never give up.

    I know people like to think studying for an hour or two a day will cut it, but my one reality was that I studied a lot more than that. I worked full time, so many days I couldn't touch my computer at all-- so that meant on any days off, I was coding 12-14 hours. On work days I still aimed for 2-3 hours when possible.

    The last thing I can say is BUILD BUILD BUILD! Learned CSS/JS? Build a tic tac toe game. Make a pretty website. Learned React or Angular? Build *another* tic tac toe game, then build an even prettier website. Learned Express/Node? Build a Password Saver or an I.T. Logger.

    If you can't stay motivated, build a project that appeals to you. One of my first bigger projects was an online rpg game that I built using random anime pictures off the web. I never published it or anything, but I sure learned a lot about programming.

    submitted by /u/At-LowDeSu
    [link] [comments]

    I GOT MY FIRST JOB , THANKS YOU ALL

    Posted: 05 Feb 2021 01:25 PM PST

    Hello all.

    First of all I want to thanks you all, for your support during this pandemic.

    I was doing a reconversion to be a developer and after 1 years and 3 months, i finally got a job as a web dev junior.

    I did start my reconversion by learning (by myself) C ( lots of C) after that I did some c++, but it would be hard to find a job with C programming ( lots of students who go out of school know C).

    So I decide to teach myself web and mobile programming, i did some small website project with react/ nodejs/postgresql.

    I did work like hell every single day..

    This allow me to land a intership in a startup where I have to do a social network app with React-Native and firebase.

    After finishing my internship, i did apply to a lots of company to try to have my first jobs.

    At that time I knew - JavaScript / Typescript / c / c++ / python / java / ruby - reactJS/ React-native/ RoR - nodejs / expressjs / jQuery - mysql / MongoDB / firebase / postgresql - android studio - docker / kubernet

    I just did one month of search before finding one (i so lucky to have one so fast.)

    Before I start searching for a job, I never did a single interview, so the more interview i did the better I was performing (the key is to sell yourself). But it went well, if you are not to weirdos, it pass :D.

    For reference, i land a job in paris that pay me 40k/years. That is good for someone with no degree.

    My job is to be a full stack web developer.

    I am really happy about it :)

    It was a really hard year ( i live alone ) and the pandemic didn't help, but it pay off :).

    I am really grateful for all of you, everyone on reddit have helped me and motivated me to keep going :)

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

    People who work on side project, how do you stay motivated every day?

    Posted: 06 Feb 2021 12:14 AM PST

    Curious because after a while, I am like ugggh and move on to something else.

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

    Anyone want to be an accountability partner and learn together?

    Posted: 05 Feb 2021 05:32 PM PST

    I tried this before but didn't really get anyone that worked out. I learn a lot better if I have someone to talk to about where we are at in programming. Makes me feel a lot more motivated and excited to learn. I'm learning python and geared towards making web apps if that helps! Dm me if interested maybe we can end up building something cool:)

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

    Linked Lists Question

    Posted: 05 Feb 2021 11:08 PM PST

    How come for linked lists say if a "head" node that contains 1->2->3->4. Then I create a newNode called "tempNode" and have that equal "head". Then if I run tempNode and remove "3" and have "2" point to "4". How come say if I print out "head" node that now "3" in head node is gone.

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

    Tutorials and copy paste

    Posted: 05 Feb 2021 10:40 PM PST

    Hello

    I have been trying to educate myself through tutorials and there is something that bothers me and i don't know if i am overthinking it.

    In many tutorials the teacher would copy paste a block of code and explain what it does but not how it work.

    "Copy this block of code, this will allow us to do something in particular"

    In lenguages like javascript and python sometimes stuff feels like made up, like is not explained why something must be there, only that it should be there to make it work.

    So my question:

    is it normal and should i memorize some blocks of code that i don't understand?

    How much should i memorize? I have seen some job offers that requires you to pass a test without googling.

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

    22yo w/no degree, but been through boot camps and startups.

    Posted: 05 Feb 2021 10:50 AM PST

    Firstly, thanks so much for taking the time to read my post, and hopefully give me some advice here.

    I feel as if I am competent enough in writing code in multiple languages to pick up an entry level job somewhere (Here's my Github), but haven't found a job that will hire me through 9 months of about 40 applications a week. I've become extremely hopeless and have nearly stopped putting time into writing code in my free time.

    Without going to college, how can I get into a job where I at least write code sometimes to further advance my career, and make some livable money? I'll almost nearly do anything to get going in that space

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

    Is there anything worth learning on Pluralsight?

    Posted: 05 Feb 2021 09:22 PM PST

    I see that they have a free weekend going. A lot of the stuff seems dated. I was thinking about going for the C++ courses. Is there anything else good that I might be missing? Thanks!

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

    Can I get away with knowing express and bypassing node.js?

    Posted: 06 Feb 2021 12:22 AM PST

    I only know how to call http methods with node, not much else since my coursework says express is preferred for larger scale apps. I'm mainly working with express api and nothing from node. Should I learn node methods and docs and what not? Or would I be okay just getting away with express.

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

    Should I really multithread a program heavily dependent on sequential IO?

    Posted: 05 Feb 2021 08:34 PM PST

    Hi /r/learnprogramming,

    I'm knee-deep in my first real project, and I decided to multithread things from the start.

    My program is a typical daemon; it accepts commands over a TCP socket and watches the filesystem for changes, and works on an SQLite server with the information received from both. Being a good little programmer, I insisted on keeping things multithreaded from the start, because multithreading = better performance, right? The structure of my program is now as follows:

    • Two main daemon threads loop; one listens for TCP commands, one watches the filesystem for changes. When either daemon thread detects activity on its channel, they send a command to the SQLite thread.
    • An SQLite thread loops, waiting for commands. When the SQLite thread detects activity on its channel, it performs a query/transaction with the actual SQLite database depending on what it was asked to do.

    I've realised that despite the multithreading, I don't think there's going to be a performance increase because of the following issues:

    • The SQLite thread acts on commands sequentially. It does not and cannot (for database consistency) spawn a thread to perform the query for a particular command. It simply receives a command, acts on it, then moves to the next one.1
    • The filesystem watcher thread similarly acts on filesystem events sequentially. It cannot act on filesystem events out of order; acting on a write for a file before the create event for that file has been received simply can't be handled elegantly given the program's requirements.

    In fact, all the multithreading has really done has been to force me to implement, and then deal with the consequences of, message passing between these threads. This interfacing is causing a lot of frustration.

    At the end of the day, even if the multithreading did speed up the program, my program is so IO heavy I'm not even sure it would be noticeable! My question is: is multithreading really necessary here? Should I keep it multithreaded for some significant reason other than performance, or should I just make my job (and the program) simpler and go singlethreaded?

    Thanks in advance for any advice!

    TL;DR

    My program is heavily-dependent on filesystem IO and an SQLite database. I've kept things multithreaded so far by having a thread listening for commands to the program and an (internal) thread listening for SQLite commands, but I can't spawn any more threads beyond that for the sake of consistency and the program's logic. Should I even bother keeping it multithreaded?

    1: I know SQLite is multithreaded, but that won't fix anything. One use case in my program is to rename a file in the database: I simply can't do that before the file is created, as far as I know. If there is a way, please tell me!

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

    How do I solve coding questions??

    Posted: 06 Feb 2021 12:20 AM PST

    I don't usually have much problem understanding programming concepts that I read and can understand someone's code but when I try to solve questions on websites like Codechef or Hackerrank, I have trouble thinking about the solution. How do I improve my skills??

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

    How do I create a search box for addresses in a city?

    Posted: 06 Feb 2021 12:12 AM PST

    Is there an api I can use where users can type in an address and get around 20 suggestions i.e. (similar to searching on google maps but without the actual map). Also how do I query for the suggestions?

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

    Time complexity of this algorithm

    Posted: 06 Feb 2021 12:00 AM PST

    What is the time complexity of the following algorithm?

    for(int i=0; i<list.size(); i++){ String cur = list.get(i); int cnt =0; while(output.contains(cur)){ cur= cur.substring(0,5) + String.valueOf(cnt); cnt++; } output.add(cur); } 

    if list and output are both list and are both inputs to this method, then since we are iterating in the list then thats O(n), since we use contains() on the output list then that's O(m) and since we are using while loop then it would be O(m^2). So the final answer is O(n*m^2). Where n corresponds to list and m corresponds to output

    Is this correct?

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

    The self taught path has been slowly killing me for years

    Posted: 05 Feb 2021 09:59 AM PST

    Made a throw away account out of shame to make this post. Sorry to use this sub for therapy but I need to be real for a bit, see whether any of you can relate or offer some feedback/advice.

    I quit my job back in late 2017 to join the "learn to code" train. It was a decent job and I regret it a lot. I also moved back in with my mom to save money while I put everything into learning to code. She lives in the states and I live in Canada, so I could only stay there for 6 months or so, which seemed like plenty of time. The plan was to move back in with my girlfriend at the time to help me settle until I found a place of my own at the end of the 6 months or so.

    I started with the cs50 course because it was highly praised, especially here on reddit. I was good at first but quickly became punishingly difficult and I started to feel like I wasn't using my time well learning c and just hitting walls with every project. I followed the lessons fine, but it seemed like when it came time to do the projects, the gap between what they taught and what they expected was insurmountable. I learned that the graduation rate for online students was like 1 or 2 % and it frustrated my that this was such a highly praised course for beginners if that's the case. To me, it seems like a quick way to make someone hate programming right off the bat. These Harvard kids have office hours and mentors to help them and they still struggle with the course, and they're Harvard students.

    So after much anguish, I decided to quit that course and learn Javascript. I found an online community that I won't name but the founder made good video content and hosted meetings with other students to talk about your progress and ask questions if you were stuck. You could tell he resented being asked questions though, and he resented when people weren't EXTREMELY meticulous about minute details when posting your progress. I really got the sense that he hated most of his students, including me, or maybe especially me. Although I learned a lot from him and his video content, the video content reached an end and I started to disagree with some of his advice on how to continue learning on my own. I definitely wasn't disciplined enough, but part of that was the pain I was starting to feel from constantly hitting walls, I was indulging in escapism because I was starting to associate coding with failure and regret. When my girlfriend would call and ask how coding was going, I would tell her it wasn't going well. She was supportive until she wasn't, and then she dumped me.

    So now I needed to find a new place to move to get back into Canada. If you've ever tried to find a place without being able to check that place out, you'll know it's hard. It's especially hard if you've been unemployed several months. I was stupid for setting myself up like that. I remembered my friend saying I could stay with him a couple weeks if things didn't work out. I tried to take him up on that offer and he said the situation changed a bit, but then he said that I could work for his brother on his parents farm as a weed farmer if I wanted. I didn't have a lot of options and I thought that farm life would be good for my mental health. They had wifi so I could continue to learn to code, but I didn't feel ready for a job in that field, so I took him up on that offer.

    But I ended up hating that job and hating his family and hating conditions I found myself living in. I won't get into it, but it was by far the darkest chapter of my life and they still owe me a lot of money. I started smoking a lot of weed to self medicate and I deluded myself into thinking some stupid website I was working on was any good, but it was just a time sucker and I wasn't living in the real world. I didn't have the wherewithal to continue focus on real coding. I felt trapped at that farm but I couldn't really leave. I didn't have a car or any other place lined up. After a year I reached out to a friend and told him how I was feeling and he basically rescued me by saying I could stay with him and he even helped me get a different job.

    But this other job had ridiculously long hours and I didn't have the energy to code on the side. I made it work at first but eventually I was just happy to be making money so I lost the sense of urgency in progressing. I rejoined that javascript community and tried to keep that momentum but the founder was just downright cruel from the get go, making me feel even worse about having strayed from the path and losing progress. I wrote him a long email telling him all the things I disagreed with and we seemed to patch it up, but every time he or his students would nitpick my progress updates, my resentment came back and I quit that community for a second time. I tried CS50 again too thinking my experience would make it easier this time around, and it did for the first few weeks, but it was just that much more of a blow to the ego when I hit a wall at week 5 or 6.

    I've lost 2 jobs now due to covid. I'm unemployed again and I've taken the time to work on developing better habits to help my focus and get my mental health in order. It's going well. I'm meditating, not using any substances, not even caffeine and barely any sugar. I'm reading instead of watching youtube. So yeah, no more escapism. I've started trying to learn to make games in Javascript to take the pressure off, to try and make coding fun again so I don't associate it with pain and failure and heartbreak and all that. I'm also reading "The C programming language". But I still hit walls and it is still a huge source of anguish.

    Here is the most important part. when I try to read complicated documentation and I don't get, so I post on a forum and then the responses I get are just as indecipherable as the docs, it hurts. I can't tell if it's me or them, that's the biggest problem. Is it that experienced people don't know how to break things down in a way that less experienced people can grasp? Have they taken for granted just how complicated what they're saying is because it's become so second nature to them? I feel like half the resources out there are written by people who assume we all have computer science degrees. Am I alone in thinking this? Because if not, then the answer is I'm probably just too dumb to be a programmer. And if that's the case, then it's something I need to know.

    tldr: Is it just me, or do you too find that an overwhelming amount of coding resources available are too complicated and that those experienced in a language, framework, or even a software, are not good at breaking it down in a digestible way?

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

    I feel overwhelmed and lost

    Posted: 05 Feb 2021 02:58 PM PST

    First of all, sorry for my bad english and grammar.

    So here it goes, I'm currently a sophomore and i'm studying information technology which specializes in animation and game dev. But my problem, is i feel fucking stupid when it comes to programming/coding. I do practice, but when theres an activity i tend to forget all about it. Right now we're studying c++, java, html and css. And i really don't know where to start. Right now i just feel fucking lost and overwhelmed. My classmates are really good than me they've been doing it for years, and there's me just started out last year and still an idiot. I don't know if i can keep up.

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

    How do I come up with ideas for a technical blog?

    Posted: 05 Feb 2021 11:40 PM PST

    Hello world! I'd like to get into writing technical blogs around cloud (AWS/GCP/Azure) revolving around data science. Though I'm familiar with the services and what they do, when it comes to writing blog articles, I'm drawing a blank. I've no clue what to explore, and what to write. I don't want to copy/mimic what somebody else has done, but at the same time, I do not understand what interesting/new subject to write on. Looking for advice, tips, suggestions - anything that could give me a sense of direction.

    Thank you!

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

    Generic Scraper

    Posted: 05 Feb 2021 11:39 PM PST

    Hey folks,

    I'm trying to build a scraper to create a job aggregation board. Essentially, it will go to a few hundred companies careers pages, scrape the available jobs, and feed the job title, description, and link to my API. However, the structure of every companies careers page is obviously different. I could build a scraper for each companies careers page, but I'd rather avoid that if at all possible.

    So far the only approach I can think of is to just grab all of the a tags on these careers pages, and extract the href value. The problem with this is that it also grabs a number of links that aren't what I'm looking for, sullying the dataset. I'm wondering - does anyone have experience with a similar task? Or failing that, does anyone have any suggestions on how to build this 'genericised' jobs board scraper?

    Any and all responses appreciated.

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

    Resources and tips for sudden project, being an extremely inexperienced programmer.

    Posted: 05 Feb 2021 11:33 PM PST

    Little context: My friend and I were kinda dragged to a contest, now we need to build a web app for cupcake store.

    We are not completely beginners in programming, however, we didn't expect to build a full functional web app right now, and we barely have made some basic login system.

    Problem

    The app will be basically an ecommerce app:

    • Orders from preset packages
    • Orders from a "make your own cupcake" thing (We don't know yet if this could be implemented as a JS game or as a Product Builder)
    • Cancel Order (before 2 min since the order was placed)

    Right now we don't plan to implement a user system, the order can be placed without registration of any kind. Kinda like Domino's Pizza works.

    Another thing will be how the owner can see the orders, so maybe a mobile app?

    Possible solutions

    • Bootstrap for the front end: The website doesn't have to be beautiful, just functional and with a clear layout.
    • Maybe use Apache Cordova for the exclusive app for the owner. Since is multi-platform and we can just use HTML, CSS and JS to build it.
    • Since we could use Cordova, maybe we could use Node.js and Express.JS for the backend? (We really don't know what stack will be good for us, you know: Between easy to learn and appropriate for the project)
    • We don't know if a JS game can save data to a DB, so here we are clueless to how we can implement the "build your own product" thing.

    That's it folks.

    We just want some insight since we are a little bit clueless.

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

    Is my understanding of how computers communicate with each other over the internet correct?

    Posted: 05 Feb 2021 03:58 PM PST

    Basically Computer 1, makes an HTTP request to computer 2. Using either their IP address or website address (which resolves into their IP address via DNS).

    When computer 1 makes the request, it does it through a port. For example <ip-address>:80 or <ip-address>:3000.

    Depending on what port you access, is what program that gets executed on that computer. For example <ip-address>:80 might return a html file or <ip-address>:3000 might access a completely different program.

    Computer 2 sends an HTTP response which signifies whether or not that connection was accepted or not.

    Overall is this correct? Thanks.

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

    How does a site uses multiple programming languages?

    Posted: 05 Feb 2021 07:35 PM PST

    If you look at the Wikipedia page of Discord), it shows that Discord was written in JavaScript, React, Elixir, Python and Rust. I know the interaction among JS, React and Python (via Django and Django Rest Framework or other framework), but I don't know how do Elixir and Rust come into play. Can you give me an example of a simpler case like the benefits of using multiple languages (e.g. PHP/Laravel and Python/Django with JS/React front end of course) for a web app and how would that work? Why not use one stack?

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

    Do front end developers just need to know how to fetch data from an API?

    Posted: 05 Feb 2021 02:34 PM PST

    I'm learning front end development, pretty much past the HTML/CSS phase and I know basic JS. I cant quite figure out to what extent I need to be familair with npm/ node.js. My understanding is that they're for building the back end of a website. I already know how to navigate an API and parse JSON. Is that good enough or is there more I need to learn?

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

    Cursor Based Pagination Question

    Posted: 05 Feb 2021 07:11 PM PST

    How do you guys handle cursor based pagination on a non unique field? I read that you can concat non unique fields to form something that is unique, then order it by that, but I am not sure how well this would work in terms of performance. Let me know if you guys have alternative solutions!

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

    Hello World with C++ on VS Code

    Posted: 05 Feb 2021 06:41 PM PST

    Hello,

    I'm trying to get a hello world to work with C++ on VS Code, using this guide https://code.visualstudio.com/docs/languages/cpp .

    I've followed it through, but it didn't work. The exe file says, "The file is not displayed in the editor because it is either binary or uses an unsupported text encoding." When I open it anyways, it is a very long file that is full of weird characters. Can anyone tell me what I did wrong, or just give me a guide that works for them to get hello world working for C++?

    Any help would be much appreciated.

    Thank you

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

    No comments:

    Post a Comment