Sr. Software Engineer - Full Stack
Full-stackPosted over 2 months agofrom Pinterest's own hiring page
- Work type
- On-siteToronto
- Experience
- 4+ years
- Pay
- Not listedUsually C$74k a yearFull-stack, median at 1–4 years, in Canada (Payscale)
- Posted
- Over 2 months agoOpen over a year
From the ad
Degree or equivalent experience
Bachelor’s or Master’s degree in a relevant field such as Computer Science, or equivalent experience
Skills it mentions
Add your skills to see which ones you have.
About the job
About Pinterest:
Millions of people around the world come to our platform to find creative ideas, dream about new possibilities and plan for memories that will last a lifetime. At Pinterest, we’re on a mission to bring everyone the inspiration to create a life they love, and that starts with the people behind the product.
Discover a career where you ignite innovation for millions, transform passion into growth opportunities, celebrate each other’s unique experiences and embrace the flexibility to do your best work. Creating a career you love? It’s Possible.
At Pinterest, AI isn't just a feature, it's a powerful partner that augments our creativity and amplifies our impact, and we’re looking for candidates who are excited to be a part of that. To get a complete picture of your experience and abilities, we’ll explore your foundational skills and how you collaborate with AI.
Through our interview process, what matters most is that you can always explain your approach, showing us not just what you know, but how you think. You can read more about our AI interview philosophy and how we use AI in our recruiting process here.
Our new progressive work model is called PinFlex, a term that’s uniquely Pinterest to describe our flexible approach to living and working. Visit our PinFlex landing page to learn more.
We are looking for inquisitive, well-rounded Full-stack engineers to join our Monetization engineering teams. Working closely with product managers, designers, and backend engineers, you’ll play an important role in enabling the newest technologies and experiences. You will build robust frameworks & features. You will empower both developers and Pinners alike. You’ll have the opportunity to find creative solutions to thought-provoking problems. Even better, because we covet the kind of courageous thinking that’s required in order for big bets and smart risks to pay off, you’ll be invited to create and drive new initiatives, seeing them from inception through to technical design, implementation, and release.
What you’ll do:
- Own UI development lifecycle for our monetization products: designing, architecting, and shipping ad-creation flows that power new AI-powered ad formats
- Build out full-stack Pinner-facing features to power the future of inspiration on Pinterest
- Contribute to and lead each step of the product development process, from ideation to implementation to release; from rapidly prototyping, running A/B tests, to architecting and building solutions that can scale to support millions of users
- Partner with design, product, and backend teams to build end-to-end functionality
- Put on your Pinner hat to suggest new product ideas and features
- Employ automated testing to build features with a high degree of technical quality, taking responsibility for the components and features you develop
- Grow as an engineer by working with world-class peers on varied and high impact projects
What we’re looking for:
- 4+ years of industry full-stack development experience, building consumer or business facing products
- Proven ability to build scalable web UIs using React, Typescript, Redux, GraphQL, and REST APIs
- Comfortable architecting and building scalable web UIs with React, Typescript, Redux, GraphQL and REST APIs
- Proficiency in one or more common frontend and fullstack tech stacks: e.g. Javascript, React, API, storage, caching and data processing.
- Experience in following best practices in writing reliable and maintainable code that may be used by many other engineers
- Ability to keep up-to-date with new technologies to understand what should be incorporated
- Strong collaboration and communication skills
- Bachelor’s or Master’s degree in a relevant field such as Computer Science, or equivalent experience
Relocation Statement:
- This position is not eligible for relocation assistance. Visit our PinFlex page to learn more about our working model.
In-Office Requirement Statement:
- We let the type of work you do guide the collaboration style. That means we're not always working in an office, but we continue to gather for key moments of collaboration and connection.
- This role will need to be in the office for in-person collaboration 1-2 times per half and therefore can be situated anywhere in Ontario.
#LI-HYBRID
#LI-CH1
Our Commitment to Inclusion:
Pinterest is an equal opportunity employer and makes employment decisions on the basis of merit. We want to have the best qualified people in every job. All qualified applicants will receive consideration for employment without regard to race, color, ancestry, national origin, religion or religious creed, sex (including pregnancy, childbirth, or related medical conditions), sexual orientation, gender, gender identity, gender expression, age, marital status, status as a protected veteran, physical or mental disability, medical condition, genetic information or characteristics (or those of a family member) or any other consideration made unlawful by applicable federal, state or local laws. We also consider qualified applicants regardless of criminal histories, consistent with legal requirements. If you require a medical or religious accommodation during the job application process, please complete this form for support. By submitting this application, I certify that all information submitted in my application and throughout the hiring process is true, accurate, and complete to the best of my knowledge. I understand that any false statement, omission, or misrepresentation may disqualify me from employment consideration or result in termination if discovered after hire.Interested?Sr. Software Engineer - Full Stack at Pinterest
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on React, TypeScript, Redux and 5 more
Interview questions for this job
For the skills the ad mentions: React, TypeScript, Redux, GraphQL, REST APIs, Statistics, Test automation and JavaScript.
What is React proptype array with shape?React
If you want to pass an array of objects to a component with a particular shape then use
React.PropTypes.shape()as an argument toReact.PropTypes.arrayOf().ReactComponent.propTypes = { arrayWithShape: React.PropTypes.arrayOf( React.PropTypes.shape({ color: React.PropTypes.string.isRequired, fontSize: React.PropTypes.number.isRequired, }) ).isRequired, };From ReactJS Interview Questions & Answers (MIT)
What is the syntax for Typescript arrow functions with generics?TypeScript
Edit
Per @Thomas comment, in newer TS compilers, we can simply do:
const foo = <T,>(x: T) => x;Original Answer
The full example explaining the syntax referenced by Robin... brought it home for me:
Generic functions
Something like the following works fine:
function foo<T>(x: T): T { return x; }However using an arrow generic function will not:
const foo = <T>(x: T) => x; // ERROR : unclosed `T` tagWorkaround: Use extends on the generic parameter to hint the compiler that it's a generic, e.g.:
const foo = <T extends unknown>(x: T) => x;From Stack Overflow: asked by Andreas Frische, answered by jbmilgrom (CC BY-SA 4.0)
React Context vs React Redux, when should I use each one?Redux
As Context is no longer an experimental feature and you can use Context in your application directly and it is going to be great for passing down data to deeply nested components which what it was designed for.
As Mark Erikson has written in his blog:
If you're only using Redux to avoid passing down props, context could replace Redux - but then you probably didn't need Redux in the first place.
Context also doesn't give you anything like the
Redux DevTools, the ability to trace your state updates,middlewareto add centralized application logic, and other powerful capabilities thatReduxenables.Reduxis much more powerful and provides a large number of features that theContext APIdoesn't provide, also as @danAbramov mentionedReact Redux uses context internally but it doesn’t expose this fact in the public API. So you should feel much safer using context via React Redux than directly because if it changes, the burden of updating the code will be on React Redux and not you.
Its up to Redux to actually update its implementation to adhere with the latest Context API.
The latest Context API can be used for Applications where you would simply be using Redux to pass data between components, however applications which use centralised data and handle API request in Action creators using
redux-thunkorredux-sagastill would need Redux. Apart from this Redux has other libraries associated with it likeredux-persistwhich allows you to save/store data in localStorage and rehydrate on refresh which is what the Context API still doesn't support.As @dan_abramov mentioned in his blog You might not need Redux, Redux has useful applications like
- Persist state to a local storage and then boot up from it, out of the box.
- Pre-fill state on the server, send it to the client in HTML, and boot up from it, out of the box.
- Serialize user actions and attach them, together with a state snapshot, to automated bug reports, so that the product developers
can replay them to reproduce the errors. - Pass action objects over the network to implement collaborative environments without dramatic changes to how the code is written.
- Maintain an undo history or implement optimistic mutations without dramatic changes to how the code is written.
- Travel between the state history in development, and re-evaluate > the current state from the action history when the code changes, ala TDD.
- Provide full inspection and control capabilities to the development tooling so that product developers can build custom tools for their apps.
- Provide alternative UIs while reusing most of the business logic.
With these many applications its far too soon to say that Redux will be replaced by the new Context API.
From Stack Overflow: asked by Alfrex92, answered by Shubham Khatri (CC BY-SA 4.0)
What's the point of input type in GraphQL?GraphQL
From the spec:
The GraphQL Object type (ObjectTypeDefinition)... is inappropriate for re‐use [as an input], because Object types can contain fields that define arguments or contain references to interfaces and unions, neither of which is appropriate for use as an input argument. For this reason, input objects have a separate type in the system.
That's the "official reason", but there's several practical reasons why you can't use an object type as an input object type or use an object type as an input object type:
Functionality
Object types and input object types both have fields, however those fields have different properties that reflect how these types are used by the schema. Your schema will potentially define arguments and some kind of resolver function for an object type's fields, but these properties don't make sense in an input context (i.e. you can't resolve an input object's field -- it already has an explicit value). Similarly, default values can only be provided for input object type fields, and not object type fields.
In other words, this may seem like duplication:
type Student { name: String grade: Grade } input StudentInput { name: String grade: Grade }But adding features specific to either object types or input object types makes it clear that they behave differently:
type Student { name(preferred: Boolean): String grade: Grade } input StudentInput { name: String grade: Grade = F }Type system limitations
Types in GraphQL are grouped into output types and input types.
Output types are types that may be returned as part of a response produced by a GraphQL service. Input types are types that are valid inputs for field or directive arguments.
There's overlap between these two groups (i.e. scalars, enums, lists and non-nulls). However, abstract types like unions and interfaces don't make sense in an input context and cannot be used as inputs. Separating object types and input object types allows you to ensure that an abstract type is never used where an input type is expected.
Schema design
When representing an entity in your schema, it's likely that some entities will indeed "share fields" between their respective input and output types:
type Student { firstName: String lastName: String grade: Grade } input StudentInput { firstName: String lastName: String grade: Grade }However, object types can (and in reality frequently do) model very complex data structures:
type Student { fullName: String! classes: [Class!]! address: Address! emergencyContact: Contact # etc }While these structures may translate into appropriate inputs (we create a Student, so we also pass in an object representing their address), often they do not -- i.e. maybe we need to specify the student's classes by class ID and section ID, not an object. Similarly, we may have fields that we want to return, but don't want to mutate, or vice versa (like a
passwordfield).Moreover, even for relatively simple entities, we often have different requirements around nullability between object types and their "counterpart" input objects. Often we want to guarantee that a field will also be returned in a response, but we don't want to make the same fields required in our input. For example,
type Student { firstName: String! lastName: String! } input StudentInput { firstName: String lastName: String }Lastly, in many schemas, there's often not a one-to-one mapping between object type and input object type for a given entity. A common pattern is to utilize separate input object types for different operations to further fine-tune the schema-level input validation:
input CreateUserInput { firstName: String! lastName: String! email: String! password: String! } input UpdateUserInput { email: String password: String }All of these examples illustrate an important point -- while an input object type may mirror an object type some of the time, you're much less likely to see that in production schemas due to business requirements.
From Stack Overflow: asked by Dmitrii Dushkin, answered by Daniel Rearden (CC BY-SA 4.0)
Designing a REST api by URI vs query stringREST APIs
First
As Per RFC 3986 §3.4 (Uniform Resource Identifiers § (Syntax Components)|Query
3.4 Query
The query component contains non-hierarchical data that, along with data in the path component (Section 3.3), serves to identify a resource within the scope of the URI's scheme and naming authority (if any).
Query components are for retrieval of non-hierarchical data; there are few things more hierarchical in nature than a family tree! Ergo - regardless of whether you think it is "REST-y" or not- in order to conform to the formats, protocols, and frameworks of and for developing systems on the internet, you must not use the query string to identify this information.
REST has nothing to do with this definition.
Before addressing your specific questions, your query parameter of "search" is poorly named. Better would be to treat your query segment as a dictionary of key-value pairs.
Your query string could be more appropriately defined as
?first_name={firstName}&last_name={lastName}&birth_date={birthDate}etc.To answer your specific questions
- Which API design is more RESTful, and why? Semantically, they mean and behave the same way. The last resource in the URI is "children", effectively implying that the client is operating on the children resource.
I don't think this is as clear cut as you seem to believe.
None of these resource interfaces are RESTful. The major precondition for the RESTful architectural style is that Application State transitions must be communicated from the server as hypermedia. People have labored over the structure of URIs to make them somehow "RESTful URIs" but the formal literature regarding REST actually has very little to say about this. My personal opinion is that much of the meta-misinformation about REST was published with the intent of breaking old, bad habits. (Building a truly "RESTful" system is actually quite a bit of work. The industry glommed on to "REST" and back-filled some orthogonal concerns with nonsensical qualifications and restrictions. )
What the REST literature does say is that if you are going to use HTTP as your application protocol, you must adhere to the formal requirements of the protocol's specifications and you cannot "make http up as you go and still declare that you are using http"; if you are going to use URIs for identifying your resources, you must adhere to the formal requirements of the specifications regarding URI/URLs.
Your question is addressed directly by RFC3986 §3.4, which I have linked above. The bottom line on this matter is that even though a conforming URI is insufficient to consider an API "RESTful", if you want your system to actually be "RESTful" and you are using HTTP and URIs, then you cannot identify hierarchical data through the query string because:
3.4 Query
The query component contains non-hierarchical data
...it's as simple as that.
- What are the pros and cons to each in terms of understandability from a client's perspective, and maintainability from the designer's perspective.
The "pros" of the first two is that they are on the right path. The "cons" of the third one is that it appears to be flat out wrong.
As far as your understandability and maintainability concerns, those are definitely subjective and depend on the comprehension level of the client developer and the design chops of the designer. The URI specification is the definitive answer as to how URIs are supposed to be formatted. Hierarchical data is supposed to be represented on the path and with path parameters. Non-hierarchical data is supposed to be represented in the query. The fragment is more complicated, because its semantics depend specifically upon the media type of the representation being requested. So to address the "understandability" component of your question, I will attempt to translate exactly what your first two URIs are actually saying. Then, I will attempt to represent what you say you are trying to accomplish with valid URIs.
Read the rest at the sourceFrom Software Engineering Stack Exchange: asked by HiChews123, answered by K. Alan Bates (CC BY-SA 4.0)
Why should we hire you?Behavioural
The strengths employers look for will depend on the job role. They may ask you questions like:
- what are your main strengths?
- why should we hire you?
You can use specific examples to highlight your strengths, such as:
- communication - to show you get on with others
- problem solving - to show that you can find solutions
- enthusiasm - to show that you have a positive attitude to work
- flexibility - to show that you can adapt to different ways of working
Plan your answers around 2 or 3 examples that are relevant to the job. You can back these up with qualifications or training you've done.
From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Software Engineer II, Streaming FoundationsOkta, Toronto, on-siteYesterday
- Senior FullStack DeveloperRoyal Bank of Canada, Toronto, on-site2 days ago
- Senior Full Stack Developer (Remote Canada)Smile Digital Health, Remote, Toronto5 days ago
- Full Stack Developer (Angular & Java )Capco, Toronto, on-site9 days ago
More like this: Full-stack developer jobs in Toronto (47), Jobs in Toronto (1,712) and Full-stack developer jobs in Canada (128)

