• Breaking News

    Wednesday, January 6, 2021

    How often do you revisit the basics? learn programming

    How often do you revisit the basics? learn programming


    How often do you revisit the basics?

    Posted: 05 Jan 2021 01:35 PM PST

    I have been working as SWE engineer for the last five years, and almost every year, I try to skim through Bjarne's C++ book once. I keep forgetting the fundamentals, the low level details, etc.. Experienced and talented developers around me don't seem to be revisiting the basics as much as I do and my progress as a software engineer seem to be gradually slowing down. How often do you revisit the basics of the programming languages that you know?

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

    I just need some help to keep improving! I want to think like a programmer.

    Posted: 05 Jan 2021 03:27 PM PST

    Hello ladies and gentlemen,

    I've been self teaching myself how to code for a year now. I am really enjoying my time learning how to program/code. As all programmer newbies I fell into this "fake" sense of "this is easy" when I started with HTML and CSS. Once I started with JavaScript I realized this is going to be bigger challenge than I imagined. I enrolled myself in a coding bootcamp, so I could learn the basics a little faster, and in a more structured way and so far I am enjoying it. The projects and homework assignments are more challenging that your typical book or "codeacademy" challenge/project. BUT, there is something that keeps demotivating me. I want to think like a programmer; mostly when it comes to functions. Recently they gave us this "easy" homework to create a random password generator, and I have to say that the logic took me countless hours of tutoring and googling LOL! I refuse to give up haha, I want to keep learning and get better at it, but I need that logical thinking that my tutor or some of the TA's in the class have. I mean im pretty logical, but DAMN! these guys think of a function in a different way.

    Any advise to get to that level? I know that it will come with practice and time, but any other advise?

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

    What to do as a disabled software engineer...

    Posted: 05 Jan 2021 04:55 PM PST

    So, I graduated with a Comp Sci Engineering degree top-of-class from a top university about 4 years ago. Problem is, I was SO obsessed with grades that I did not learn a great foundation. I worked for some good companies, IBM, Lockheed, etc. But I became disabled and now am on a crap ton of meds and have a hard time thinking. I am bed-bound with pain.

    I want to utilize my time wisely while I am disabled, but I can't make money because I need to get a disability (I really can hardly think). I have 2 options:

    1) Code for fun: I have always been drawn to hacking - always. I did it as a kid. but I know it may be hard breaking into the industry. I've also always wanted to make native iOS apps. I used to code React Native, but I have a passionate hate for it now. Native iOS is cool cause I can make AR/VR/Games, etc. But hacking.... well, I know I'd love it.

    2) Try to fill in my knowledge gaps. I started reading SICP yesterday, but I am on WAY too many meds to follow it. I used to tutor calc 1, 2, 3, orgo, physics 1, 2, and more. It's sad how far I've fallen from grace.

    Anyways, any recommendations?

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

    When I first started learning programming, fibonacci and recursion made me feel completely unworthy and unintelligent

    Posted: 05 Jan 2021 05:04 AM PST

    As a self taught programmer myself, I remember having a hard time finding explanations for fibonacci and recursion that fit my learning style. It was the first wall that I hit and it made me think that maybe I wasn't smart enough to tackle such things and that I was in over my head. It took me some time to really start to understand the way that my own brain comes to terms with a given concept and I started to realize that I have a hard time understanding concepts in isolation and that I am also a very visual learner. With that in mind I started to look for content that would enable me to connect the dots for whatever it was that I was trying to learn in my minds eye as opposed to content that contained deeply technical explanations.

    To my surprise, once I was able to find my own individual way of understanding something, the deeply technical explanations began to become more clear. So in a sense, you could say that fibonacci and recursion taught me a lot about my learning style and made me realize that sometimes it is best to ignore the voice in your head that instantly jumps to the most negative conclusion possible when you are trying to learn something new.

    With that said, I once again find myself feeling unworthy as I am once again trying to learn something new. I have never made a video attempting to teach something before but I do hope that this explanation of recursion and the fibonacci sequence will resonate with those that have a similar learning style to myself. And if this video doesn't help you, please always remember that there is a resource out there that fits your way of learning!

    https://www.youtube.com/watch?v=LrQjMY0eWC0&feature=youtu.be

    submitted by /u/Expensive-Farm-4324
    [link] [comments]

    Sharing a guide that helped me. Hope it can help someone else. [I did not write it.]

    Posted: 05 Jan 2021 11:00 PM PST

    I've been programming for close to a year (one good thing of 2020 I guess) and am proud of how far I've come. I owe part of my growth to this guide because it really helped me figure my way around as I began self-learning and has made going back to school a bit easier than if I had gone in blind.

    Hoping this can help someone the way it's helped me out. Happy 2021 everyone!

    https://electrichive.github.io/waggledance/

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

    [Java] How do you check if an input string is null?

    Posted: 05 Jan 2021 11:06 PM PST

    Incredibly frustrated with this. Trying to reverse a string with this code:

    public static String reverseString(String s){ String outputString = ""; for(int i = s.length()-1; i >= 0; i--){ outputString += s.charAt(i); } return outputString; } 

    Firecode.io is giving me nullpointer exception errors. My guess is I'm being given 'null' strings and am expected to return a 'null' output.

    How do I do that?

    I've tried "if s == null" check but that doesn't work. if(!s) check also does not work.

    How do you check if something is null in Java?

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

    Looking at bootcamps

    Posted: 05 Jan 2021 10:51 PM PST

    Hey I was wondering if anyone has any success/failure stories of online bootcamps. I've been studying and coding on and off for several years. I am comfortable in Javascript and some popular frameworks. I am struggling to find a way to get a portfolio togetheṛ(finish projects) and apply for jobs. I know there are major gaps in my understanding but I am a little tired of the learn on your own path. I excel in an environment that has an curriculum and overall end game. I don't have any trouble motivating myself and getting the work done.

    I am currently looking at starting with Career Foundry's web dev course. Has anyone completed it? Did you receive any job offers? In your opinion is it worth it? They do gurantee a job within 6 months of graduation but I just wanted to hear other's experiences.

    Ideally, I believe, given the opportunity to work for a company and on a team I would have direction and my learning and skill set would increase exponentially. However, there isn't any companies/jobs that are very eager to take on someone in my position.

    I am dedicated and know this is what I want to do but I am just struggling to put a linear path to a career.

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

    Best non-video based learning sites

    Posted: 05 Jan 2021 07:59 PM PST

    Hi everyone,

    I've gotten six months free of Codecademy pro so going to take advantage of that, however I've been browsing through and people say it's not a good idea to stick to just one site, E.G. Codecademy.

    I work better as an auditory learner and reading. I doubt there's any coding sites that favor auditory learning, but sites like FCC and codecademy are okay. Was just curious if anyone had any other recommendations?

    In particular a bonus would be if the site's curriculum was project-based and allows you to use an IDE like VSCode. Upskill courses sounds pretty nice but I have trouble following along to videos.

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

    Any Tips on How to Get a Head Start in College for IT?

    Posted: 05 Jan 2021 10:10 PM PST

    My nephew is graduating high school in the next few months, and he is looking to pursue technology. Are there any skills or knowledge that are going to be useful for him in his early years of college? Also, is it advisable to join an online bootcamp for full stack web development in his situation? Would love to hear your thoughts on this.

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

    I want to be a Full-stack web developer, but I don't know where to start

    Posted: 05 Jan 2021 10:07 PM PST

    I already know HTML, CSS, and some Javascript, but of course that is not enough. So I started learning react on codeacademy and the full stack course, since I think I am still such a noob and I really lack a lot of experience and knowledge even tho I've built real websites before.

    I currently have a job, but in the future I would like to do Freelance.

    Any advice?

    Thank you!

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

    Stupid question about collision detection in JS

    Posted: 05 Jan 2021 09:35 PM PST

    I have gone absolutely mad over this! I have been working on it since yesterday morning tried every single combination of x and y cords but still no luck. I have a player which when colliding with a spike should step back (kind of like a wall) and I want to subtract a this.lives variable. I want the player to move back in such a fashion that if he does touch the spike,he moves back a certain distance like 5px so he isn't touching the spike no more.my code is very disorganised i know that but currently i just want to work on the collision detection.I LTERALLY CANNOT SLEEP.

    player.js

    export default class Player { constructor(width, height, color, game) { this.width = width; this.height = height; this.color = color; this.gravity = 2; this.velocity = 0; this.lift = -65; this.speed = 0; this.maxSpeed = 7; this.jumpCount = 0; this.game = game this.position = { x: 10, y: this.game.gameWidth /2, } } draw(ctx) { ctx.fillStyle = this.color; ctx.fillRect(this.position.x, this.position.y, this.width, this.height); ctx.rotate(this.angle) } jump() { if (this.jumpCount < 2 && this.jumpCount >= 0) { this.velocity += this.lift; } else { this.velocity += this.gravity; this.velocity *= 0.9; this.position.y += this.velocity; } } moveRight() { this.speed = this.maxSpeed; } moveLeft() { this.speed = -this.maxSpeed; } stop() { this.speed = 0; } update(dt) { this.position.x += this.speed; this.velocity += this.gravity; this.velocity *= 0.9; this.position.y += this.velocity; if (this.position.y > 785 - this.height) { this.position.y = 785 - this.height; this.jumpCount = 0; } if (this.position.y < 0) { this.position.y = 0; } if (this.position.x > 1530 - this.width) { this.position.x = 1530 - this.width } if (this.position.x < 0) { this.position.x = 0; } } } 

    Spike.js

    export default class Spikes { constructor(x, y, width, height, game) { this.x = x; this.y = y; this.width = width; this.height = height; this.image = document.getElementById("spike"); this.game = game; } draw(ctxt) { ctxt.drawImage(this.image, this.x, this.y, this.width, this.height); } update(dt) { if (this.game.player.position.y + this.game.player.height >= this.y && this.game.player.position.y <= this.x + this.height && this.game.player.position.x + this.game.player.width >= this.x && this.game.player.position.x <= this.x+this.width) { this.game.player.speed = -this.game.player.speed }else{ this.game.player.speed = this.game.player.speed } // if (this.game.player.position.x + this.game.player.width >= this.x && // this.game.player.position.y +this.game.player.height >= this.y&& // this.game.player.position.x <= this.x+this.width){ // this.game.player.position.x-=7 // } // if(this.game.player.position.x >= this.x && // this.game.player.position.x <= this.x+this.width && // this.game.player.position.y +this.game.player.height >= this.y && // this.game.player.position.y >= this.y+this.height){ // this.game.player.position.x+=50 // } } } 

    GameManager.js

    import Player from "../Classes/player.js"; import Bullet from "../Classes/bullet.js"; import Spikes from "../Classes/spikes.js" import InputHandler from "../GameHandlers/InputHandler.js"; export default class gameManager{ constructor(gamewidth,gameheight){ this.gameWidth = gamewidth; this.gameHeight = gameheight this.player = new Player(50, 50, "#33dede", this) this.bullets = []; this.spikes = [] this.magicAngle = 0; this.inputHandler = new InputHandler(this); this.maxAmmo = 12; this.currentAmmo = 12; this.lives = 6; this.spikes.push(new Spikes(1000,700,51,51,this)) } fireBullets(event){ this.magicAngle = Math.atan2(event.clientY - this.player.position.y-25, event.clientX - this.player.position.x -25); this.bullets.push(new Bullet(this,this.magicAngle)) } removeBullets(){ this.bullets.forEach(bullet => { switch (bullet.update()) { case true: this.bullets.splice(this.bullets.indexOf(bullet), 1); } }) } draw(ctxt){ [this.player,...this.bullets,...this.spikes].forEach((object) => { object.draw(ctxt) }); } subtractLives(){ this.lives-- } update(dt){ [this.player,...this.bullets,...this.spikes].forEach((object) => { object.update(dt) }) this.spikes.forEach((spike) => { if(spike.update()){ this.subtractLives() } }) // console.log(this.lives); } } 
    submitted by /u/Ranvir33
    [link] [comments]

    Is there any way to access microphone and add static noise on it using python?

    Posted: 05 Jan 2021 09:30 PM PST

    I want to create a python script which can access my laptop's mic and then add some static noise on it(just for fun in my online class). Noise must be like my microphone is not working correctly or there is network problem. Is it possible?

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

    [Noob] How to add specific parts of new file to git stage?

    Posted: 06 Jan 2021 12:44 AM PST

    When you edit an existing file in a git repo, you can add parts of it with `git add <file> -p". Is there a way to do this with a newly created file? There's no diff to work from of course, but I'm just looking for a convenient way to stage a newly created file in parts. Thanks!

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

    Flask vs JavaScript Backend

    Posted: 06 Jan 2021 12:24 AM PST

    I wanted to know which is better for backend web development Flask framework in Python or JavaScript. Should I use Flask and import my HTML and CSS with render_template or should I just use JavaScript with something like Next.js?

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

    How many programming languages/frameworks is it possible to know at one time?

    Posted: 06 Jan 2021 12:15 AM PST

    When I see job offers for software developers/web developers they usually require being good at more than one programming language, or couple programming language with some frameworks. Is this normal to know more than one at a time? What is the secret to know more than one language. I don't know really what frameworks are as I am just starting out but is that same as having to learn another programming language?

    Thanks in advance :)

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

    Could someone explain the algorithm for Leetcode problem: Container with most water?

    Posted: 06 Jan 2021 12:14 AM PST

    The problem is given an array of heights, find the max area possible. The algorithm involves two pointers starting from the beginning and end. The pointer with the shorter height traverses by one until the two pointers meet. Why does this algorithm guarantee that you will come across the max area at least once?

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

    How to get into coding and computer science?

    Posted: 05 Jan 2021 06:15 PM PST

    Hi. I am starting grade 11 and wanted to get into tech/science related career and began trying to learn C++.

    What can anyone recommend for a beginner project for C++? What should I focus on learning, and how can I stay consistent at it?

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

    Help required for aligning the items in center and help in displaying items in the mobile phone.

    Posted: 06 Jan 2021 12:11 AM PST

    [HTML and CSS] Hello. This is my first post here. I am fairly acquainted with HTML and CSS but I require help in aligning the items in the center.

    In this page, The box containing the lists and all are shifted to one side of the screen and I'm unable to set it PERFECTLY in the center. Also, when I open the HTML page from the mobile, the page looks real crappy and unaligned. I want it to look as Three Columns and Two Rows in the mobile. The hosted version of the same code and HTML is uploaded in HERE.

    Please someone help me.

    JSFiddle link: https://jsfiddle.net/Xampicus/u85jqewf/

    HTML Code:

    <html> <head> <title> Exynos </title> </head> <body> <link rel="stylesheet" style="text/css" href="style.css"/> <h4>Time Table</h4> <div class="container"> <ul class="time"> <li><a class="head">&#8704;</a></li> <li class="highlight">09:30-10:20</li> <li>10:30-11:20</li> <li>11:30-12:20</li> <li>13:10-14:00</li> <li>14:10-15:00</li> <li>15:10-16:00</li> </ul> <ul class="cyan"> <li> <a class="head">Monday</a> </li> <li class="highlight"> <a href="">BEE Lab</a> </li> <li class="highlight"> <a>|</a> </li> <li> <a href="">SDP - I</a> </li> <li> <a href="">Computer - I</a> </li> <li> <a href="">Physics</a> </li> <li> <a href="">Sports</a> </li> </ul> <ul class="red"> <li> <a class="head">Tuesday</a> </li> <li> <a href="">Eng. - I</a> </li> <li class="highlight"> <a href="">Computer Lab</a> </li> <li class="highlight"> <a>|</a> </li> <li> <a href="">ESP - I</a> </li> <li> <a href="">BEE</a> </li> <li> <a href="">Maths - I</a> </li> </ul> <ul class="green"> <li> <a class="head">Wednesday</a> </li> <li> <a href="">Physics</a> </li> <li> <a href="">Maths - I</a> </li> <li> <a href="">Entre. - I</a> </li> <li> <a href="">Eng. - I</a> </li> <li class="highlight"> <a href="">Eng. - I Lab</a> </li> <li class="highlight"> <a>|</a> </li> </ul> <ul class="blue"> <li> <a class="head">Thursday</a> </li> <li> <a href="">BEE</a> </li> <li class="highlight"> <a href="">Workshop - I</a> </li> <li class="highlight"> <a>|</a> </li> <li> <a href="">Physics</a> </li> <li> <a href="">Maths - I</a> </li> <li> <a href="">SDP - I</a> </li> </ul> <ul class="yellow"> <li> <a class="head">Friday</a> </li> <li class="highlight"> <a href="">Physics Lab</a> </li> <li class="highlight"> <a>|</a> </li> <li> <a href="">ESP - I</a> </li> <li> <a href="">Physics</a> </li> <li> <a href="">Maths - I</a> </li> <li> <a href="">Entre. - I</a> </li> </ul> </div> </body> 

    CSS code:

    @font-face { font-family: 'Iosevka'; src: url('Iosevka.ttf'); } body { position: relative; align-items: center; font-family: Iosevka; background-color: #0F0F12; color: #FFFFFF; } h4 { margin-top: 45px; font-size: 40px; text-align: center; } .container { display: inline-flex; justify-content: space-between; align-items: center; text-align: center; margin-top: -5px; width: 85%; background-color: #232328; margin: 0; padding: 0; } ul { display: inline-block; justify-content: center; align-items: center; text-align: center; font-size: 20px; list-style-type: none; min-width: 100px; margin: 10; padding: 0; } li { min-width: 100px; padding-top: 20px; padding-left: 10px; padding-right: 10px; padding-bottom: 20px; font-size: 34px; } ul li a { transition: color 0.4s ease; } a { color: white; text-decoration: none; } .highlight { background-color: #505050; } .head { font-weight: bold; color: #858585; } .time { color: #858585; } ul.green li a:hover { color: #4FAE0F; transition: color 0.5s ease; } ul.blue li a:hover { color: #0972D6; transition: color 0.5s ease; } ul.red li a:hover { color: #ed3434; transition: color 0.5s ease; } ul.yellow li a:hover { color: #edd934; transition: color 0.5s ease; } ul.cyan li a:hover { color: #00E6FF; transition: color 0.5s ease; } 
    submitted by /u/BeakBryno7
    [link] [comments]

    I've been a developer for over 20 years, mostly at the same company, I feel like I need to revisit my skillset to become employable again. Please look at my post and let me know what I should focus on.

    Posted: 05 Jan 2021 08:43 AM PST

    I'm mostly self taught, started with VB4. Got into web development with [classic] ASP (VBScript), then vb.net/asp.net (webforms mostly).

    I've pretty much worked at the same company, on the same handful of projects (Upgrading, adding features, evolving over time) for the past 20 years. I have worked on some projects outside of work, here and there, and those have all been vb/asp.net. I can read pretty much any language and I feel my "programing theory" is pretty top notch, I just think I could improve on my tools & techniques quite a bit.

    So, when I hear things like git, unit testing, "frameworks" (like angular, I am well versed in vanilla JavaScript & jquery though), and probably some other things that I can't remember right now... I feel like I'm falling WAY behind...

    My thought is that I need to "start over" with C# in my free time, or even migrate projects when/where I can.

    My question is that I really don't know where to start, what should I make priority, etc...

    (I'm well versed in MS SQL so I don't doubt my skills there (not saying there isn't things I don't need to learn, one should always be learning)).

    Thanks in advance for taking the time to read and advise!

    Oh, and if this would be better suited in a different sub, like ITCareerQuestions, please let me know.

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

    Windows to Linux

    Posted: 05 Jan 2021 08:16 PM PST

    Is possible change windows to linux and do the reverse operation?

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

    A teenager willing to learn.

    Posted: 05 Jan 2021 03:14 PM PST

    I have a few questions, but let me introduce me first, I am a teenager who is interested in programming after getting in touch via exploring the inspect option in google and wanting more. I've started on the basics of python and c++, I would love some advice on what is the best language to learn and I can do something with on my age (13-16 years) and the grade of difficulty of it. I am to no surprise interested in hacking but also how to write scripts. I am known with how operating systems work outside of the code. Thanks in advance!

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

    C++ Primer or Programming: Principles and Practice Using C++ for a beginner?

    Posted: 05 Jan 2021 08:12 PM PST

    I am looking to get into learning C++ and OOP. I have basic experience with python and understand some basic stuff like variables, data types, conditionals, and functions. I mainly picked up python for fun so I am assuming that I probably have a lot of misunderstandings on my knowledge in these subjects and would like to review them as I am learning C++.

    I am looking to learn C++ as the program I will be entering will be using that and I would like to get a headstart. I used the stack overflow guide C++ book guide and I found 2 interesting books that were listed for beginners: C++ Primer and Programming: Principles and Practice Using C++. Based on my previous experience, what book would be recommended for me to start learning C++? In what scenarios would one book be more appropriate than the other?

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

    Best resources for Data Structures and Algorithms?

    Posted: 05 Jan 2021 07:39 PM PST

    I want to start studying for coding interviews. Any recommendations/guidance would be greatly appreciated.

    Thank you!

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

    [Java] What exactly is stringBuilder and why use it instead of a traditional String?

    Posted: 05 Jan 2021 11:15 PM PST

    Going through firecode.io and saw this solution (to replace spaces with a certain string)

    public static String replace(String a, String b) { String ans = ""; for (char c: a.toCharArray() ){ if (c == ' '){ ans += b; } else { ans += c; } } return ans; } 

    A user commented and said:

    Use StringBuilder instead - it's more efficient! String does not allow appending. Each method you invoke on a String creates a new object and returns it. This is because String is immutable - it cannot change its internal state. On the other hand StringBuilder is mutable. When you call append(..) it alters the internal char array, rather than creating a new string object.

    I'm curious about this and wanted to ask (I'm new to Java):

    • If a traditional 'String' is immutable, why am I able to use it in a "+=" operation to append a char at the end?

    • So when you use the "+=" operation, the computer instantiates a brand new String object each and every time you do it? So effectively I'm creating/destroying multiple String objects over and over again with every "+="?

    • Coming from C++, I see a lot of the "+=" operation when working with strings. Is it the same situation in C++ as it is expressed here in Java?

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

    No comments:

    Post a Comment