• Breaking News

    Monday, June 7, 2021

    I definitely failed a coding interview. learn programming

    I definitely failed a coding interview. learn programming


    I definitely failed a coding interview.

    Posted: 06 Jun 2021 03:43 AM PDT

    After about a year of studying web development through TOP, I've started applying for web dev jobs. I've gotten 3 interviews so far out of the 10 I've sent and I have finished my first interview yesterday.

    I was asked to do a simple real time chat up with 'essential' crud operations with account functionalities like contacts and history iirc. I was given 2-3 hours to finish the app and knew that it had to used web sockets so I panicked because I had no idea how to implement it. I could use firebase but I was explicitly told to use node & socket.io.

    I immediately went to implementing the account functionalities with JWT because I was familiar with it so I could at least show something. Then, when it came to the actual chat functionality it seems like my brain just went off. I defaulted to making a model of a message and just adding it to mongodb which wouldn't make it real time because users would have to refresh the page. Idk I just went on and on and tunneled vision because I just had to show something. The final result was an ugly webpage with signup & login buttons with a chat box and message form. Users can sign up and login and send a message but the box would only update for the user that sent the message, not the other clients.

    I knew right after my submission that I had failed. My body was eating me up because I had been awake for about 22 hours at that point. I was exhausted physically and mentally but I can't sleep because this was one of the companies I' d really like to work in and I have fcked up massively.

    Having rested for a day, I decided to give it a try again. I've looked into the socket.io docs and it's so fcking easy to implement the basic functionality. It didn't even take me 20mins to do it so I'm kinda completely helpless right now. I guess I should've taken more time evaluating what I'd do instead of jumping right into typing. I have another interview tomorrow and I just needed to vent. Thanks for reading my post, kind stranger.

    EDIT: I did not expect this to blow up. Before I slept there were like 3 replies. Thanks for the kind words. I'll try answering the DMs but I'm afraid I can't get through all of them immediately.

    • TOP is TheOdinProject.
    • Yes, I was asked to use Node and Socket + a frontend of my choice.I was allowed to use create-react-app and express-generator.
    • The position was entry level Full Stack Web Developer.
    • I was sleep deprived because the company I was applying to works at night time(in my local timezone) and the assessments took longer than anticipated. Maybe it was just me being slow to answer, I'm not quite sure but I was instructed to take as much time as I needed.

    Yes, I was allowed to Google which is primarily where my frustration comes from. Had I looked more into the socket.io docs and taken my time, then I would've made a lot more functional application that what I had submitted. So even if the company was asking for too much( not for me to say), I still messed up something on my part. I caved in when I was put under pressure.

    I think the fact that I have 3/10 interviews was purely based on luck, I think the percentage would be lower once I start applying more. I really only expected to receive 1 interview because this is how my job board looks like. I base the likely/not likely part on the requirements. If about 75% of the tech that the company uses is something I've used in the past, and the posting doesn't explicitly say that a degree is required, then I'd put it as likely.

    I just highlighted the tech stack that I use in my resume and the projects that I like including my very own portfolio website deployed on a .dev domain which also includes direct links to source code and live demos.

    Thank you everyone for the DMs and the replies. I really appreciate it.

    EDIT 2: I've been replying to comments for about an hour now. I'd check back later in about 10 hours after I've finished my next interview. Thanks everyone for taking your time reading/commenting on my post. The comments and DMs definitely cheered me up!

    EDIT 3: Got stood up on my HR Interview for today make that 2/10 for the interviews.

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

    Getting over a hump of discouragement and the feeling that coding is quick to learn.

    Posted: 06 Jun 2021 09:41 PM PDT

    TLDR: Feeling discouraged because I cannot put my skills to use even though I know I have not done enough projects to be able to.

    I have been studying cs almost daily for a little over a year and I just tried out leetcode.

    I mainly studied Web development and overall topics of js, python. Mainly from Udemy courses

    With no previous algorithm or similar courses I just could not wrap my head around many of the problems. I would always get them 70% done (EASY PROBLEMS) and then not know how to finish.

    I have only worked on the front and full-stack development but nothing in algorithms. The topics slightly overlap and it gives me the feeling that I should know how to do them.

    I have three big issues that bug my mind.

    1. How come I cannot connect the dots when all the pieces are there
    2. Should I look at solutions and learn from them if I cannot do it or should I take my time and draw the problems out
    3. It is very frustrating to see all these tutorials that finish projects in 30 minutes which would take me days to complete. It makes me feel incredibly slow and especially like I am not holding in the information as I should. The phrases "As you know by now", "You should catch that before me", "You know the drill" and stuff like that just makes me feel like I should be on par with these people.

    I would appreciate any words of wisdom for learning and not feeling discouraged by failure.

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

    If you're following a tutorial, try to stay one step ahead

    Posted: 06 Jun 2021 09:39 AM PDT

    I'm just realizing this now, but I feel more engaged with a tutorial if I'm trying to guess what the instructor is going to do next and then doing it while pausing the video. If you're wrong then whatever, if you guess right then great - but even better if you get it correct while doing it differently than the instructor then I think you're really starting to get something.

    Small shift in practice but I think it's a really good beginner tip.

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

    Is the Odin Project Legit?

    Posted: 06 Jun 2021 07:27 PM PDT

    I've seen a lot of amazing reviews about people being able to do The Odin Project and able to land a junior web development job. I was kinda curious onto whether the Odin Project was really a resource that provided enough content for individuals to build a portfolio, obtain a job and be able to keep up with the pace of whatever company they were hired for. It seems almost too amazing that people were able to land jobs within 6 months to 1 year of The Odin Project without prior experience. Otherwise, if it isn't enough, are there other things that anyone could recommend that would help increase the likelihood of being proficient in programming and being able to land a job ?

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

    Some general questions about APIs

    Posted: 06 Jun 2021 05:35 PM PDT

    I'm a junior in college whose programming experience has been mostly related to audio programming, digital signal processing, and run-of-the-mill academic work. In the past few months, I have been getting into web programming. I've been peering into technologies such as Spring MVC, creating APIs and microservices with Spring Boot, and I've been learning React. I've built some elegant, but simple web pages with this stack and my local MySQL server. This week I begin my new internship which will definitely step up my web programming skills. I'm excited as this company heavily emphasizes personal growth; To learn from my mentors and other interns will be a great experience for me.

    Ever since I've learned about these concepts, I've been trying to interpret how websites I use every day utilize APIs. My first general question is about user-submitted content. When we use websites like YouTube, Reddit, Facebook, etc, is all of the dynamically loaded user content grabbed from a specific API/database (Additionally, would a database hold images/videos itself or would the database hold references to the content? Is this where something like a content delivery network would come into play?). When I send this post onto this subreddit, does that really boil down to a post request somewhere in the process? Obviously, there is a lot more going on in the entire cycle, but know that I'm thinking big-picture here.

    Another curiosity I have is about security. How can we ensure that an API is not abused to completely ruin a database? For example, what is the conventional way to ensure that an authorized user can only send a certain type of request within a given time frame? Also, what about APIs that return sensitive data? I've read a little bit of information about tokens and such, but it had a little too much jargon for me to understand.

    I've done my best to research, but some of the articles online are either too technical or too abstracted for me. Discussion is a great way for me to learn new things.

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

    Am I git cloning in the wrong spot?

    Posted: 06 Jun 2021 11:52 PM PDT

    I want to have a neat file directory entitled "Code" for all my projects. I made a new file directory in the Code directory entitled "Business_Card". I then made a new git repository called "Business-Card". I moved into the "Business_Card" directory and initialized git there, and then on the terminal entered the command git clone [url]. But now I have an additional directory in the "Business_Card" directory called "Business-Card" whereas I wanted only one of these directories in the "Code" directory as to be less confusing. Should I have initialized git and cloned the repository in the initial "Code" directory?

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

    I have been programming for about a year now and I cant land an interview. Can I get some feedback?

    Posted: 06 Jun 2021 01:22 PM PDT

    Hi, I have been programming for about a year now and i recently started applying but haven't been lucky enough to land an interview. Can someone give me constructive feedback?

    Portfolio:

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

    Weird question... is there an app for IOS to code basic programs?

    Posted: 06 Jun 2021 11:41 PM PDT

    I'm just wondering if there is something out there yet that is portable. Like a Java or C++ editor and compiler on IOS.

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

    Choosing the proper concentration to become a software dev/engineer

    Posted: 06 Jun 2021 08:04 PM PDT

    I registered for a university a while back and am going in August. Degree program is computer science; I want to be either an application software developer or engineer. I just realized that the concentration I chose (Software Systems) sounds more like software for computer systems than applications. Which creates a problem. Software developers and engineers/ aspiring students, what concentration should I take? The only concentrations are software systems, cybersecurity, and data science.

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

    Why doesn't += work here for my Leetcode Unique Paths solution?

    Posted: 06 Jun 2021 05:15 PM PDT

    class Solution(object): def uniquePaths(self, m, n): dp = [[0]*n]*m for i in range(len(dp)): dp[i][0] = 1 for i in range(len(dp[0])): dp[0][i] = 1 for i in range(1, m): for j in range(1, n): dp[i][j] += dp[i-1][j] dp[i][j] += dp[i][j-1] return dp[m-1][n-1] 

    I know this solution works if I use dp[I][j] = cell left + cell up but I don't get why the above doesn't work. The += yield the same if every I,jth cell is zero. Only the first row and column are set to one and the for loop never touches them.

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

    How to improve myself in concepts that help me solve problems like data structure and algorithms with no CS degree

    Posted: 06 Jun 2021 09:50 AM PDT

    I am self-taught with a degree in mechatronics engineering. I landed a job 4 months ago as a software developer and I've been doing well, but I feel like I really lack in basic concepts specially when I try to do Leetcode and I read things I haven't heard of like "Linked lists, binary trees and hash maps", and I am pretty sure there are way more things that I never heard of too.

    How can I know what things I need to learn and what's the best source to learn these things?

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

    LogMeIn Hamachi. Mesh VPNs. How can it be done?

    Posted: 06 Jun 2021 07:08 PM PDT

    I am pretty okay in C#, I've dabbled in C++, and a few other languages I've touched but don't really know much about. I am looking to make a VPN like LogMeIn Hamachi. I love the way it operates, but I don't want to rely on LogMeIn servers, or the LogMeIn database. I am trying to create a VPN that essentially has the same priciples as Hamachi, create a network with a name and password, and on a other machine, be able to simulate a network card with a unique IP address to be able to connect to these networks. VPN science is very new to me, and I am unsure how to go about doing this, but simply, I want to make 1 application that can be used as both client and server side that allows for P2P connectivity, and if possible, make it meshable, but that is not necessary. Where do I start, and where should I look for support/to learn?

    Edit: pretty much make a virtual lan that can be accessed over wan

    submitted by /u/7ekhedOfficial
    [link] [comments]

    Learning data structures and algorithms

    Posted: 06 Jun 2021 06:34 PM PDT

    Hi, I'm currently trying to learn some data structures and algorithms and trying to find a good book. Would algorithms in C by Sedgwick be a good start or would you recommend something else? I can program in C and python and learning C++ now. Any help would be appreciated.

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

    Why don't schools teach the modern c++?

    Posted: 07 Jun 2021 12:09 AM PDT

    Hey I am from India and here in highschools they teach us the old C++ with turbo c++ text editor, I am still new to programming but i have noticed that there is a significant change in the new C++ that is being taught on onlline courses, I wanted to ask is there any kind of benefits in learning this old way, and if there are disadvantages please mention.

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

    Maxima program coding help needed

    Posted: 07 Jun 2021 12:05 AM PDT

    Hey there!

    I am new here and I just joined, because I need help with the following:

    I neeed to program a function in Maxima to fulfill the following requirements:

    "The frequence of a harmonic oscillator with constant K and mass m is given by the square root of K/m. Program a function in Maxima using block that calculates this frequency depending on the mass m, with the following INPUT/OUTPUT arrangement:

    INPUT:

    ---m

    OUTPUT:

    ---frequency

    NOTE: Define the constant k as a block local variable, giving an arbitrary value to it, i.e.: 1"

    Could anyone help me coding this and explaining? Thanks!

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

    Help for C++ Structure assignment

    Posted: 07 Jun 2021 12:04 AM PDT

    #include <iostream> using namespace std; struct myName { char name [50]; int age; char gender [50]; char address [50]; long long int number; }; int main() { myName basic; cout << "Enter your full name: "; cin.get(basic.name, 50); cout << "Enter your age (numbers only): "; cin >> basic.age; cout << "Enter your gender(Male or Female): "; cin.get(basic.gender, 50); cout << "Enter your home address (Town and City): "; cin.get(basic.address, 50); cout << "Enter your mobile number: "; cin >> basic.number; cout << "/nDisplaying basic info about Marc Jay Obillo"<<endl; cout << "Full Name: " << basic.name << endl; cout << "Age: " << basic.age << endl; cout << "Gender: " << basic.gender << endl; cout << "Home address: " << basic.address << endl; cout << "Mobile Number: " << basic.number << endl; } 

    Our assignment is to create a structure with 5 members and output it. The teacher said that it has to be basic information about yourself. But I am having trouble in gender and home address. Once I enter my age in the console, it skips everything to the end. I don't know what to do because the name member seems fine but the gender and home address is skipped. Please help!

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

    Best way to learn python?

    Posted: 06 Jun 2021 02:02 PM PDT

    i've tried some apps but i wanna know if there's a better way

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

    How to improve shortening lines?

    Posted: 06 Jun 2021 11:29 PM PDT

    Hi everyone! So I'm starting to learn Python with the use of a Udemy course. I'm enjoying it, I'm having lots of fun and I'm learning. However, I have an issue. The tutor asks us to write a program, describes what the program should have and she tells us to go ahead and do it. So I go ahead, plan how I'll do the program and start programming. When I'm done, I get excited because I made the program do, what it's supposed to do! Then I go over the tutor's solution... And what I did in 10 lines she did it in 5 or less.. how can I get better at visualising and reduce the number of lines written? Do I get better with practice? Or are there any tips you could share to me? Thanks in advance!

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

    Confusion between c and python

    Posted: 06 Jun 2021 11:17 PM PDT

    Hello .....after a month my online lecs are going to start and yesterday I got to know that I am having data structures in c...but from two months I am learning python and I don't know anything about c...so I am confused should I stop learning python now and start c...or should I learn both side by side(it would be difficult bcoz c is hard to learn I guess)...and python is my 1st language...any suggestions.. Thanks in advance

    submitted by /u/Impressive-Warthog66
    [link] [comments]

    Does online class worth it

    Posted: 06 Jun 2021 11:04 PM PDT

    Due to pandemic this set up is introduce. I'm just having a doubt if I should enroll or just wait for the normal class to start again. Can you share your thoughts about this online class? Would it be a waste of money?

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

    Is OOP still worth learning in 2021?

    Posted: 06 Jun 2021 10:45 AM PDT

    As a Front-end/React developer, I rarely using OOP in my work or project, even some of my back-end code not are not using OOP at all. After reading this article about the death of OOP, I don't know if it's worth to learn more about OOP or just knowing the basic concept.

    submitted by /u/Developer-Bear
    [link] [comments]

    How do I pass data from html to my python script?

    Posted: 06 Jun 2021 10:35 PM PDT

    Hey guys. I'm working on a project for my college. I'm using django as the framework. I want to get an input data from html form and pass it to my python script and use it there as a variable. I am not able to find beginner friendly solutions online. Any help would be appreciated!!

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

    I am hopelessly lost with the concept of backend servers and could really use some clarifying

    Posted: 06 Jun 2021 09:58 PM PDT

    Hey guys, my main language is Java, but I've experimented with web dev on the side.

    When I learned web development, I used php and sql for my backend.

    Today I took a look at nodejs, and some other guides that explained that even Java can be used to handle real-time chat, data storage, etc.

    I did quite a bit of googling and I just can't wrap my brain around how to implement this. I'm just so confused.

    My questions:

    1. So I own a domain from dreamhost. How do I even go about implementing node or Java to work with my SQL database? Like how does that work in conjunction with the html and css files uploaded?

    2. I see you can create a web server with nodejs. What does this even mean? I thought that the hosting platform I used was a web server. So can I just create one on node and use that instead? Can people connect remotely to view my HTML pages?

    Thank you for your time

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

    Can the same program in two languages produce different outputs?

    Posted: 06 Jun 2021 09:33 PM PDT

    So, i tried to write a program form Improved Euler Method in java and R. But they gave slightly different outputs. Is this something possible or am i messing something up?

    .9121297(Java) / 0.914455681140478(R)

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

    No comments:

    Post a Comment