Prabashwara Seneviratne (bash)'s Avatar

Prabashwara Seneviratne (bash)

@bashlk.bsky.social

Lead Frontend Developer at Nuvole ๐Ÿ‘จ๐Ÿพโ€๐Ÿ’ป | Author of frontendundefined.com โ‰๏ธ | Sri Lankan living in Prague ๐Ÿ‡จ๐Ÿ‡ฟ | Tired solopreneur ๐Ÿ˜ฉ I write code and then write about writing code.

38 Followers  |  105 Following  |  82 Posts  |  Joined: 23.11.2024  |  2.0569

Latest posts by bashlk.bsky.social on Bluesky

I always got the eslint directives wrong the first time ๐Ÿ˜†

22.12.2024 17:12 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

Why not๐Ÿ˜„

This is what I have so far. It is all about tracking the effort that is put into tasks. Doing this has helped me be more consistent in the past.

Right now it's extremely primitive and buggy. But it's online and I can create an account for you if you like.

19.12.2024 16:41 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

That's some interesting stuff! I didn't know about most of them so I had to do some googling๐Ÿ˜†. Would love to see what the end result is!

On my end, I have a strange obsession with effort tracking and I've built several apps for myself which I've abandoned after a while. I'm on the 5th one rn.

19.12.2024 15:00 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Hey Kacper! Welcome!
I'm probably in the same boat as you when it comes to abandoned side projects ๐Ÿ˜†
Are you working on anything right now?

19.12.2024 11:46 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
Filtering | Sentry for JavaScript Learn more about how to configure your SDK to filter events reported to Sentry.

I just set up thirdPartyErrorFilterIntegration yesterday on Sentry. It seems to be a better fit for cutting out random noise.
docs.sentry.io/platforms/ja...

17.12.2024 13:08 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

If the cookie is set on the server, then this kind of functionality could be implemented by checking the responses to see if the Set-Cookie header is set.

17.12.2024 12:56 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Would love to hear what you discover in the end. I would also suggest Astro for your consideration. Out of what I have seen so far, it is the one that I would mostly likely go with for a server side web app framework.

17.12.2024 12:54 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

What frameworks have been less chaotic, based on your experience?

16.12.2024 15:25 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I would be more worried if your urgent group had 104 items and TODO had only 3.

16.12.2024 10:39 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

This is one of those times when React will throw a rather cryptic "Maximum update depth exceeded." error.

16.12.2024 10:37 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

The same applies to any application, the larger it gets the more complicated it becomes.

Using something like React Router can help when implementing multiple screens within a React SPA. If the web app consists mostly of static layouts, a web framework like Astro would be a better fit.

16.12.2024 10:33 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I personally learnt React by building a small app while reading the docs. I would recommend the same, even though it might be a bit challenging sometimes.
Feel free to hit me up with any #react questions.

16.12.2024 10:27 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Seeing your work in the wild is a great feeling!

16.12.2024 10:23 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Hey Brittany! Welcome!
I haven't been on Bluesky for too long so I'm still learning the ropes. But I try to chime in on conversations around #react.

I write a small blog around react and web app dev at www.frontendundefined.com . Maybe you might find it interesting.

13.12.2024 11:04 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Nope, you just need to pass the toggle which is actually dispatch to an event handler and it will toggle back and forth.

12.12.2024 23:30 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I thought of it a few years ago and it makes it much easier to work with boolean state. I haven't measured the performance of it but I haven't noticed any visible performance hits in all of the components I used it in.

12.12.2024 14:30 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I'm still surprised that I managed to do all that I did yesterday. Previously buying a new domain and setting up DNS, HTTPS, a reverse proxy and docker would have taken me days. Yesterday I managed to do it within 2 hours. #indiedev life does this to you I guess.
#buildinpublic

12.12.2024 11:02 โ€” ๐Ÿ‘ 6    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

It only sets isDarkMode to true and doesn't set it to false afterwards. I often use useReducer for such toggles.

const [isDarkMode, toggleIsDarkMode] = useReducer(state => !state, false);

12.12.2024 10:53 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Started with a broken project. Coded the entire day and ended with the MVP frontend and backend hosted on a brand new domain. It was a long day. But I'm happy.
#buildinpublic

11.12.2024 23:47 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 3    ๐Ÿ“Œ 0

I think it shows when a lot of care is given to a project.

10.12.2024 09:24 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

What was the thing BTW?

10.12.2024 09:19 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

It's tough when you put your heart and soul into something and when people don't value it.

10.12.2024 09:18 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Yes, with a package, the interface or API between it and the consumer is the main contract. Any behavior exposed from it, even accidentally, will become the behavior that the consumers expect from it.

09.12.2024 10:18 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

It mutates state within the reducer. ๐Ÿ˜

08.12.2024 14:19 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Most of my monthly post end up getting sent late in the day after which a few people immediately unsubscribe. It really makes me question why I do this lol.

08.12.2024 11:28 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I have been this person so many times. Everyone else in the co working space is having a party and Iโ€™m sitting in the corner, writing and editing, since itโ€™s the last working day of the month ๐Ÿ˜†

08.12.2024 11:26 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
Reflections on managing state In this post, I reflect on my experience of using multiple state management libraries and I describe the best practices I found for managing state in React.

In the last few months, I tried several state management libraries for React. While going through them, I started to see state management itself in a different light. I wrote down my thoughts in my latest monthly post.

06.12.2024 12:08 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I think most people dislike it because it is not type safe and because it is very easy to make a mess with it.

Entire wars start because of programming language semantics.

06.12.2024 11:28 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Take your time. If you are not ready to post it, then you are not ready to post.

That said, I have learnt the hard way that getting otherโ€™s thoughts is better than later.

05.12.2024 15:40 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I hate to break it to youโ€ฆ but building a productivity tool for Indie hackers is a good idea ๐Ÿ˜†

05.12.2024 08:59 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

@bashlk is following 20 prominent accounts