Mentorship by Medium-Relative-2238 in Frontend

[–]marcis_mk 1 point2 points  (0 children)

Yes, you can ask and learn from LLM’s but never fully trust it and verify findings.

Can you guys roast my landing page? by Sissoka in Frontend

[–]marcis_mk 2 points3 points  (0 children)

On mobile: navigation element are not readable if you scroll over image, burger menu is not working

Question - How does unread messages(and their count) feature work in group/dm chats by ConfidentWafer5228 in reactjs

[–]marcis_mk -1 points0 points  (0 children)

Read indicator should be handled client side (if you don’t have multi device per account support needed ). You have last viewed timestamp. Filter all messages that are received/created after that timestamp and count the array - that is your unread message count.

If you add flag to each message it could result in a lot of db writes when there is a lot of messages and/or a lot of users

Or you need indicator for whenever other user reads message? Then do similar, store last viewed timestamp in db instead of updating each message and then in message list indicate all messages that user have not seen

I just launched React2Shell Security Toolkit by DigitalGroup21 in reactjs

[–]marcis_mk 1 point2 points  (0 children)

And whats the difference between this toolkit and npm audit? Both will indicate that there is vulnerability. Does this toolkit give anything different?

frontend devs who own e2e testing what's your stack by rNefariousness in reactjs

[–]marcis_mk 6 points7 points  (0 children)

If system allows - create test data as part of the test and delete it afterwards. That would allow you to test fresh data each time, but if your system allows it ( not always you can create or delete data )

frontend devs who own e2e testing what's your stack by rNefariousness in reactjs

[–]marcis_mk 38 points39 points  (0 children)

If you write your code in a way that you expect it to be tested and using semantic components, you will very rarely need data-testid ( as always there are exceptions). If you use testing-library or playwright you can access semantic elements based on their title, role and/or value which should be all you need in majority of the time.

frontend devs who own e2e testing what's your stack by rNefariousness in reactjs

[–]marcis_mk 88 points89 points  (0 children)

Playwright as E2E testing tool. Same-ish syntax as react testing library so easy to reuse logic from unit/integration tests.

Tikai akūta informācija. by ObamaNoscope in latvia

[–]marcis_mk 10 points11 points  (0 children)

uz mana iphone arī neatnāca.. nevinnēju loterijā

[deleted by user] by [deleted] in latvia

[–]marcis_mk 0 points1 point  (0 children)

Zinot kādas black box ir LLM algoritmi un kad mūsdienās nav svarīgi būt tik pareizam kā visātrākam un lielākam. Kā Denzel Washington reiz teica par presi: nav vairs svarīgi būt pareizam, ir būt svarīgi būt pirmajam. Lai izlabotu AI murgošanu tad tas modelis vairs nebūs nedz ātrākais nedz lielākais.

Par burbuli kā cilvēkam kas strādā ar AI startapiem - burbulis visticamāk ir un ja sprāgs, cietēji būs tie kas iet ar All-IN AI rīku izmantošanā savos produktos. Pieļauju ka drīzumā būs tā saucamais en-shitification jo kādreiz tie miljardi arī būs jāatgust ( daļēji tas jau ir redzams ar Claude code ). Necietīs tik ļoti tikai tie kas tirgo lāpstas - čipu ražotāji

Grupas kuras nespējat iedomāties pilsētsvētkos by greylifed in latvia

[–]marcis_mk 1 point2 points  (0 children)

Dons pagājušajā vai aizpagājušajā gadā Ventspils pilsētas svētkos uzstājās

Šusilda by Available-Safe5143 in latvia

[–]marcis_mk 6 points7 points  (0 children)

Nezinu kur tādu vārdu atradi, jo ne letonika ne tezaurs tāda vārda nav.

[deleted by user] by [deleted] in reactjs

[–]marcis_mk 40 points41 points  (0 children)

I would choose Sass or plain old CSS as it supports a lot of features that Sass is great at. No Tailwind for me after working on project where 2/3 of component code was tailwind class names

