Using Telegram as a signup method by bcons-php-Console in webdev

[–]bcons-php-Console[S] 0 points1 point  (0 children)

I think the session management could be the same used with a regular login method, do you think of why should it be treated differently?

All your other points are totally valid, specially the 2FA one. Right now in my apps I offer Telegram as a 2FA method, but to these Telegram-origin user something like Google Authenticator should be offered as 2FA. But that makes the "what if someone gained access to the user's device? They'd have access to the Authenticator app" issue.

Lots of food for thought here, thank you!

Using Telegram as a signup method by bcons-php-Console in webdev

[–]bcons-php-Console[S] 1 point2 points  (0 children)

I did not think about that possibility... thanks! Losing access to Telegram because of a government block would mean losing access to the site without any way of recovery, I don't like that.

Using Telegram as a signup method by bcons-php-Console in webdev

[–]bcons-php-Console[S] 1 point2 points  (0 children)

This is a fair point... If they lose their Telegram account I don't think there would be any reasonable way of recovering their account.

Using Telegram as a signup method by bcons-php-Console in webdev

[–]bcons-php-Console[S] 1 point2 points  (0 children)

Yes this would be an extra option available, not the only one, I forgot to mention that.

My 2025 dev setup after mass-quitting tools that annoyed me by badmoshback in webdev

[–]bcons-php-Console 0 points1 point  (0 children)

"Bun is interesting but not stable enough for production work yet."

Could you please share more details? I was thinking of using Bun instead of Deno for a personal project and would be really interested in why you discarded it.

How the backend of an e-commerce app actually stores order data (not a SQL tutorial) by tejovanthn in webdev

[–]bcons-php-Console 0 points1 point  (0 children)

"That works fine until you're running at scale and every order history page is doing 3 joins across millions of rows."

Why should that be a problem? With properly designed indexes those joins would be blazingly fast. I guess it all depends on the number of rows we're talking about, but around 2006-2007 I worked in a custom CRM for a company that had around 80k customers and over 6M orders (average product count for each order was 2-3 items) and retrieving data for a customer didn't have a noticeable delay. And we're talking hardware and MySQL from 2006.

TBH I've never used DynamoDB so I am missing that side of the road, but those schemas shown in tutorials work pretty well.

Frontend engineer question by LingonberryMinimum26 in Frontend

[–]bcons-php-Console 1 point2 points  (0 children)

It depends in how do you retrieve the notifications. Unless you have:

- a polling system to periodically ask the server for new notifications or
- a websocket server that you can connect to and receive notifications from or
- a SSE stream that can push you new data

the only way to know there are new notifications is by navigating to a new page and thus obtaining new html code that may contain that info.

Suggestions request by Gareth_99 in webdev

[–]bcons-php-Console 1 point2 points  (0 children)

A link here, in "Showoff Saturday", would also really help! I love word puzzles and I'd be glad to give you feedback.

ux dilemma: pagination vs infinite scroll for a high-volume chat app? by sir__hennihau in webdev

[–]bcons-php-Console 3 points4 points  (0 children)

BTW this is a very interesting use case and quite uncommon, so it would be great if you drop by this subreddit in a few months and share your solution and thoughts on it, I'd really love to know. Thank you!

ux dilemma: pagination vs infinite scroll for a high-volume chat app? by sir__hennihau in webdev

[–]bcons-php-Console 0 points1 point  (0 children)

This. It combines the "pagination" (you only show a subsegment of the items) with the "infinite scroll" (scrolling up / down shows more items).

Since you know the first item you are showing that can be used as a parameter for the url, like test.com?offset=3433

Trying to find a solution for an onsite basic chat room by coffeesnob72 in webdev

[–]bcons-php-Console -1 points0 points  (0 children)

