• Breaking News

    Saturday, March 27, 2021

    What have you been working on recently? [March 27, 2021] learn programming

    What have you been working on recently? [March 27, 2021] learn programming


    What have you been working on recently? [March 27, 2021]

    Posted: 26 Mar 2021 10:00 PM PDT

    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]

    Is anyone here self taught snd successful?

    Posted: 26 Mar 2021 07:20 PM PDT

    Anyone? Bueller?

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

    I feel like I'm not smart enough too learn code for game development, but I really wanna make videogames for a living.

    Posted: 26 Mar 2021 12:40 AM PDT

    Hello, I'm planning on majoring in game design and development at my college. I wanna be a game designer/ game programmer. Right now, I'm learning the GML (Game maker studio 2) language. But, I feel like I'm not smart enough too learn code professionally like everyone else. It's been my dream to make videogames for years now, but I feel stupid about me not understanding some languages without looking at tutorials.

    EDIT: Thank you all so much for your feedback, I feel welcomed here.

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

    How do you make time to learn about the software fields that you like, while being a student and interning?

    Posted: 26 Mar 2021 08:21 PM PDT

    The more I learn about the software engineering field through school and internships, the more I want to create something by myself and dive deep into the software engineering process on my own. I've spent a bit of time interning at places, and learning concepts and skills at school, all of which were extremely useful to me. But now that I have a foundation, I'm starting to get ideas of what I would like to work towards. I'm starting to get curious about different architectures, frameworks, programming paradigms, and even different fields of the software world. I'm overwhelmed (in a good way) by the number of things that could be learned in this field. The more I know, the more I want to know if that makes sense. The CS/SWE field is a rabbit hole and the potential is endless, but to really get good at it is time consuming.

    However, I find that I do not have the time or energy to dive deep into the field and satisfy this curiosity. If I start an online course on a specific framework (separate from my uni courses), I get frustrated when I reach an exciting part late at night but I have work tomorrow. Or, I have a university course assignment that I need to start for next week. This makes me forget about the whole process when I get back to it the next day. I don't like when I'm forced to get outside of a state of flow, I just forget what I was working on or I lose my creativity the next day.

    Basically: On the one hand, I love and respect the education and skills that I am gaining from my internships and from school. I would not have any foundation nor would I have any curiosity if it were not for courses and internships. On the other hand, a part of me wants to take a year or two to lock in myself inside my room and do nothing but code, tinker, experiment, learn, and see where my own curiosity takes me. After all, that's one of the best ways to get good! It's by focusing intensely on something and really taking the time to understand how it works. But that's not realistic, and I'll probably one day get asked about an "employment gap", I'll probably go broke, and I'll forget how to interact with others.

    This has been a very real problem for me. I'm seeing if anyone can relate to this. Does anybody else have this dilemma? How do you folks deal with this in the early stages of your tech career without burning out? How do people get good at this field with so little time? I'm trying to stay realistic, I realize that I cannot simply quit everything and become a freelancer who is self-taught and makes 6 figures right away. I just need suggestions.

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

    I made a calculator in HTML, CSS & Vanilla JS without looking anything up except JS syntax!

    Posted: 26 Mar 2021 08:06 AM PDT

    https://simple-calculator-vanilla-js.vercel.app/

    https://github.com/sophiebushchak/simple-calculator-vanilla-js

    I made a JS calculator without looking up any help or step-to-step guide on how to make one. I am kind of proud that I was able to do it, because it was quite tricky at first.

    My steps were as follows:

    1. Setup the folder and create empty files
    2. Write the HTML
    3. Style it with CSS to create a calculator without any functionality
    4. Write logic in JS, connect to HTML elements
    5. Debug bugs

    I'm not entirely happy with how the JS code turned out because I feel like it is a bit messy and I ended up having duplicate code. I kind of have an idea on how to fix it too but I'm too lazy to do it right now and would like to learn more about how to keep my JS code manageable before I try anything. I also struggled a tiny bit to get the buttons lined up even with using flexbox.

    I'm actually not entirely sure how my own CSS works anymore even though I just wrote it yesterday and the way I worked was mostly based on just trying random stuff. So I'd like to improve my control over (flexbox specifically) CSS a bit so I know better what I'm doing in terms of lining elements up, controlling their width and width relative to each other.

    There were a lot of bugs on the first commit where it was half-working, I managed to iron out most of them but because of the pit I dug myself into with managing the state in the JS I would like to just restart completely and try to do it in a cleaner way on a next iteration instead of trying to do anything with these remaining bugs.

    I would appreciate a direct code review on the JS as well as some kind of suggestion on how I could have better managed the calculator's state.

    In the README I have written some more things I possibly neglected to mention here, so feel free to read that.

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

    I want to make a pc for programming purposes are the following specifications okay? I need to develop java desktop applications, native android apps, and react native applications.

    Posted: 26 Mar 2021 03:29 PM PDT

    This is what I'll send to my friend who's the guy that will help ne make my pc.

    RAM : Minimum: 8 GB DDR3 Preferred: 16 GB DDR4 if supported by the processor.

    Memory: Minimum: SSD (256 GB or higher) Preferred: M2 type SSD

    Processor: Minimum: I5/I7 3rd Generation Preferred: I5/I7 6th Generation

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

    What are some talks every programmer should watch?

    Posted: 26 Mar 2021 09:59 PM PDT

    I came across the video below today and it was amazing.

    What the heck is the event loop anyway? | Philip Roberts | JSConf EU https://www.youtube.com/watch?v=8aGhZQkoFbQ

    Are there any other great videos like this? Please share :)

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

    C# or Java ?

    Posted: 26 Mar 2021 02:47 PM PDT

    I decided to enroll on a local programming bootcamp in my city, outside USA. Only two options are possible, 1).NET and C# or 2)Java & Android. Which one do you suggest me to join in terms of job opportunities and their overall usability? Thank you.

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

    Spent the last 5-6 months teaching myself web development, instead of doing internships. Was this a good use of my time?

    Posted: 27 Mar 2021 12:02 AM PDT

    A little background information of me, I'm a highschool graduate outside of the U.S who graduated 2 years ago (in 2019). Up until the end of my first gap year, I was under the impression that I was going to start university in 2020, however I was again unable to start that academic year. Still planning on starting university in autumn 2021 though.

    And so then I thought to myself, "with all this extra time on my hands, I might as well learn how to code". It was something that kinda intrigued me, and with technology-related jobs being a lot more prevalent I thought it would a good skill to pick up.

    Hence, since June of 2020, I've been slowly teaching myself how to code (I started with python), and ended up bouncing around trying alot of different CS resources (MOOCs, textbooks etc.) but couldn't find something to stick with. You could say that I was in tutorial purgatory during those few months. Built a lot of toy projects, but nothing significant, and nothing I would confidently show off on my github page to future employers.

    However, starting Oct of 2020, I started The Odin Project (a free open source web dev course), and I've been doing it consistently almost every day ever since. I'm on track to finish the entire course by late-april/mid-may. Through the course, I've learned ruby, HTML/CSS, rails, a bit of sql. I am currently learning javascript, which happens to be one of the final courses. I think I've amassed a decent portfolio of web dev/coding projects that show off my skills. Perhaps (once I'm finished with the course) I have enough to get my foot in the door with a web development internship or junior position.

    The thing that worries me is that, excluding Odin project and the months I've spent learning how to code, I have a massive gap in my resume. The last internship I did ended Dec of 2019. Future employers maaay be a little more lenient with this time period since there happens to be an ongoing pandemic, but I'm sure that my resume still looks pretty suspicious. I want make it clear to to future employers that I wasn't just sitting on my ass doing nothing all this time. I plan on including the time spent doing "The Odin Project" somehow into my resume anyways. Was it okay that I used this time to learn a new skill, instead of doing internships?

    TLDR;

    Highschool graduate (outside of the U.S) of 2019, had 1 expected gap year, and currently undergoing an additional unexpected gap year (both due to circumstances). Set to start uni in autumn 2021 (fingers crossed). I have a massive gap in my resume because I spent months teaching myself how to code, as well as web development. Amassed a decent portfolio in web developement/coding as a result, through the Odin Project (a free open-source web dev course). My resume (as it stands, without mentioning the time spent learning coding), is blank starting from Jan 2020. Haven't had work experience or internships since. Is this bad? Should I be spending more time trying to land an internship (not necessarily tech related), or doing something else with my time?

    (edit: grammar)

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

    How many times do you repeat an exercise like a concept?

    Posted: 26 Mar 2021 03:02 PM PDT

    I just want to know how many times you repeat an exercise or problem to learn a concept.

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

    what are the best resources to learn C#, or C++?

    Posted: 26 Mar 2021 03:25 PM PDT

    Ive been looking for a while and i cant find a whole lot. Is W3schools a good place?

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

    Languages for client and server side?

    Posted: 26 Mar 2021 10:58 PM PDT

    I'm a new programmer. My employer wants me to go for Typescript and NodeJS.

    I read some articles and found that Phoenix web framework would be a better alternative(?) but I dont know which client side lang would be good?

    Please comment how this sounds.

    I'm new so I don't have much idea; this is based on my internet research.

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

    C++ First Program is done

    Posted: 26 Mar 2021 11:15 AM PDT

    I recently started teaching myself c++ and this is the first program I've written after Hello World.

    Advice on better ways to write the code and general improvements would be greatly appreciated.

    Code: https://github.com/Tolttone/cpp-shit-project

    Would want advice specifically on better and easier syntax to do the same job.

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

    Helping People

    Posted: 27 Mar 2021 12:29 AM PDT

    Does anyone have an idea for an app, website, ML, Deep Learning model that I can make for you/ help in?

    I have a Bachelor's Degree in Information Tech. and would like to help in projects and test out my knowledge along. Anyway, this help is for free so please dm me and let me know.

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

    I am once again stumped and have no clue how to progress further

    Posted: 27 Mar 2021 12:04 AM PDT

    How the hell do these guys crack these super hard coding interviews? How do they 'think' like that?!? I can't think for shit. I've been doing leetcode for a month now and I wasn't a beginner to coding before starting it but even after a month I can only crack the easy ones. I struggle pretty damn hard with leetcode medium, sitting there trying to figure out a solution for 30-40mins and still have to see the solution. Understanding the solution is a whole different process and don't get me started on the 'hard' ones, they're like a super tall brick wall I could never climb. I've always aced school, I never found it particularly hard but the leetcode thing is exceptionally hard for me. On giving it some thought, I realised I wasn't intelligent in school, it was just memorization of basic information and spilling it in the exam. It was easy, I scored pretty good in math throughout the school life but after some self evaluation, I've figured I only did that because the exams always consisted of 70% of the questions from the textbook, the ones I've previously solved. Throw something entirely new to me and BOOM, NO CLUE!

    My entire school life was a lie, my grades are a lie, if I actually had intelligence, this leetcode should not have been that big a deal. I'm like maybe that's with everyone but then I see these comments on leetcode, random strangers on the internet coming up with clever solutions. Where the hell did these guys come from? And why are they all super smart? How do they 'think'? I can't seem to figure out anything that's beyond a certain threshold of difficulty (like I can't even go halfway through), let alone coming up with a smart solution. If I do happen to come up with some naive solution, it's extremely hard to implement and pretty fucking taxing complexity wise. I'm doomed, aren't I?

    If anyone reading this is high up on the ladder, help would be appreciated. I'd like to know the thought process, how do you guys think of solutions to difficult problems? What's the process? What time does that take? Will I ever be smart enough?

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

    Love it!!

    Posted: 26 Mar 2021 02:08 AM PDT

    So.. I worked for 6 years in the Real Estate industry and most of the time I felt out of place. Mainly because in this industry everything takes so long to finish. From Real Estate development projects to simple procedures. By chance I got a job offer at a software firm that builds software solutions for real estate firms. I was always interested in software development but never made the time to dive deeper into it. After getting the job I started learning python and basic CS concepts but holy shit, CS concepts and algorithms where a pain to wrap my head around. Slowly i started to loose motivation to learn. I then got my first programming assignment and menn it was hard. But then finally, last week after another week of trying to understand concepts and the code, it clicked in my head and wrote my first function and it worked beautifully. At that point i understood what makes programming so fun and I can't explain the feeling of accomplishment I got from this. Compared to the industry iam coming from it was so nice building something an almost instantly seeing the results. Now I know that it takes time to understand this and the main motivation killer is comparing myself to others. So to all the others that are trying to learn, give yourself some time and don't compare yourself too much to others. Celebrate your own small victories. Iam really happy I took the job offer and I see myself growing in this field. Let's go!!!

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

    any cool random secret resources that helped you understand methods and functions when learning javascript?

    Posted: 26 Mar 2021 07:46 PM PDT

    i am in a bootcamp and i just had an incredibly hard week of javascript. at first i was keeping up with the pace and learning and digesting but something happened and i ate too much info and now i am not digesting anything anymore.

    any tips? any resources that helped you learn?

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

    Glitch where player keeps moving in the same direction in a cutscene

    Posted: 26 Mar 2021 11:27 PM PDT

    So I have a bug where if you're holding down an arrow key as you talk to an npc, you keep moving in that same direction until you stop talking to the npc. I want to make it so you are permanently still. I can't use Time.timeScale because the textbox has animations that wouldnt work with a timescale of 0. Here is the movement code I used for the cutscenes:

    if (Interactable.isCutsceneOn == false)

    {

    movement.x = Input.GetAxisRaw("Horizontal");

    movement.y = Input.GetAxisRaw("Vertical");

    animator.SetFloat("Horizontal", movement.x);

    animator.SetFloat("Vertical", movement.y);

    animator.SetFloat("Speed", movement.sqrMagnitude);

    }

    Plz help! THanks!

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

    In C#, how can I prevent a function from replaying?

    Posted: 26 Mar 2021 11:23 PM PDT

    So I have a setup where you talk to npcs and get points for talking to them, and because of this I don't want the player to be able to talk to them again. This is what I have for the EndDialogue function:

    void EndDialogue()

    {

    FPManager.fpValue += 5;

    Interactable.isCutsceneOn = false;

    animator.SetBool("IsOpen", false);

    }

    I want to add something that would prevent player from repeating the dialogue sequence, and I've already tried DestroyComponent with script but it gave me the object reference not set to instance of object error. Any help? Thanks!

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

    1st time -python scripting-Trying to create price watch with soup

    Posted: 26 Mar 2021 07:14 PM PDT

    So following youtuber vid, i'm stuck on:

    soup.find(span="data-ref").get_text() 🤷

    Outer HTML paste:

    <span data-ref="product-price-isNotRR" class="PriceText__ProductPrice-sc-1jk1sw5-0 jqJTBv"><span>$298.00</span></span>

    Trying to print price.

    Code so far:

    import requests

    from bs4 import BeautifulSoup

    URL = "https://www.officeworks.com.au/shop/officeworks/p/brother-wireless-mono-laser-mfc-printer-mfc-l2750dw-brmfcl2750"

    head = {"User-Agent": 'Mozilla/5.0 (X11; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0'}

    webPage = requests.get(URL, headers=head) soup = BeautifulSoup(webPage.content, 'html.parser')

    price = soup.find(span="data-ref").get_text() print(price)

    Tx

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

    Do people memorize all the headers and their functions in libraries for c++?

    Posted: 26 Mar 2021 02:06 PM PDT

    Learning c++ currently, and im just a little curious about libraries. Mostly because it looks super daunting to me rn, based off of the amount of headers for each one. Personally, I haven't even gotten around to learning these other headers, as I'm still learning iostream.

    Do people really go and memorize how to use all these functions and what not? Or would you usually Google stuff as you go? Too me, it seems like it'd almost be impossible to memorize everything. I hope I'm not way off target with this post, as far as my understanding goes.

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

    C# Discord Automated Reply

    Posted: 26 Mar 2021 06:53 PM PDT

    Just wondering, is there any way I can make a bot that replies to my personal DM's?

    Like if a person DM's me I can have a bot instantly reply with a message like "This is an automated response, I'll be with you soon".

    And can you make it so that it types different things to different people?

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

    In need of motivation

    Posted: 26 Mar 2021 12:49 PM PDT

    Hello,

    I recently embarked on the journey of learning java. Initially I thought it was amazing and I couldn't contain my excitement! However, I recently began to doubt the possibility of getting a software developer job, especially being self taught

    I recently accepted an offer as a corporate tax accountant which doesn't start until August. But having time to think about the role and all it entailed the more depressed it makes me.

    I decided to put my all into learning java between now and my start date, aiming to make a career switch in about a year.

    If you are a self-taught developer, would you mind telling me a little bit about your story to give me the inspiration needed to get out of this rut?

    Thanks.

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

    I very frequently get the same error when uploading to github, and I would LOVE to know why and how to avoid it

    Posted: 26 Mar 2021 06:32 PM PDT

    error: object file .git/objects/41/longstringofnumbersandletters is empty error: object file .git/objects/41/longstringofnumbersandletters is empty error: object file .git/objects/41/longstringofnumbersandletters is empty fatal: loose object lotsoflettersandnumbers (stored in .git/objects/41/lettersandnumbers) is corrupt. 

    It seems like I get this error every four or five times I try to add stuff to the staging area or check my git status. Its not horrible, as I can just copy the local folder to a backup, delete the local folder, clone the repository, and copy the files from the backup back to the new local folder, but HOLY cow its annoying to have to do it so frequently, And, on more than one occasion, I've accidentally deleted the changes I was trying to commit, only to have to rewrite everything.

    Does anyone have any thoughts on why I would so frequently be getting this error, and what I can do to prevent it?

    Thank you!!

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

    Can I limit the calculation in my html to only 2 decimal points?

    Posted: 26 Mar 2021 12:34 PM PDT

    For example, entering 1.49 in pump displacement and 3200 in pump rpm results in a GPM of 20.64069264069264.. I want it to only look like 20.64. <form onsubmit="return false" oninput="totalGPM.value = ((pumpDisplacement.value \* pumpRPM.value) / 231);"> <table> <th>Conversion of Flow Rate and Cubic Centimeters to Cubic Inches</th> </table> <table> <tr> <th>Pump Displacement</th> <th>Pump RPM</th> <th>Gallons Per Minute</th> </tr> <tr> <td><input type="number" name="pumpDisplacement" maxlength="4" size="10"></td> <td><input type="number" name="pumpRPM" maxlength="4" size="10"></td> <td><output name="totalGPM" id="totalGPM" for="Flow Rate Conversion"></output> GPM </tr> </form>

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

    More in depth differences between MongoDB and MySQL?

    Posted: 26 Mar 2021 10:17 PM PDT

    Hey, I want to know more about MongoDB and MySQL. I know that they serve the same purpose but have some differences as well, especially on how they are structured.

    I just want to dig deeper into their differences. What can MongoDB do that MySQL can't? Vice versa. Which one's easier to setup? Which one's easier to maintain? Which one's easier to learn? And which of the two is more used in production especially in 2021?

    Another thing is, I use React. Is React + MongoDB (MERN stack) more common that using React + MySQL?

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

    No comments:

    Post a Comment