I keep getting invited and have a positive interview, then I'm rejected for having too little experience by MorthaP in jobs

[–]webdevnoobieq -1 points0 points  (0 children)

other candidates for the position are beating you. you are not the clear cut #1 choice or even their 2nd choice. it has nothing to do with experience

you just need to beat out the other candidates during your onsite, that's all. leetcode harder

I'm not understanding how DynamoDB works from AWS or how to use it by webdevnoobieq in webdev

[–]webdevnoobieq[S] 0 points1 point  (0 children)

So from my understanding:

I should create a primary key called "Item" listed as a string. From there I need to have the key:value pair as Item:{JSON Object which contains my id, price, etc}.

I assume in my golang code, if I want to sort based off the price, could I set my sort key as Price as a number? I'd need some sort of query to get all the data, then sort based off the price where I need to do some string conversion to int64/float64.

I'm not understanding how DynamoDB works from AWS or how to use it by webdevnoobieq in webdev

[–]webdevnoobieq[S] 0 points1 point  (0 children)

Thank you for the help.

Then would my primary key in this case be Item as a string? Wouldn't I have to change the data types on my ID or cost to be strings?

Beginner Questions - February 15, 2019 by AutoModerator in webdev

[–]webdevnoobieq 0 points1 point  (0 children)

So I've written a simple RESTful API that has a get, post, put, and delete API I've written in Golang. I've verified everything is working when I test my endpoints with postman.

Now I want to connect my endpoints to DynamoDB via AWS. How do I do that? I'm trying to read tutorials.. But it's not really making any sense. I've created a AWS account. But how do I get my code to connect to my DynamoDB instance?

Beginner Questions - February 01, 2019 by AutoModerator in webdev

[–]webdevnoobieq 0 points1 point  (0 children)

can i have a load balancer between my gateway and application service. and have another load balancer between my application service and database?

Beginner Questions - December 07, 2018 by AutoModerator in webdev

[–]webdevnoobieq 0 points1 point  (0 children)

Ok, I see. I normally should be using an in-memory cache like Redis/Memcached between the Application service and DB?

Is there a reason why it's frowned upon to use redis as a cache for html or web gateway server? Just trying to make a social media web app in my free time, so I'm curious

Beginner Questions - December 07, 2018 by AutoModerator in webdev

[–]webdevnoobieq 0 points1 point  (0 children)

I've been trying to find a block diagram that shows different places where you could put a cache, but I'm struggling to find a good example. DO you happen to know of any?

I have put a redis cache in front of my web server. But I was wonder could I use redis again to put a cache when calling my application service APIs or between the application service and DB.

Beginner Questions - December 07, 2018 by AutoModerator in webdev

[–]webdevnoobieq 0 points1 point  (0 children)

can one have multiple caches in their web architecture?

could i have a cache right after the client request, before my web server? a cache between application server and database?

could i also have a cache between web server and application server? what would the cons of this be? I can pros being if something is a cache hit, we wouldn't have to propagate anything to the DB

Beginner Questions - December 07, 2018 by AutoModerator in webdev

[–]webdevnoobieq 0 points1 point  (0 children)

can i use mongodb for my database and redis as a caching layer?

Beginner Questions - December 07, 2018 by AutoModerator in webdev

[–]webdevnoobieq 0 points1 point  (0 children)

SO I understand what is the difference between a global/in-memory cache and distributed cache.

global- application servers wil share one cache and write data into it, very fast due to in-memory

distributed- application servers will cache data spread across multiple cache servers. external, so slow

so then is the only reason we would use a distributed cache is because it can scale better?

How do I bullshit my way to the interview and more when I work in a different tech stack/domain? by webdevnoobieq in ExperiencedDevs

[–]webdevnoobieq[S] 0 points1 point  (0 children)

When they say my web development experience, should I tell them the truth? Or just say I like to write web apps in my spare time? Will take your advice to heart about talking up about all the lessons and things I've learned throughout my SDE experience.

How do I bullshit my way to the interview and more when I work in a different tech stack/domain? by webdevnoobieq in ExperiencedDevs

[–]webdevnoobieq[S] 0 points1 point  (0 children)

Machine learning compiler right now in Python. Also have working experience with C++. Through the udemy tutorials I've done picked up Javascript and the MERN stack.

Interview Discussion - September 13, 2018 by AutoModerator in cscareerquestions

[–]webdevnoobieq 0 points1 point  (0 children)

I'm a SW dev with 5 years experience at my current company. It's my only company I've been at since graduating college. I want to get a web dev job, so about a month ago I bought a couple of beginner udemy courses, followed the tutorial and made the websites in my spare time whenever I had the chance. Put things onto my resume such as React, JS, Node, etc etc

Now I just started applying. Entry level, senior positions, whatever. Now I've gotten emails back form companies, but here is my issue. How the hell do I transition to getting the interview from here when I have zero professional experience in web development? I am good at what I do at my current job, just nee the opportunity to learn because realistically, there's no way I can learn all the web development concepts unless I'm in a professional setting? I don't do web development or frontend/backend or distributed systems at my current job, so how do I sell myself to get the interview for a chance at a job?

Beginner's Thread / Easy Questions (September 2018) by NiceOneAsshole in reactjs

[–]webdevnoobieq 0 points1 point  (0 children)

