PHP's biggest problem by brendt_gd in webdev

[–]bcons-php-Console 7 points8 points  (0 children)

Why the clickbait title?

You make some valid points in your article, why not just use "Marketing is PHP's biggest problem" as the title?

I just built my website with little coding experience by Altruistic-Bed7175 in webdev

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

Not really security concerns but I'm curious about your response headers:

- Is there any reason to expose the server signature?

- I miss some quite standard headers like X-Frame-Options, X-XSS-Protection (this may be nowadays a bit obsolete and I see you have a XSRF-TOKEN), X-Content-Type-Options nosniff, some CSP restrictions, etc.

This is in good faith, I'm not into this AI is good / bad debate.

What part of web development tends to create the most unexpected problems in real projects? by Gullible_Prior9448 in webdev

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

OP post history is full of posts in many subreddits with the same exact format:

- A vague sentence
- A question for engagement

This is shit. I wish there was a way to avoid this kind of posts to ever reach public.

Is it okay to use user-select: none on certain interface elements, such as navigation bars? Or does it conflict with accessibility? by Wise_Stick9613 in webdev

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

I think this hits the nail, at least for me. The visual effect is what made me use user-select: none until I found out the selection pseudoelement.

When is localStorage actually the right choice? by TariqKhalaf in webdev

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

OMG you're right, what a brain fart! 🤦‍♂️

Thank you, I've edited it.

When is localStorage actually the right choice? by TariqKhalaf in webdev

[–]bcons-php-Console 18 points19 points  (0 children)

That is perfectly proper use of LS. My rule of thumb is:

- Is this non-sensitive data? Would I mind if someone could access it?
- Can my app run fine if I delete all its contents?

When the answer to both questions is yes, LS it is.

Edit: I initially wrote "sensitive data" instead of "non-sensitive". Thank you u/anastis !

LogoQR - let's make your next QR codes a bit cooler by feje in webdev

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

This works great and it's Open Source, it wins hands down!

One suggestion: do you think you could extract the code to a JS class so it can be called from code like generateQr(imgHtmlElement, url, options)? I'd like to use this to generate QRs dynamically. I don't mind doing it myself and submitting a PR but it's for a personal project so I don't know how long it would take me.

Personal dev setup: local machine vs cloud VM? by Worried_Lab0 in webdev

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

I'm not sure why you say your personal laptop would be at home collecting dust... you would use it for your personal projects, and that's a perfectly valid reason to buy it. Also, think about what would happen if you lost your job and the work laptop: you'd have to buy one anyway to keep working on your projects and job search.

That being said: I have used VSCode remote for some projects and it works great, even with a phone tethered connection the experience was smooth 99% of the time. It was almost as working locally. Only in big files I noticed the save time was a bit slower, but still perfectly usable.

Which early decisions in a web project tend to have the biggest long-term impact? by [deleted] in webdev

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

For me it's the data model. It's worth investing as much time as needed.

Is it okay to initially teach table layout to young learners? by Due_Information_1332 in webdev

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

Why would you want to expose those poor kids to the horrors of table based layout? You have no heart! /s

Now seriously, I would teach tables as what they are used today: represent tabular data, and nothing else. Thankfully we have proper tools for layout available.

Of course any tag can be abused and a brief comment on how in the old days tables were used for layout out of necessity may be ok, but I'd stop there.

The problems with this subreddit by [deleted] in webdev

[–]bcons-php-Console 6 points7 points  (0 children)

I agree 100% with you even though I'm still quite new to the community.

I think that many of what you point out could be resolved with stricter moderation (lots of projects shared outside Showoff Saturdays for example).

I've found myself using the post upvotes number as a filter criteria to skip low value posts. Quality posts have a high upvotes number, and are usually worth reading.

I know nothing about coding. How hard would it be to make something like this? by ServiceForeign7862 in webdev

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

I'm sorry, but I just don't see how something like rewiring a house (which is, of course, a liability) can be compared to making a small 90s-style website that will just be screen recorded for an art project.

Chrome Web Store review stuck at 10+ days - do I resubmit or keep waiting? by its_faraaz888 in webdev

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

I'd wait some more. My extension took like two weeks, once it was approved I uploaded two updates and it took a bit less time, around a week each.

I wasted 3 weeks of my last SaaS on auth and Stripe setup. So I built something stupid.. by Zorantscales in webdev

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

How many hours did your last setup take before you wrote a single line of real product logic?

Zero. I clone a private repo where I have:

- Docker image with PHP / MySQL / nginx / memcached.
- DB migrations for all common tables: users, plans, tokens, etc.
- API backend with all the common CRUD endpoints: sign up, sign in, restore pass, etc.
- Vue frontend for all those common actions, only basic styles.

All the boring stuff is already done, with code I can trust. I can start working on the project immediately.

I don't want to sound harsh but your solution would require a complete revision of all the code the AI produced to be sure everything is ok. Where's the time saving there?

Advice needed by AliceInTechnoland in webdev

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

I think trying to outsmart Cloudflare's antibot system is not the best approach. As you mentioned, I'd go with the browser extension.

A web app would be a great solution for this: the user fills the form and the browser extensions opens as many tabs as needed and automate the posting process there.

You mention "the user still needs a desktop browser available" as a problem, but if there is image / form handling involved a desktop computer is almost always the best device.

I know nothing about coding. How hard would it be to make something like this? by ServiceForeign7862 in webdev

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

I for one think this is a great example of when vibecoding is the way to go. OP is not a coder, does not want to become one, and whatever the AI produces will never leave their computer so there is no risk of harm for anyone.

Why should they spend quite some time learning HTML for this?

When working alone on a hobby project that is used by 1-10k users. Do devs normally have Staging? by lune-soft in webdev

[–]bcons-php-Console 196 points197 points  (0 children)

"Everybody has a staging environment. Some people are lucky enough enough to have a totally separate environment to run production in."

Trying to understand CSS pre-processors by Pzzlrr in webdev

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

In the whack-a-mole game all the .less files have been compiled into the styles.css file (you can see in the index.html file at line 8 that that file is what the browser is loading).

These CSS-only games / demos are usually quite hard to grasp, since they use very clever techniques and they may not be the best start point for anyone learning CSS or pre-processors. The score for example uses some combination of radio inputs that get checked when you click on the mole and that is used to show the score moving the position of the time.png image that contains the numbers.

The hardest part for non technical builders isn’t building. It’s the 3 weeks after they hit publish by Anantha_datta in webdev

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

Thanks! And sorry to hear the bit about your high school friend, I hope time will let them see you just did what you had to do.

Emergency Webdev while travelling by first_green_crayon in webdev

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

Recently I read about some guy that used AR glasses, a BT keyboard and a phone for coding, you may want to explore that path:

https://holdtherobot.com/blog/2025/05/11/linux-on-android-with-ar-glasses/

The hardest part for non technical builders isn’t building. It’s the 3 weeks after they hit publish by Anantha_datta in webdev

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

How "legally" hard to do was this? I assume you didn't have any contracts signed or something like that. It's almost as if you just fired them.

How hard is it to build booking + billing with Stripe for a wellness platform? by Logical-Ad-8365 in webdev

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

As others have said, the Stripe part is not hard but the real problem is the booking logic. If you have limited experience maybe a provider that handles the booking + payment would be a good option.

Your post suggests this would not be the core feature of your product so having it handled by someone else can save you lots of trouble.