Staff Software Engineer
Software engineeringPosted over 2 months agofrom Affinity's own hiring page
- Work type
- HybridNew York, San Francisco Bay Area, Austin, Chicago
- Experience
- 10+ years
- Pay
- $194k–280k a year
- Posted
- Over 2 months agoOpen 2 months
Skills it mentions
Add your skills to see which ones you have.
About the job
With a growing customer base and expansion into new markets and use cases, we have more to build than ever at Affinity as we execute on our vision to put relationship intelligence at every professional's fingertips.
Reporting to the Sr Engineering Manager, as a Staff Software Engineer, you'll have the opportunity to push our product in new directions while also shaping the next iterations of the features our customers already love. This is a hands-on role with broad scope. You'll work across the stack, from our data model and async processing on the backend to design systems and rich visualizations on the frontend. You'll also be one of the people product and engineering leadership come to when the path forward isn't obvious yet.
Location:
For those located in San Francisco or New York, for this role we're embracing a hub-hybrid model, designed to balance flexibility with meaningful in-person collaboration. Team members within commuting distance are expected in-office 2 days per week, typically Tuesday through Thursday. We believe great things happen when people come together intentionally to connect, create, and build momentum as a team.
What you'll do
Set and own the technical direction for a core product domain, including the architecture decisions, the sequencing, and the tradeoffs you choose to make and defend
Lead complex, multi-quarter initiatives end to end, breaking ambiguous problems into work other engineers can pick up and run with
Partner closely with product and design from the problem-definition stage, shaping what gets built and not just how it gets built
Raise the technical bar across the team through design review, code review, and mentorship of senior and mid-level engineers
Identify the highest-leverage investments in reliability, performance, and developer velocity in your area, and make the case for them
Own the operational health of what you build, including performance, observability, and on-call for your domain
Work fluently with AI development tools and help the team get better at using them well, including where they genuinely speed us up and where they don't
What we're looking for
10+ years building and shipping production software as a full-stack engineer, with a track record of technical leadership on ambiguous, high-stakes projects
Demonstrated impact beyond your own team, whether that's through architecture other teams build on, standards you established, or engineers you grew
Experience building product features on top of LLMs or agent frameworks, including how you evaluated and monitored them
Strong server-side experience with modern OOP practices; we use Ruby and PostgreSQL, and we're open to candidates with deep expertise in a comparable stack who are motivated to pick ours up
Experience building component-based interfaces with React and TypeScript
Deep understanding of relational databases, including designing systems that scale and diagnosing performance bottlenecks before they reach customers
Practical fluency with AI-assisted development (Claude Code, Cursor, Copilot, or similar) and good judgment about when to use it, how to review what it produces, and where the risks are
Pride in delivering high-quality, powerful products to customers while championing technical excellence
Eagerness to contribute your ideas and experience to help Affinity keep improving as a product and as a company
Tech stack
React and TypeScript on the front end, Ruby and PostgreSQL on the back end. Our infrastructure is hosted on AWS and runs on Kubernetes.
What you'll enjoy at Affinity:
We live our values: As owners, we take pride in everything we do. We embrace a growth mindset, engage in respectful candor, act as playmakers, and "taste the soup" by diving deep into experiences to create the best outcomes for our colleagues and clients.
Health Benefits: We cover your medical, dental, and vision insurance premiums with comprehensive PPO, HDHP and HMO options (in CA), and offer flexible personal & sick days to support your well-being.
Retirement Planning: We offer a 401(k) plan to help you plan for your future.
Learning & Development: We provide an annual education budget.
Wellness Support: We reimburse monthly for things like home internet, meals, and wellness memberships/equipment to support your overall health and happiness.
Team Connection: Virtual team-building activities and socials to keep our team connected, because building strong relationships is key to success.
Please note that the role compensation details below reflect the base salary only and do not include any equity, or benefits. This represents the salary range that Affinity believes, in good faith, at the time of this posting, that it will pay for the posted job.
A reasonable estimate of the current range is USD $193,800 - $280,000 USD. Within the range, individual pay depends on various factors including geographical location and a review of the applicant's experience, knowledge, skills, abilities of the applicant.
About Affinity
Affinity is the AI-first CRM for private capital, helping firms turn relationship intelligence into action across the investment lifecycle. Built on a decade of proprietary relationship, interaction and deal data, Affinity automatically captures activity, maps firm networks, and surfaces the connections and insights that help investors source, evaluate and win opportunities.
Trusted by more than 3,300 private capital firms, including 40% of the venture capital market and more than 330 private equity buyout teams, Affinity powers one of the industry's deepest relationship graphs. The platform is built on more than 130 billion structured relationships, 177 million people tracked, 88 million companies tracked and 31 billion interactions, helping firms uncover opportunities sooner, move with greater conviction and scale institutional knowledge over time.
Learn more: affinity.co
1 more opening for this job
Affinity posts this job once per place or skill set. Pick the one that fits you.
Interested?Staff Software Engineer at Affinity
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on Ruby, PostgreSQL, React and 4 more
Interview questions for this job
For the skills the ad mentions: Ruby, PostgreSQL, React, TypeScript, LLMs and GenAI, AWS and Kubernetes.
Why are exclamation marks used in Ruby methods?Ruby
In general, methods that end in
!indicate that the method will modify the object it's called on. Ruby calls these as "dangerous methods" because they change state that someone else might have a reference to. Here's a simple example for strings:foo = "A STRING" # a string called foo foo.downcase! # modifies foo itself puts foo # prints modified fooThis will output:
a stringIn the standard libraries, there are a lot of places you'll see pairs of similarly named methods, one with the
!and one without. The ones without are called "safe methods", and they return a copy of the original with changes applied to the copy, with the callee unchanged. Here's the same example without the!:foo = "A STRING" # a string called foo bar = foo.downcase # doesn't modify foo; returns a modified string puts foo # prints unchanged foo puts bar # prints newly created barThis outputs:
A STRING a stringKeep in mind this is just a convention, but a lot of Ruby classes follow it. It also helps you keep track of what's getting modified in your code.
From Stack Overflow: asked by Lennie, answered by Todd Gamblin (CC BY-SA 3.0)
What is a valid use case for using TIMESTAMP WITHOUT TIME ZONE?PostgreSQL
This is stated in a lot of places, but I think it worth mentioning always when we compare the
timestamp with time zonewithtimestamp without time zonetypes: thetimestamp WITH time zonedoes not store the time zone information along with the timestamp. What it does is to store every data in UTC time zone, as stated in the docs:For timestamp with time zone, the internally stored value is always in UTC (Universal Coordinated Time, traditionally known as Greenwich Mean Time, GMT). An input value that has an explicit time zone specified is converted to UTC using the appropriate offset for that time zone. If no time zone is stated in the input string, then it is assumed to be in the time zone indicated by the system's TimeZone parameter, and is converted to UTC using the offset for the timezone zone.
It is considered valid for some to use
timestamp WITHOUT time zonein situations where (1) everything is in the same timezone or (2) the application layer handles the time zone and just store everything in a certain time zone (usually UTC). But it is also considered an anti-pattern, simple because the correct solution for (1) is to configure the TimeZone setting to the given one timezone for the system and (2) is already solved, as PostgreSQL already stores everything on the same timezone (UTC).Now, with those two down, I can came with only one good reason to use
timestamp WITHOUT time zone. That is when you want to store events in the future and that some kind of alert must be triggered when we got to that time. That could be good fortimestamp WITH time zoneif, and only if, the rules defined by region's laws about time zone didn't ever change. The most common rule that changes is about the adoption or not of day light saving time (DST).For example, imagine that you are at, let's say,
2013-06-15(not yet in DST) schedule some event to happen at2013-01-15 10:00(which would be already in DST), and at2013-06-15your region was designated to adopt DST; but, some time after that, the government changed the rule and say your region will no longer use DST, and suddenly your scheduled time becomes2013-01-15 11:00(instead of10:00), that if you usetimestamp WITH time zone, and keep your TZ configurations up-to-date. Of course you may also notice that it is possible to treat such cases also with time zone, if you keep track of the rule changes in the regions/timezones of your interest, and update the affected records.Worth mentioning that some regions does often change these rules (like at Brazil, some states - not the entire country - often change), but in most cases it changes it very earlier, so your users would be affected only by events scheduled very far from the current time.
With all that said, I only have one more suggestion. If you do have users, logs, or anything on different timezones, store the timezone they are coming from somewhere and choose and use
timestamp with time zone. That way you can (1) cross events happening closer to each other for different sources (independent of their timezones) and (2) show the original time (the clock time) the event has happened.From Database Administrators Stack Exchange: asked by Marcus Junius Brutus, answered by MatheusOl (CC BY-SA 3.0)
What is the difference between createElement and cloneElement?React
Both
React.createElementandReact.cloneElementare used to work with React elements, but they serve different purposes.createElement:
Creates a new React element from scratch. JSX elements will be transpiled to
React.createElement()functions to create React elements which are going to be used for the object representation of UI. Syntax:React.createElement(type, props, ...children)Example:
React.createElement('button', { className: 'btn' }, 'Click Me')cloneElement:
The
cloneElementmethod is used to clone an existing React element and optionally adds or overrides props.Syntax:
React.cloneElement(element, newProps, ...children)Example:
const button = <button className="btn">Click Me</button>; const cloned = React.cloneElement(button, { className: 'btn-primary' }); // Result: <button className="btn-primary">Click Me</button>From ReactJS Interview Questions & Answers (MIT)
Is there a way to check for both `null` and `undefined`?TypeScript
Using a juggling-check, you can test both
nullandundefinedin one hit:if (x == null) {If you use a strict-check, it will only be true for values set to
nulland won't evaluate as true for undefined variables:if (x === null) {You can try this with various values using this example:
var a: number; var b: number = null; function check(x, name) { if (x == null) { console.log(name + ' == null'); } if (x === null) { console.log(name + ' === null'); } if (typeof x === 'undefined') { console.log(name + ' is undefined'); } } check(a, 'a'); check(b, 'b');Output
"a == null"
"a is undefined"
"b == null"
"b === null"
From Stack Overflow: asked by David Liu, answered by Fenton (CC BY-SA 4.0)
CNNs and RNNs don’t use positional embeddings. Why do transformers use positional embeddings?LLMs and GenAI
CNNs and RNNs don’t use positional embeddings because these models inherently capture positional information through convolutional filters or recurrence over time steps. However, the Transformer model uses the self-attention mechanism, which processes all tokens in parallel without any notion of sequence or order.
Positional embeddings inject explicit information about each token’s position in the sequence, allowing transformers to understand word order and relative distances between tokens. This helps them model sequential dependencies and sentence structure effectively, compensating for the parallel and order-agnostic nature of self-attention mechanisms.
From LLM Interview Questions and Answers Hub (Apache 2.0)
What do you do in your spare time?Behavioural
Employers will want to get to know you and may ask things like:
- what do you do in your spare time?
- what are your hobbies and interests?
Show what kind of personal qualities, interests and skills you have. For example, you could talk about:
- cooking - to show you're organised and can follow instructions
- travel - to show you're adventurous and flexible
- team sports - to show you're a team player with good communication
- music - to show you're creative
If the job requires certain skills, you should demonstrate these in your examples.
ExampleIf it's a graphic designer role, you could talk about taking a desktop publishing course.
From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Member of Technical StaffClera, San Francisco Bay Area, on-siteToday
- Software Engineer, Safety Data FlywheelOpenAI, Remote, San Francisco Bay AreaYesterday
- Senior Staff Software EngineerFivetran, San Francisco Bay Area, hybridYesterday
- Senior Enterprise Applications EngineerMixpanel, San Francisco Bay Area, hybridYesterday
More like this: Software engineer jobs in New York (301), Jobs in New York (6,234) and Software engineer jobs in the USA (1,765)



