Shashi Ramchandani, who manages a team of engineers at Google, has never been shy about being a conservative working in Silicon Valley.

He showed coworkers emails he exchanged with Ivanka Trump after he mailed her photos he took at the Republican convention, and on election night, he texted colleagues snapshots from the floor of Trump’s victory party in New York City.

“They saw me first as a Googler, then as a conservative,” Mr Ramchandani said.

In his 14 years at the company, he said he hasn't felt like he had to keep his mouth shut—until last month when Google fired an engineer who penned a memo saying biological differences partly explain why more men work in tech than women.

Politics often don’t mix easily at work, but it’s particularly fraught in tech, where free thinking is prized yet the workforce is predominantly liberal.

Now, as President Trump stirs up the culture wars at the same time as Silicon Valley faces a backlash for being so white and so male, conservatives in tech have their guards up like never before.

Mr Ramchandani, whose parents came to the US from India, wasn’t a fan of the memo. He particularly objected to its assumption that Google’s hiring favours women and minorities, which ran counter to his experience as a hiring manager.

While he understood why Google fired the engineer, he was also “extremely disappointed” by the whole situation.

Mr Ramchandani felt, for the first time, that he had to reconcile his love of Google with his conservative support for free speech and distaste for bureaucracy.

Tech has seen ousters for unpopular political or cultural views before, like when the chief technology officer at Business Insider was forced out in 2013 over old racist and homophobic tweets, and the next year when the chief executive of Mozilla stepped down after facing criticism for a $1,000 donation he’d made to a group that opposed gay marriage.

But those were executives.

The Google memo, which exposed a rank-and-file engineer exposed in a public way, hit closer to home for many conservatives, who said the current environment is more hostile than ever before.

“Before it was, ‘I don’t agree with you,’ but now it has evolved into this new thing that is much more aggressive, ‘don’t even say something that is counter to what I believe,’” says Aaron Ginn, co-founder of Lincoln Network, which looks to connect conservative techies with government and political work.

Some fear losing their jobs while others worry they’ll be ostracised by colleagues. (That’s in a sector where 76 per cent of technical jobs are held by men, and blacks and Latinos make up only 5 per cent of the workforce.)

Adding to the stress is Silicon Valley’s penchant for open floor plans, which make it hard to tune out an officemate on a rant, and the way companies encourage workers to socialise and bring their whole selves to their job.

Several tech workers said they don’t post about politics on Facebook, where they’re friends with many coworkers.

“My wife is very paranoid about me sharing my opinion, even on private WhatsApp groups with my friends,” said a former Amazon engineer who now works at Oracle.

Most employees who spoke asked not to be identified because they worried about their job security.

An engineer at Microsoft first realised just how in the minority his political views were back in 2004, when George W. Bush was up for re-election.

At lunch one day, his coworkers one by one slammed the Republican candidate. The engineer, just a few years out of college, recalls saying,

“I’m probably going to vote for him.” He wasn’t prepared for the response.

“They said, ‘You stupid person. How can you think about that?’”

Things got so heated, he said, his manager sent a memo to his 100-person team, that said, in essence, “Hey, cool it. We have engineering tasks we have to focus on.”

As contentious as 2004 may have been, it’s nothing compared to the polarising election and presidency of Trump.

The Microsoft engineer said now it’s even harder to have a productive political conversation, as colleagues lump him with a president whom he said doesn’t represent his conservative values, threatening the ability to do his job well.

"Thirty years ago, there was somebody in their garage doing something amazing,” he said. “Now these projects have thousands of people on them.

People have to work with you and like you. If you get labelled as a bad person because you voted the wrong way and start getting ostracised, it will impede on your job because most people can’t flip modes.

They can’t have a heated political debate with you and then flip modes and have a heated technical debate with you."

Google’s office felt like a funeral the day after Trump was elected, according to an employee who describes himself as libertarian. “A lot of people didn’t come,” he said. “The people who did were very quiet, almost like their aunt died.”

This Google employee believes the now infamous memo was relatively well-reasoned and that Silicon Valley's diversity initiatives ignore data that conflict with their ideology.

He’s regularly reminded of what he refers to as the company’s “social justice agenda,” like when he gets corporate email touting a donation to a non-profit that supports minorities, or hears an executive talk about hoping to have half of his leadership team be female, which he believes shows the company prioritises some groups over others.

He worries that the company is under pressure to reach 50-50 gender equity too fast, and it will impede the promotion opportunities for men. “Just do the math,” he says.

The Oracle engineer said the bro culture in tech is real and knows of female colleagues who face sexism, but with women making up fewer than a fifth of computer science graduates, the goal of reaching anything close to a 50-50 split feels “misguided” in the near term.