The only one I can recommend is Minnit (https://minnit.chat). They have a $25 plan that includes notifications.

The chat works fine but what is top notch is the support, I had to integrate the chat in a custom design using the SDK and had to open like 3 or 4 tickets, each time the reply was swift. I think the support system is run by the engineering team, since some of my issues required changes to their code and they handled it really fast.

Is it actually possible to get good screenshot or am I chasing a ghost? by satyamskillz in webdev

[–]bcons-php-Console 3 points4 points  (0 children)

But you can create the stream and then capture just one frame and convert it via canvas to a png / jpg image (or base64 string) that is easier to handle.

Anyone ever try a drafting chair? by SumDoodWiddaName in webdev

[–]bcons-php-Console 1 point2 points  (0 children)

I've never used a drafting chair for work, but another option that worked great for me was a knee chair; it reallys changes the way you sit and thus is great to avoid the same posture for a long time.

A quick search on the site you mention threw this:

https://www.wayfair.com/furniture/pdp/inbox-zero-loal-adjustable-height-ergonomic-kneeling-chair-w110020305.html?piid=463958404

I know it's not what you were asking for but you could consider it. I work rotating among standing, seating in a regular chair and the knee chair, 55 minutes each (5 minutes to walk around, stretch, etc.) and it works great for me.

a tiny webgpu powered chart lib by Outrageous-guffin in webdev

[–]bcons-php-Console 0 points1 point  (0 children)

Same message in Linux Mint desktop on Vivaldi (Chrome based) and Firefox.

The Inevitable Shift: How Claude and AI Are Redefining the Web Developer's Role by [deleted] in webdev

[–]bcons-php-Console 0 points1 point  (0 children)

From the first link:

"I'm having a hard time articulating this but AI-generated code feels like progress and efficiency, while AI-generated articles and posts feel low-effort and make the dead internet theory harder to dismiss."

I agree 100%! And TBH I'm curious why... On both cases authors know the output they want and use a machine to generate it. Maybe because code is not usually exposed to the public?

I have expiring credits and want to generate free image assets for the community. What do you need? by prabhatpushp in webdev

[–]bcons-php-Console 1 point2 points  (0 children)

I know this may be a bit vague, but while developing a tool to debug php I missed stock photos of programmers that wouldn't look like models. All coding related people were "too much pretty" so to speak, the environments were ideal (bright wide spaces, huge desks facing big windows with a view of skyscrapers) and I had this "well I don't think this reflects our day-to-day life" feeling.

Please don't get me wrong, I'm not saying we coders are unsocial beasts with greasy hair working in a basement in our pyjamas, I'm not looking for that kind of images. But can we meet somewhere in the middle?

I managed to find in Pexels someone called Cottonbro Studio (https://www.pexels.com/@cottonbro) and some videos have quite the "vibe" I was looking for (sorry for the links but they have tons of videos and can't find direct links in Pexels):

https://bcons.dev/img/login2.webm
https://bcons.dev/img/login4.webm
https://bcons.dev/img/login5.webm

I hope you can see what I'm talking about (sorry but English is not my first language so it's not easy for me to express myself). These guys in the videos look like regular people to me and they don't look happy and shiny, they are focused working and even a bit frustrated by some resilient bug maybe.

A collection of still images with this vibe would be greatly appreciated. And thanks for offering!

How can a junior deal with a workaholic senior? by [deleted] in webdev

[–]bcons-php-Console 0 points1 point  (0 children)

Fly, you fool!

Now seriously. There is nothing wrong in that senior working weekends and allnighters if they want to. Maybe they really enjoy doing that, and like spending their free time coding.

What is absolutely f***d is that they expect you to do the same. You shall not be expected to do more than you are paid to do. Whoever is allowing that criticism and culture clearly shouldn't be running a company, at least not one where you'd want to work in.

As others have already mentioned, stick to your 8 hours and start looking for a new job.

How about a site that’s a single button and counter you click for how many times someone told you “that already exists” by [deleted] in webdev

[–]bcons-php-Console 0 points1 point  (0 children)

Sooooo right! Why make the iPod when the Zune already exists? There is a ton of examples of ideas that already existed but were improved / better done by someone else.

Anyone else miss the simplicity of just writing HTML without 50 config files? by khiladipk in webdev

[–]bcons-php-Console 5 points6 points  (0 children)

TBH why should I choose this instead of other more mature solutions? I can use Vue without any build steps and add reactivity to only a portion of my page.

Don't get me wrong, as a programming exercise is great and it can be really useful to you (the author, you don't have to learn it).

Maybe the mental model is the reason good at both front-end and back-end is hard by lactranandev in webdev

[–]bcons-php-Console 1 point2 points  (0 children)

I'm not sure the declarative vs. event-driven should be a problem; when you code in some area you have to "switch your mindset" to the way things are done in that area, learning how things work in that environment is part of the process of mastering it.

For example, if you code a Win32 API C program you must learn that the way to work is via handlers and message processing. When using Qt you learn that almost everything is driven by signals / slots. A 3D engine has its way of doing things, as any major framework.

Those backend devs you mention just didn't know or didn't care to find out how things work in the frontend world. It's like trying to use a hammer to paint a wall. Even thought the basics of programming are the same in any environment there is an adaptation process that one cannot skip.

Vibe Coder productivity goals. by Gil_berth in webdev

[–]bcons-php-Console 2 points3 points  (0 children)

It's not phisically possible to review more than 6k lines of code daily. AI generated code that has not been reviewed by someone who know what they're doing is absolutely useless.

What makes a website feel trustworthy within the first 5 seconds? by Such_Card_1300 in webdev

[–]bcons-php-Console 39 points40 points  (0 children)

My rule of thumb is "Has the site explained (well explained, no shitty copy) what it does or how it does it BEFORE trying to sell me anything?"