Rohan Taneja Profile picture
@FlutterDev Evangelist • Building @FantasyPLApp • Software Engineer @deliveryherocom • ⚽💙
Jan 12, 2022 13 tweets 4 min read
Unpopular opinion (Clearly, based on the poll):

BLoC event names should describe the action, not the consequence of the action.

Here’s my reasoning behind it ⬇️ #Flutter The BLoC is responsible for the business logic.

Let’s say the user taps on a player that opens the player details page.

Only the BLoC should know that the player's details need to be fetched here. The BLoC's event shouldn’t know this.
Jan 4, 2022 13 tweets 4 min read
What is _$? #Dart #Flutter

Back in 2020, I had been working with Flutter/Dart for a while, but I had zero clue about the concept of generated code.

Here’s what followed ⬇️ I saw this strange _$ syntax everywhere.

I knew that a prefixed underscore is Dart’s way of saying that a certain thing is private but I wasn’t sure if the _ in _$ also meant the same thing.

It felt alien to see a $ sign in class/method names.
Jan 2, 2022 8 tweets 4 min read
I love @FlutterDev 💙
I'm super into @OfficialFPL too

So I decided to combine my love for both of them to solve some FPL pain points by building @FantasyPLApp ⬇️ This is (finally!) a side-project that I’ve actually shipped to real users and not just my friends (or parents, lol). I’ve learned a ton building this app. It’s far from done but it brings me immense joy to see this being useful for a few already 🙌