• Breaking News

    Tuesday, June 29, 2021

    The greatest pain in programming comes from thinking "I should understand this". Screw that. It takes time and repetition to really understand something. Do you think a piano player can play a piece after only one runthrough? learn programming

    The greatest pain in programming comes from thinking "I should understand this". Screw that. It takes time and repetition to really understand something. Do you think a piano player can play a piece after only one runthrough? learn programming


    The greatest pain in programming comes from thinking "I should understand this". Screw that. It takes time and repetition to really understand something. Do you think a piano player can play a piece after only one runthrough?

    Posted: 28 Jun 2021 11:22 AM PDT

    Keep the expectations on yourself grounded and stay on track. You will get there.

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

    I've made a website to visualize and learn sorting algorithms, with description and implementations in multiple programming languages

    Posted: 28 Jun 2021 02:48 AM PDT

    Here's the link: http://sortvisualizer.com (try it with sound on!)

    Let me know what you think! Any feedback is much appreciated!

    This project is open source: https://github.com/Myphz/sortvisualizer

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

    Any coding self-learners interested in free cohort mentorship?

    Posted: 28 Jun 2021 02:30 PM PDT

    When I first started coding I was always looking for someone to give me insight on how to start a new app or website. Instead, I would spend ages combing through the internet until I got enough information to begin.

    Learning in a small group is the best for accountability. Bootcamps are way too expensive but their cohorts and support are good. So, I decided to make a middle ground of sorts. I host a 3 week accountability program with a small cohort where we go through cloned projects together.

    When you join the discord group you also get access to a quora-styled private forum to ask questions you want others to learn from.

    Discord link: https://discord.gg/SPjtUvRf

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

    Is it normal to want to tear my hair out when code doesn't work

    Posted: 28 Jun 2021 09:20 PM PDT

    It's like. I know the logic. But I can't find the proper way to execute because of stupid data type issues. Goddamn it.

    Argh. I'm just staring at the code and wanna give in.

    It's made worse by the fact that this should be easy

    submitted by /u/Transit-Strike
    [link] [comments]

    How do you find time for programming?

    Posted: 28 Jun 2021 03:37 PM PDT

    I have a bad habbit of programming till 3 or 4 am, but I know that it's bad for me. I can't code during the day because my parents a pretty conservative about computers and they constantly send me outside to do literally nothing, while I could be learning something useful instead. And since I can't code during the day, I'm doing it at night. Sometimes I get the time to do some programming during the day, but I also have some problems with procrastinating, but usually I just need to force myself to start programming in that case. And I'm slowly starting to develope a hate for sleeping.

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

    I’m so stuck

    Posted: 28 Jun 2021 11:33 PM PDT

    Hi, I feel so stuck right now and I would appreciate any advice on what to do next.

    • I first learned Java through taking the AP computer science A course in grade 11. That's when I first got into computer science and knew that I wanted to become a software engineer.
    • Next, I spent grade 12 coding in Python but I didn't have any projects with it. I also learned some basic Swift and built an app for it (for a school project).
    • In my first year of university, I took two intro CS courses but they weren't really software based, so I re-learned some of the basics I already knew and also some theoretical logic stuff.
    • I'm currently in the summer before my second year. I spent a month going through the FCC javascript data structures and algorithms course because I heard javascript is important for developers to learn.

    It's been 3 years since I started coding and I only have 2 small projects to show for it (a python stock portfolio tracking program and a Swift app). I feel like I've been "learning" too many different things and haven't been actually applying them to projects. This is mainly because I don't know which field of software engineering I want to get into and I feel like I'm so behind. I'm fairly sure that I don't want to do anything front-end related and I enjoy working with data structures and algorithms. What should I do?

    Thanks for all your time.

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

    C++: How often and when is it necessary or more practical to create your own template container class for a data structure that already has a template container class available in the STL?

    Posted: 28 Jun 2021 10:08 PM PDT

    The reason i am asking is because in the book i am studying I am going over templates and having a lot of fun doing the exercises where i have to create basic templates for containers of a couple data structures but... it makes me wonder how often doing such would be necessary when the stl already covers so much and has so much to offer as it is. But I'm a noob so what do I know? Better off asking I think.

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

    What paid services can you access for free once you learn how to code?

    Posted: 28 Jun 2021 10:45 PM PDT

    I'm sorry if this question seems stupid and already obvious lol. I'm a newbie and also a broke high school student :') knowing that I can also save more money while learning how to program just makes me want to learn more :D

    I'll start with the most basic one: not needing squarespace or wix to make a website by using languages like JavaScript and PHP!

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

    Just finished Clean Code - Are there other good books for general programming, or other reads you'd recommend?

    Posted: 28 Jun 2021 05:47 PM PDT

    More or less the title.

    I enjoyed Clean Code. Looking for other books to consider looking into while I learn and work. If context matters, I'm a mobile developer (iOS) but I'm curious to get into video/audio processing, photography, Cryptography and a liiiittle game development.

    What are good reads you picked up along the way?

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

    Do you need to know Java to learn Kotlin?

    Posted: 28 Jun 2021 08:18 PM PDT

    As Kotlin is a JVM language and makes use of Java libraries, is it necessary to know Java first before jumping into Kotlin? I first started programming using Java, but that was a while ago and I've stopped using it sometime and forgot all about it. After Java, I learned Python and C# and mostly stuck to those languages. I want to start Android Development in Kotlin, but I hear from people to use Java if you want to start Android?

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

    How familiar should I be with github?

    Posted: 28 Jun 2021 06:41 PM PDT

    How important is it that I know Github and how thoroughly should I know it to get a entry level job?

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

    Good Place for learning RegEx

    Posted: 28 Jun 2021 10:19 PM PDT

    Hi Peeps,

    I have been thinking about learning regex for quite some time, and I think now I can take that up. I wanted to know your opinion on what resources to refer to for that.

    Preference: Video-based resources or some textbook by a good author. Any other free website that helps in practicing regex.

    It would help the course is intended for beginners, and then slowly moving to the advanced part. However, if there's something that is moderately difficult, don't omit that. It can be used for learning in future.

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

    Anything to look for when looking at a coding bootcamp?

    Posted: 28 Jun 2021 09:54 PM PDT

    Just to skip over the "It's not for everyone" talk; here is my current situation. I was going to community college for a year before my dad got sick. Dropped out of school to help him until he got better. Worked Retail and Nursing while dad got better, and now currently helping my mother with her business venture while I get back into college 6 years later. She is quite impatient, not quite understanding college takes 4 years, and wants me to instead take a bootcamp so I can just do something for 4 months and get a job in the field I want and figure it out from there. With this limitation, can't really learn by myself, and if I'm not enrolled in a course, I doubt she'll really understand that I am on the computer learning. Basically bootcamp or bust sadly, and with this being my one chance, I want to make a good decision.

    So with the life story out of the way, I am between two schooling options and two language options.

    Schooling is between an accredited university which is about a 2.5 hour drive from my home. While the other is Coding Dojo, which reviews well but I am always very wary of independents, especially when it isn't even accredited. Both these courses are in person, and expected to be 10 hours a day for 6 days for 4-ish months. Difference is mostly the distance, since the Coding Dojo place is only about an hour away from me. I've only heard good things about Coding Dojo, but again, I like to be healthy cautious, especially since both will be costing me about 10k.

    Next I'm down to either doing JavaScript or Fullstack. JavaScript as I know will likely bring me the most money and job offers, while Fullstack would make me much more of a generalist, which would be great for me personally who wants to bridge out and try everything, but also I am unsure how much job opportunities there are for Fullstack users and if it be enough of a jumping off point for my career.

    Coding experience is that I worked with HTML, Python and C++, Not a ton though, as I only know enough to know that I basically could do something that can be seen as impressive in the 90's, but wouldn't get me even volunteer work in today's competition.

    I have already done a lot of research, so far I'm thinking of biting the bullet and doing the 2.5 hour drive to the university and accept that I might just choose to live in my car there for a few weeks if I don't have the energy to drive there and back again next day. Maybe use a friends couch so often and shower using a gym nearby to shower and use my savings to feed myself. It'll be rough, especially with the stress, but I think I'll be able to do it. JavaScript is the language I was thinking of, simply to get a job and a foot in the door. I will have plenty of time to begin to generalize once I actually start my career and learn more while on the job and in my free time.

    I am mostly asking to see if my plans seem right, if I am way off somewhere, or if my whole concept of things is flubbed due to an error in my research. I have done this most of this research by myself through a bias lenses that doesn't know the depths of the industry or anyone that's worked in the industry, so what better way to make sure I am making a good choice then...presenting it to people who are part of the industry and maybe have experience with bootcamps. :) Thanks ahead of time for the help!

    submitted by /u/2DLords
    [link] [comments]

    How to let the user submit a form by pressing 'Enter' ? I tried to autofocus on the submit button on onkeydown, but then it doesn't let me put any text in the input field.

    Posted: 29 Jun 2021 12:20 AM PDT

    <script>

    function focusOnButton() {

    document.getElementById("chat-submit").focus();

    }

    </script>

    <div id = "chat-input-bar">

    <input id="message-to-send" onkeydown="focusOnButton()" type="text" class = "send-message"
    placeholder="type..." autofocus>

    <button id ="chat-submit" class="btn btn-success">Send</button>

    </div>

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

    Angela Yu Web Development

    Posted: 29 Jun 2021 12:10 AM PDT

    I have been working through Angela Yu's Python course and am quite enjoying it. I want to learn about web development, and I know she has a course on that as well. However, some recent reviews claim that much of the content is outdated and irrelevant. Is that an accurate statement?

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

    Best age to learn programming.

    Posted: 28 Jun 2021 04:16 PM PDT

    My 12-year-old son has always wanted to learn to program as he would like to be a game developer. First off what language should he learn and also what is the best age to learn it.

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

    What should I do after learning the basics of python?

    Posted: 28 Jun 2021 12:30 PM PDT

    Hi I'm 16, I just finished a introduction to python course in my highschool last semester, and it was really great and a fun experience. I can say I understand the basics of python (if statements, while loops, for loops, functions, tuples, etc.). I am also interested in taking computer science in university. I was thinking of what should I learn to keep myself occupied this summer, but I don't know if I should continue expanding python or if I should try to learn a new language such as C or maybe web development (javascript mostly) because it seems pretty interesting. Any guidance would be pretty appreciated :))

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

    cin >> after an if statement c++

    Posted: 28 Jun 2021 07:59 PM PDT

    I am doing a menu based banking assignment in visual studio. Hopefully this isn't too vague.

    I want to do this:

    if (balance-withdraw<=0)

    cout << "You cannot overdraw. Add transaction? Y/N);

    Cin >> response;

    Else Cout <<"your new balance is " << balance- withdraw; balance+-withdraw; cout << "Add transaction? (Y/N) Cin >> response;

    The second line for cin after if won't allow me to use else. Is there an alternative? Thank you in advance!

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

    Take-Home Interview Projects for Software Developers

    Posted: 28 Jun 2021 05:07 PM PDT

    Take-home interviews are something I have experienced as a software developer. I once interviewed at a company where I and about four other programmers were told to implement two Figma mockups into HTML and CSS within 24 hours.

    We were told to host the project on Github and send them the link via email. I did that and never heard from them again.

    I have also heard similar cases where companies tell Developers to build projects and applications, only for them to ghost the Developer when they have access to the source code.

    So my question is this:

    • Is it a good idea to integrate websites or build applications for companies during the interview process?
    • Should developers ask companies to pay them if they are told to build a website or a major project during the interview process?

    What is your take on this as a Developer? Do you have any personal experience with this? I'd like to hear it.

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

    What made you get into programming?

    Posted: 28 Jun 2021 04:59 PM PDT

    I feel like I'm learning programming just for the sake of it. I'm currently taking Advanced Diploma for Computer Engineering Technology and will plan on getting into hardware side after I graduate. The reason why I'm asking is because I feel like most of the programming jobs will just make you sit 8 hours solving/making codes, and for me that sounds kind of boring. Sure, coding has decent salary, and making a code or debugging a code can me make feel proud about myself but is that all there is to it? I just want to know your other perspectives about programming. I'm trying to find other reasons to like coding but I just can't. Help me change my perspective? Thanks. I'm sorry if my statement sounded offensive.

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

    What should I do when I hit wall in coding?

    Posted: 28 Jun 2021 02:10 PM PDT

    Hey there, I just finished highschool and found internship in one company coding with clouds data, virtual machines, etc. For my first project, I am supposed to finish one 100 lines long python project and I have no idea. I have basic knowledge about python, but still, I got stuck just by looking at it. Can somebody help how to get over this and tips how to start? I know that I can as my supervisor, but I don't want to disturb him or acting stupid.

    Thanks in advance

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

    Pandas: Make a column with (1,2,3) if string of another column-Row value starts with ("A","B","C")

    Posted: 28 Jun 2021 10:43 PM PDT

    I have dataframe with filenames and classification, these are predictions from a network, I want to map them into integers to evaluate prediction from a network.

    My dataframe is :

    Filename: Class: GHT347 Europe GHT568 lONDON GHT78 Europe HJU US HJI lONDON HJK US KLO Europe KLU lONDON KLP lONDON KLY1 lONDON KL34 US The true prediction should be : GHT-- EUROPE HJU -- US KL -- London I want to map : GHT and Europe to 1, US and HJ to 0, KL and London to 2 by adding an additional two columns Prediction and Actual Actual Prediction 1 1 1 2 pd.str.startswith return true or false, here I want three values.Can anyone guide me? 
    submitted by /u/redpolarbearen
    [link] [comments]

    QUESTION! Bootcamp failure to launch

    Posted: 28 Jun 2021 10:36 PM PDT

    Hello! First post here.

    I finished a full stack bootcamp with Plataforma 5 on august last year. Had some personal problems during it and was not able to finish up to par with my class. Since then i had been quite afraid of getting hired and not be able to deliver. The last few months ive coded very very little, although the bootcamp was really intense and i finished with, among others an ecommerce with the PERN stack.

    The question i have for you is twofold. First, here in Argentina starting salaries for devs are pretty low, around 80000ars which is 800usd, and i feel pretty dumb now with everything remote not working for abroad, when my English is native-level. But at least in LinkedIn it states that id need a work permit, which doesnt make sense for remote.

    Question 1 Can i get hired abroad with no "real" experience? (the bootcamp felt very much like working as a trainee, agile, pair coding, git, the works). Senior friend told me id need two years experience before emigrating. That seems ages away for me.

    Question 2 Ive had some pretty harrowing experiences working for companies in the past (call center shivers), so if any of you managed to freelance from day 1, im all ears.

    Im on linkedin as /gatrivi, on github as /decat. But for TLDR purposes, lets say my portfolio is currently . PERN ecommerce . MERN with hooks note app And am about to start Angela Yus Flutter course since it seems the most efficient way to make android apps. There are many other projects from the bootcamp, but im not sure if they add to the resume or just clutter it.

    Any comments not related to the questions are welcome, thank you for reading.

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

    Is my solution to this coding problem inefficient?

    Posted: 28 Jun 2021 10:24 PM PDT

    (Apologize in advance that my post title reads like a buzzfeed article)

    So, I've been testing out some coding websites, and I've come across this problem that I managed to solve successfully. The thing is, the website is saying my code is scoring low on the "Code Complexity" category. I'm not going to mention the website's name because I don't want people to think I'm shilling for it.

    The problem's description given by the website:

    Maximum Sum Subarray - O(n^2)

    Given an input array that may contain both positive and negative integers, find the sum of continous subarray of numbers which has the largest sum.

    Input : Expected Output

    [-2, -5, 6, -2, -3, 1, 5, -6] : 7

    [-5, 1, -1, -1, 1, 5, 6, -5, 1, 5] : 13

    [-1, 7, 5, 0, -7, -9, 0, 8, -2, 5, -2, 1, 4, 9, 1] : 24

    [-20, -19, -18, -17, -16, -15, -14, -13, -1, -12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2] : -1

    [1, -7, 18, 22, 27, -38, 24, 33, -14, 30, 41, 47, -43, -16, -43, -45, -37, -26, -28, -22, -43, 30, 34, 32, -42, 28, -13, -35, -7, -14, -24, 8, 19, 1, -37, 31, -14, -6, 11, 33, 32, 29, -5, 0, -33, 45, -44, -6, -5, -39, -8, -33, 23, -42, 18, 28, -46, 40, -10, 38, 25, -1, 3, 10, -15, 4, -33, 46, -12, -10, -19, 29, -12, -11, 33, -25, -49, 24, 8, -10, -14, 28, 14, -29, -21, -40, 17, 18, 49, -24, -40, 28, -16, 46, -9, 43, 45, -29, -15, 6] : 190

    My solution (Javascript)

    class Solution { maxSumSubarray(nums) { var maxSum = nums[0]; var sum = 0; for (var i = 0; i < nums.length; ++i) { sum += nums[i]; if (sum > maxSum) maxSum = sum; if (sum < 0) sum = 0; } return maxSum; } } 

    Their solution:

    class Solution { maxSumSubarray(nums) { let maxSum = nums[0]; for (let i = 0; i < nums.length; ++i) { let sum = 0; for (let j = i; j < nums.length; ++j) { sum += nums[j]; maxSum = Math.max(maxSum, sum); } } return maxSum; } } 

    I don't get it, what's the problem with my solution? Thanks a lot!

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

    No comments:

    Post a Comment