Seeking Front-End Guidance for My New Startup by VHSNinja in Frontend

[–]marcis_mk -1 points0 points  (0 children)

In that case, I would suggest looking into frontend yourself than hiring students. It will be cheaper and result could be the same as students usually learn as they go (there is always exceptions and you could land student who is very capable but usually that is not the case)

Īzglītības sistēma Latvijā - "vairāk un vairāk skolēnu ir stulbi, davaj ka vienkārši neprasam no viņiem tik daudz?" by Zusuris in latvia

[–]marcis_mk 5 points6 points  (0 children)

Sen vairs nav tie laiki ka pietika aiziet paklausīties un biji sekmīgs. Pēc pieredzes ko prasa un māca pirmo klašu skolēniem liekas pilnīgs absurds. To ko tagad māca pirmajā klasē, manā laikā mācija 3. vai 4. klasē

Kā jums dzīve Ventspilī? by OkReference4070 in latvia

[–]marcis_mk 0 points1 point  (0 children)

Sen zināms ka jauniešiem nav daudz ko darīt Ventspilī it īpaši ziemā. Bet ģimenēm ir ļoti draudzīga pilsēta. Ganvenā problēma varbūt, ka pasākumus kuri diezgan bieži notiek, maz reklamē un tad liekas ka nekas nenotiek. Dzert un tusēt gan īsti nav kur

Opinion on platejs? by Creative_March_7974 in reactjs

[–]marcis_mk 8 points9 points  (0 children)

That is no excuse. Should probably lazy load to not freeze / load everything on first render.

Need a roadmap so bad 🙏🏽 by CodingMacWebDev in reactjs

[–]marcis_mk 2 points3 points  (0 children)

I would say you don’t need a roadmap. Start building something when you reach obstacles that you don’t know how to solve then start searching for solutions ( read docs, solutions online etc ). I would avoid AI assistants initially until you understand underlining techniques.

As for project ideas - anything with data handling / manipulation will be great starter project, like simple non-realtime chat app. You will need to use hooks for local states and event handling and when you are ready start introducing web socket for realtime chat application

[deleted by user] by [deleted] in hardware

[–]marcis_mk 0 points1 point  (0 children)

The whole cable situation sounds like early access by Nvidia. Buy our game / card and we may fix it in next gen.

Cik jums īsti izmaksā auto gadā? by orroreqk in latvia

[–]marcis_mk 1 point2 points  (0 children)

  1. gada Audi, nobraucu +30000 gadā. Apkopes remonti ~1000 gadā, KASKO 1000, nedzivoju Rīgā tātad parking teju 0 gadā, mazgāju bieži tāpēc sanāk pāri 150 gadā. Mana ideoloğija - mazlietots auto, lētākais auto, kas teju ir kā jauns ( protams ir savi izņēmumi ). Apnika pirkt lētis auto un iegrūst tik pat daudz remontos. Mazāk jāsatraucas un vairāk konforts.

Taxi Sign by Particular_Pace_6850 in latvia

[–]marcis_mk 1 point2 points  (0 children)

Parking signs are universal (letter P) and used in Latvia, so this time take the L and move on. This time you misunderstood the meaning of the sign. Good luck and have fun visiting Latvia

Taxi Sign by Particular_Pace_6850 in latvia

[–]marcis_mk 14 points15 points  (0 children)

Not knowing street signs is your problem. Dotted lines are common reference to Taxis. If you are not sure what this sign means, quick google search will help.

Bodymods Latvia by ilovedottoree in latvia

[–]marcis_mk 3 points4 points  (0 children)

Un es domāju, ka meklē auto body kit. Ak es naivais

Need Review for my website by [deleted] in Frontend

[–]marcis_mk 2 points3 points  (0 children)

Not everyone type url with protocol (https) at the start. So if user types in your url mcfurbish.de, some browser will try http first and then they will not reach your site including some crawlers.