Skip to content

Conversation

@rodrigograca31
Copy link

How do you find a co-founder?

According to my research, you need to be compatible in a few aspects, namely

  • Afraid of failure
  • Communication
  • Knowledge/Learning
  • Integrity/Honesty

This MVP first asks you how comfortable you are with those aspects and then makes an exact match with existing founders on the platform.

What can be improved:

  • Include all questions on the matching.
  • Fuzzy matching instead of exact.
  • Sort co-founders based matching "level"
  • Allow users to actually connect/communicate
  • Better code on the initial form and avoid prop drilling...

Final notes:
Was a fun and creative challenge and I'm happy with the final result even though I wanted to finish the magical "matching algorithm", also never user chakra-ui before but it was quite easy, very similar to other frameworks.

in order to make future commits diff more readable
after the user provides their information it shows compatible
co-founders based on the exact match of following preferences: failure,
communication, knowledge, integrity
@rodrigograca31
Copy link
Author

Just wanted to note that the sort actually works!
(ranks the most compatible one first and so on)

.sort((profile1, profile2) => {
	// console.log(profile1);

	const failure1 = profile1.failure - this.props.profile.failure;
	const com1 = profile1.com - this.props.profile.com;
	const finalScore1 = Math.abs(com1 + failure1);

	const failure2 = profile2.failure - this.props.profile.failure;
	const com2 = profile2.com - this.props.profile.com;
	const finalScore2 = Math.abs(com2 + failure2);

	console.log(finalScore1 - finalScore2);
	return finalScore1 - finalScore2;
});

Also added the missing code so that it actually adds the user to the database instead of just doing a search:
(that was the my original intention)

if (this.props.profile) {
	db.insert("users", this.props.profile);
	db.commit();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant