Full Stack Engineer (Node.js and React)
Full-stackPosted 3 days agovia Himalayas, a remote job board
- Work type
- RemoteIn India, the US and Germany
- Experience
- 4+ years
- Pay
- Not listedUsually ₹6.0 LPAFull-stack, median at 1–4 years, in India (Payscale)
- Posted
- 3 days ago
From the ad
Degree or equivalent experience
Requirements:Bachelor’s degree or higher in Computer Science, Software Engineering, or a closely related technical field (or equivalent practical experience)
Skills it mentions
Add your skills to see which ones you have.
About the job
Originally posted on Himalayas
Interested?Full Stack Engineer (Node.js and React) at SME Careers
Apply on Himalayas (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on React, Node.js, System design and 8 more
Interview questions for this job
For the skills the ad mentions: React, Node.js, System design, TypeScript, PostgreSQL, MySQL, MongoDB, Cypress, CI/CD, NestJS and Next.js.
What are synthetic events in React?React
SyntheticEventis a cross-browser wrapper around the browser's native event. Its API is same as the browser's native event, includingstopPropagation()andpreventDefault(), except the events work identically across all browsers. The native events can be accessed directly from synthetic events usingnativeEventattribute.Let's take an example of
BookStoretitle search component with the ability to get all native event propertiesfunction BookStore() { function handleTitleChange(e) { console.log("The new title is:", e.target.value); console.log('Synthetic event:', e); // React SyntheticEvent console.log('Native event:', e.nativeEvent); // Browser native event e.stopPropagation(); e.preventDefault(); } return <input name="title" onChange={handleTitleChange} />; }List of common synthetic events are:
onClickonChangeonSubmitonKeyDown,onKeyUponFocus,onBluronMouseEnter,onMouseLeaveonTouchStart,onTouchEnd
From ReactJS Interview Questions & Answers (MIT)
Using async/await with a forEach loopNode.js
Sure the code does work, but I'm pretty sure it doesn't do what you expect it to do. It just fires off multiple asynchronous calls, but the
printFilesfunction does immediately return after that.Reading in sequence
If you want to read the files in sequence, you cannot use
forEachindeed. Just use a modernfor … ofloop instead, in whichawaitwill work as expected:async function printFiles () { const files = await getFilePaths(); for (const file of files) { const contents = await fs.readFile(file, 'utf8'); console.log(contents); } }Reading in parallel
If you want to read the files in parallel, you cannot use
forEachindeed. Each of theasynccallback function calls does return a promise, but you're throwing them away instead of awaiting them. Just usemapinstead, and you can await the array of promises that you'll get withPromise.all:async function printFiles () { const files = await getFilePaths(); await Promise.all(files.map(async (file) => { const contents = await fs.readFile(file, 'utf8') console.log(contents) })); }From Stack Overflow: asked by Saad, answered by Bergi (CC BY-SA 4.0)
Name the common cache eviction policies.System design
Least recently used, least frequently used, first in first out, and plain time-to-live expiry. Least recently used is the usual default, because recent access predicts near-future access well.
From Grokking System Design (open companion) (CC BY 4.0)
What is the Record type?TypeScript
- Can someone give a simple definition of what
Recordis?
A
Record<K, T>is an object type whose property keys areKand whose property values areT. That is,keyof Record<K, T>is equivalent toK, andRecord<K, T>[K]is (basically) equivalent toT.- Is
Record<K,T>merely a way of saying "all properties on this object will have typeT"? Probably not all objects, sinceKhas some purpose...
As you note,
Khas a purpose... to limit the property keys to particular values. If you want to accept all possible string-valued keys, you could do something likeRecord<string, T>, but the idiomatic way of doing that is to use an index signature like{ [k: string]: T }.- Does the
Kgeneric forbid additional keys on the object that are notK, or does it allow them and just indicate that their properties are not transformed toT?
It doesn't exactly "forbid" additional keys: after all, a value is generally allowed to have properties not explicitly mentioned in its type... but it wouldn't recognize that such properties exist:
declare const x: Record<"a", string>; x.b; // error, Property 'b' does not exist on type 'Record<"a", string>'and it would treat them as excess properties which are sometimes rejected:
declare function acceptR(x: Record<"a", string>): void; acceptR({a: "hey", b: "you"}); // error, Object literal may only specify known propertiesand sometimes accepted:
const y = {a: "hey", b: "you"}; acceptR(y); // okayWith the given example:
type ThreeStringProps = Record<'prop1' | 'prop2' | 'prop3', string>Is it exactly the same as this?:
type ThreeStringProps = {prop1: string, prop2: string, prop3: string}
Yes!
From Stack Overflow: asked by Matthias, answered by jcalz (CC BY-SA 4.0)
- Can someone give a simple definition of what
Should I add an arbitrary length limit to VARCHAR columns?PostgreSQL
The answer is no.
Related advice in the Postgres Wiki.
Don't add a length modifier to
varcharif you don't need it. (Most of the time, you don't.) Just usetextfor all character data. Make thatvarchar(standard SQL type) without length modifier if you need to stay compatible with RDBMS which don't havetextas generic character string type.Performance is almost the same,
textis a bit faster in rare situations, and you save the cycles for the check on the length.A particularly common misconception is
varchar(255), which hardly ever makes sense in Postgres. Often carried over from other (outdated) RDBMS, where the particular limit has performance benefits. That's not true for Postgres. See:If you actually need to enforce a maximum length,
varchar(n)is a valid choice. But I would still considertextwith aCHECKconstraint like:ALTER TABLE tbl ADD CONSTRAINT tbl_col_len CHECK (length(col) < 51);You can modify or drop such a constraint at any time without having to mess with the table definition and depending objects (views, functions, foreign keys, ...). And you can enforce other requirements in the (same) constraint.
Length modifiers used to cause problems like this or this or this ...
PostgreSQL 9.1 introduced a new feature to alleviate the pain somewhat. The release notes:
Allow
ALTER TABLE ... SET DATA TYPEto avoid table rewrites in appropriate cases (Noah Misch, Robert Haas)For example, converting a
varcharcolumn to text no longer requires a rewrite of the table. However, increasing the length constraint on avarcharcolumn still requires a table rewrite.More issues with
varchar(n)have been fixed in later releases.From Database Administrators Stack Exchange: asked by Daniel Serodio, answered by Erwin Brandstetter (CC BY-SA 4.0)
When have you faced a challenging situation?Behavioural
Employers usually base questions on jobs you have done in the past. This gives you the chance to talk about your experience. For instance, they might ask:
- when have you faced a challenging situation?
- can you tell us about a personal achievement at work?
- have you ever taken the initiative?
- have you ever failed at a task?
Your answers should reflect the skills the employer wants. Be positive and tailor your examples to the job description.
If you don't have much work history, you can use examples from outside of work. You can also use examples from volunteering experience.
Use the STAR method to help structure your answers.From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- .NET Full Stack DeveloperPlan A Technologies, Remote in IndiaToday
- Specialist , FullStack EngineeringMSD, Hyderabad, on-siteYesterday
- Associate Software EngineerFranklin Templeton, Hyderabad, on-siteYesterday
- Software EngineerVertex Inc., Hyderabad, on-siteYesterday
More like this: Full-stack developer jobs in India (709) and Remote Full-stack developer jobs in India (210)




