Skip to content

Commit

Permalink
Update script for 2021 SO survey
Browse files Browse the repository at this point in the history
  • Loading branch information
Sajmani committed Dec 7, 2021
1 parent e8dfb27 commit 8607f0a
Show file tree
Hide file tree
Showing 2 changed files with 146 additions and 75 deletions.
20 changes: 16 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,16 @@ import (
"strings"
)

// 2021 columns:
// ResponseId,MainBranch,Employment,Country,US_State,UK_Country,EdLevel,Age1stCode,LearnCode,YearsCode,YearsCodePro,DevType,OrgSize,
// Currency,CompTotal,CompFreq,LanguageHaveWorkedWith,LanguageWantToWorkWith,DatabaseHaveWorkedWith,DatabaseWantToWorkWith,
// PlatformHaveWorkedWith,PlatformWantToWorkWith,WebframeHaveWorkedWith,WebframeWantToWorkWith,MiscTechHaveWorkedWith,MiscTechWantToWorkWith,
// ToolsTechHaveWorkedWith,ToolsTechWantToWorkWith,NEWCollabToolsHaveWorkedWith,NEWCollabToolsWantToWorkWith,OpSys,NEWStuck,NEWSOSites,
// SOVisitFreq,SOAccount,SOPartFreq,SOComm,NEWOtherComms,Age,Gender,Trans,Sexuality,Ethnicity,Accessibility,MentalHealth,
// SurveyLength,SurveyEase,ConvertedCompYearly

func main() {
f, err := os.Open("/Users/sameer/Downloads/developer_survey_2019/survey_results_public.csv")
f, err := os.Open("/Users/sameer/Downloads/stack-overflow-developer-survey-2021/survey_results_public.csv")
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -42,9 +50,13 @@ func main() {
techSet[tech] = true
}
}
addTechs("LanguageWorkedWith")
addTechs("PlatformWorkedWith")
addTechs("DevEnviron")
addTechs("LanguageHaveWorkedWith")
addTechs("DatabaseHaveWorkedWith")
addTechs("PlatformHaveWorkedWith")
addTechs("WebframeHaveWorkedWith")
addTechs("MiscTechHaveWorkedWith")
addTechs("ToolsTechHaveWorkedWith")
addTechs("NEWCollabToolsHaveWorkedWith")
if techSet["AWS"] || techSet["Microsoft Azure"] || techSet["Google Cloud Platform"] {
techSet["ANY CLOUD"] = true
}
Expand Down
Loading

0 comments on commit 8607f0a

Please sign in to comment.