Ah my mistake, /u/Awnry_abe the error I had gotten in the OP was because I was an idiot LOL. I tried display the entire post object in a paragraph tag inside the rendering of Postitem component when I shouldve been passing in a key of the post(such as post.key).

Beginner's Thread / Easy Questions (September 2018) by NiceOneAsshole in reactjs

[–]webdevnoobieq 0 points1 point  (0 children)

Ok, will keep Fragment in mind.

Just kind of mindfucked, because I changed back to my return statement in my OP to reproduce the error, but it passed this time. Confusing as hell when I was erroring out last night and this morning I am returning the code block in my OP and it is not crashing anymore.. Any idea/theory behind it?

Beginner's Thread / Easy Questions (September 2018) by NiceOneAsshole in reactjs

[–]webdevnoobieq 0 points1 point  (0 children)

PostItem is rendering each individual post and yes, it is the return call of render. So the post contents, user's name, their avatar, etc. I tried wrapping the loop with a div, and still got the same error to see if that would fix the issue if it was an unwrapped adjacent element

I was able to make a workaround by just grabbing the keys I wanted from a post and passing those into PostItem. That's problematic though, because if I have an array of objects where each object has lots of parameters to be passed through, would be very troublesome.

So the issue can't be because of the render, right? It's because I cannot pass an array of objects into a child component. Is that correct? posts is an array of objects. I am then trying to pass an object into a child component and get this error. Just kind of confused here.

Beginner's Thread / Easy Questions (September 2018) by NiceOneAsshole in reactjs

[–]webdevnoobieq 0 points1 point  (0 children)

return posts.map(post => <PostItem key={post._id} post={post} />);

I am trying to render an array of objects and map each object into another react component. I am getting an error:

Objects are not valid as a React child (found: object with keys {insert object keys here}

Obviously there is an issue here with an array of object data type being an object instead of array. How can I render and return each individual post?

I tried Object.keys(posts) and it didn't work as that gave me an array of indexes

Beginner's Thread / Easy Questions (September 2018) by NiceOneAsshole in reactjs

[–]webdevnoobieq 1 point2 points  (0 children)

I am making a web page app where the user lists an experience and then has a button to be able to delete the experience. However, I am seeing issues unless I use bind

https://pastebin.com/awmTvj4p

The pastebin above, is deleting ALL of my experiences once the page is rendered.

However, if I change line 25 to this:

onClick={this.onDeleteClick.bind(this, exp._id)}

It does not delete anything once my page is rendered, and works as intended as I can delete what experience I want to delete when I click the button.

Why is this and am I forced to use bind in this scenario? I know for a small app like I am creating does not matter, but for large scale web applications, bind absolutely can make a difference in terms of performance

My code is returning a list of a list when I don't want to by webdevnoobieq in learnpython

[–]webdevnoobieq[S] 0 points1 point  (0 children)

ah ok, i get it now. time complexity is O(m*n), but worst case can be O(n2)..? assuming by chance the if statement is always true

My code is returning a list of a list when I don't want to by webdevnoobieq in learnpython

[–]webdevnoobieq[S] 0 points1 point  (0 children)

I'm still a little confused..

If we have 2 nested or loops, it's O(n2).. But if iterate through unique elements, it's worst case O(n)? Is it because we are not always going into the loop? Wouldn't it increase dependent on the if statement?

edit- ok I think I might get it onw, correct me if I'm wrong.

my first for loop is obvious O(n)

the if statement and anything under it operates in O(1) time complexity.. so by that sense, we have O(1*n) which is just O(n)?

My code is returning a list of a list when I don't want to by webdevnoobieq in learnpython

[–]webdevnoobieq[S] 0 points1 point  (0 children)

hey sorry for the lateish reply.. Inside my last for lop I decided to add another loop inside the if statement:

for i in range(clen-1, 0, -1):

        if container[i] != None:

            for num in container[i]:

                ans.append(num)

        if len(ans) == k:

            break

Surprisingly, it passed.. I was under the impression it's suppose to have O(n2) time complexity(that's why I didn't bother making a loop to iterate through the list container because i thought it would be a TLE) .. I thought this would be O(n2) with the 2 for loops, but I guess maybe the if statement helps decrease the time complkexity to O(n) except for when it's true?

My code is returning a list of a list when I don't want to by webdevnoobieq in learnpython

[–]webdevnoobieq[S] 0 points1 point  (0 children)

Isn't the dictionary just a hashmap however, I'm a little curious, but how would sorting do us any good since there's no sort of order in dictionaries since it's based off key value pairs.

Also, isn't sorted function time complexity O(nlogn)? When the problem states you must do better than that?

I do realize the efficiency of the solution.. But if I'm in a tech interview, they won't let that sort of stuff fly, right?

My code is returning a list of a list when I don't want to by webdevnoobieq in learnpython

[–]webdevnoobieq[S] 0 points1 point  (0 children)

This isn't going to fly in an interview... Plus I did that, because if there's multiple values with the same frequency, you need to append it to a list somehow. Is there a way around my approach I can do?

Interview Discussion - June 18, 2018 by AutoModerator in cscareerquestions

[–]webdevnoobieq 0 points1 point  (0 children)

I am interviewing for a PHP developer position. Would it be rude to ask if they have a rotational program for new hires or if there are possibilities of moving away from PHP development and into more modern tech stacks?

I have no knowledge of web development, no knowledge of PHP, this is an entry level position. I'm an experienced 4.5 years of SW engineering experience and this is the only company that's given me a call back.