“Some people are better than others, and when I work with a woman who is below average, I always have a thought that maybe she is a diversity hire, and I don’t think that’s healthy,” he said.

He bristles slightly when he hears about female colleagues being heavily recruited by top firms.

Some confide in colleagues they consider friends. One liberal Google product manager said a conservative teammate who used to work at Goldman Sachs told him the environment now reminds him of his time in banking during the Occupy Wall Street protests, when he tried to lay low.

Business news: In pictures Show all 13 1 /13 Business news: In pictures Business news: In pictures Flybe collapses Airline Flybe has collapsed. All future flights on the Exeter-based airline have been cancelled – leaving more than 2,300 staff facing an uncertain future, and wrecking the travel plans of hundreds of thousands of passengers. The chief executive, Mark Anderson, said: “Europe’s largest independent regional airline has been unable to overcome significant funding challenges to its business. AFP via Getty Business news: In pictures Future product placement will be 'tailored to individual viewers' Marketing executives say that product placement in films and televison shows on streaming services such as Netflix may be tailored to individuals in future. For instance, if data shows that a viewer is a fan of pepsi, a billboard in the background of a shot would host an advert for pepsi, while for a viewer known to have different tastes it could be for Coca-Cola Paramount Business news: In pictures Corbyn wishes Amazon a happy birthday In a card sent to Amazon CEO Jeff Bezos on the company's 25th birthday, Labour leader Jeremy Corbyn writes: "You owe the British people millions in taxes that pay for the public services that we all rely on. Please pay your fair share" Business news: In pictures No deal, no tariffs The government has announced that it would slash almost all tariffs in the event of a no-deal Brexit. Notable exceptions include cars and meat, which will see tariffs in place to protect British farmers Getty Business news: In pictures Fingerprint payment NatWest is trialling a new bank card that will allow people to touch their hand to the card when paying rather than typing in a PIN number. The card will work by recognising the user's fingerprint NatWest/PA Wire Business news: In pictures Mahabis bust High-end slipper retailer Mahabis has gone into administration. 2 Jan 2019 Mahabis Business news: In pictures Costa Cola Coca-Cola has paid £3.9bn for Costa Coffee. A cafe chain is a new venture for the global soft drinks giant PA Business news: In pictures RIP Payday Loans A funeral procession for payday loans was held in London on September 2. The future of pay day lenders is in doubt after Wonga, Britain's biggest, went into administration on August 30 PA Business news: In pictures Musk irks investors and directors Elon Musk has concluded that Tesla will remain public. Investors and company directors were angry at Musk for tweeting unexpectedly that he was considering taking Tesla private and share prices had taken a tumble in the following weeks Getty Business news: In pictures Jaguar warning Iconic British car maker Jaguar Land Rover warned on July 5, 2018 that a "bad" Brexit deal could jeopardise planned investment of more than $100 billion, upping corporate pressure as the government heads into crucial talks AFP/Getty Business news: In pictures Spotif-IPO Spotify traded publically for the first time on the New York Stock Exchange on Tuesday. However, the company isn't issuing shares, but rather, shares held by Spotify's private investors will be sold AFP/Getty Business news: In pictures French blue passports The deadline to award a contract to make blue British passports after Brexit has been extended by two weeks following a request by bidder De La Rue. The move comes after anger at the announcement British passports would be produced by Franco-Dutch firm Gemalto when De La Rue’s contract ends in July. The British firm said Gemalto was chosen only because it undercut the competition, but the UK company also admitted that it was not the cheapest choice in the tendering process. Business news: In pictures Beast from the east economic impact The Beast from the East wiped £4m off of Flybe’s revenues due to flight cancellations, airport closures and delays, according to the budget airline’s estimates. Flybe said it cancelled 994 flights in the three months to 31 March, compared to 372 in the same period last year.

Mr Ramchandani, who said he’s fiscally conservative but socially liberal, said the pressure on conservatives is “less of a Google thing than a Silicon Valley thing.”

In the suburban Bay Area at large, he said, “I had more trouble coming out as a conservative than I did with my race or orientation or any other minority status.”

He believes Google should recognise his fellow conservatives more but is nervous that conservatives are becoming more polarised themselves in recent weeks.

He said on internal Google employee email groups for conservatives, he noticed “a few loud voices” stoking an “us versus them” mentality, for example contemplating legal action against the company.

“I found that distasteful because it’s biting the hand that feeds you,” he said. “We are here to do a job not expound political values.”

The Oracle engineers, like some others, have opted to lay low during this tense time. “Work is work, and not everything needs to be about politics,” he said.

While he sees liberal colleagues who sit nearby don’t seemingly need to filter their comments, he’s decided it’s not worth engaging, adding “I don’t want to be known as that guy who wants to argue with everybody.”