I analysed the Stack Overflow Developer Survey 2026 (30,903 developers) to find out what predicts whether a developer views AI tools favorably. Three results surprised me, and one of my own first conclusions did not survive checking.

1. How people rate AI's quality predicts sentiment far better than who they are

I split the survey questions into four families: who the respondent is, how much they use AI, their employer's AI policy, and their attitudes toward AI (for example how they rate it on complex tasks and how much they trust its output). Removing the attitude questions costs 0.069 AUC. Removing who they are costs 0.010, usage 0.015 and employer policy 0.001.

A caution: attitude answers partly restate sentiment. Without them, the model still reaches AUC 0.757, so that is the fairer number for "predict from who someone is and how much they use AI".

2. The algorithm barely matters

I compared ten algorithms with 5x2 cross-validation on identical folds and a corrected resampled t-test. Eight of ten are within 0.01 AUC of the best. On a test split I opened once, a tuned logistic regression ties the tuned LightGBM (AUC 0.842 for both). I kept LightGBM because it has exact explanations, not because it won.

3. Most developers who answered are favorable, but only 46% of respondents gave a usable answer

62% of those who answered are favorable. That is a share of answerers, and answering depends on who you are. I reweighted for observed differences, which moved the share by under one point. Then I asked the harder question: what if non-responders are as different as possible? Even then, at least 51% of the 17,464 respondents who reached the AI section are favorable.

What I got wrong first

I had planned to say that reweighting "fixes" non-response. It does not: observed covariates barely predict who answers (AUC 0.61), so there is little to correct, and any weighting only covers differences I can measure. I dropped that claim and added worst-case bounds instead.

What I would not claim

Heavy daily AI users are about 17.5 points more favorable after adjustment, but sentiment and use are measured in the same survey, so I cannot say use causes the view. The survey also covers people who chose to take it, not all developers.

See for yourself

Everything is open, seeded and tested: https://github.com/poluru155/developer-ai-sentiment-ml. The paper is at https://doi.org/10.5281/zenodo.24904014 and the web report at https://poluru155.github.io/developer-ai-sentiment-ml/.

Data: Stack Overflow Developer Survey 2026, published by Stack Overflow under the Open Database Licence. This post uses only aggregate results.

Disclosure: I wrote the analysis and code; this post was drafted with AI assistance (Claude).