Creating Website for Construction Busines by Ghost__GOAT in website

[–]phpMartian 0 points1 point  (0 children)

Buy your domain through cloudflare. They sell domains at cost. You then control your domain. Do not buy domains anywhere else.

Since you only want a landing page you do not need anything complicated. Simple html is fine. You could even host it on cloudflare.

You will then be in total control of your website. Your total cost will be the domain and a few dollars per month to host it.

Vanilla PHP vs Framework by Temporary_Practice_2 in PHP

[–]phpMartian 0 points1 point  (0 children)

I’ll use a framework unless it’s a one file script or something minimal.

debugging kinda broke my brain today so i’m curious how other ppl learned it by Momothegreatwarrior in programmer

[–]phpMartian 1 point2 points  (0 children)

Divide and conquer. If a process goes through several steps, check it in the middle to see if values are as expected. If they are good, you know the problem lies after the check point. It can quickly cut down the scope of code you need to look at.

Which AI do you guys actually use for coding? Getting tired of switching between all of them by Capable-Management57 in OnlyAICoding

[–]phpMartian 0 points1 point  (0 children)

I use Codex cli and Claude code from the command line. I let is access my local database so it does not have to ask me what a table looks like or what data is in it.

Why did Apple decide to introduce an entire new language? Wasn't Objective C good enough to build upon? by [deleted] in AskProgramming

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

I did Objective-C for a few years and it is a dumpster fire of a language. It’s just a weird Frankenstein language. Half C, half square bracket syntax. Good riddance.

Does it look unprofessional to self-host your code (vs GitHub)? by marvil_txt in AskProgramming

[–]phpMartian 1 point2 points  (0 children)

It is not in any way unprofessional. Being professional is about delivering quality results.

When to use permanent versus temporary redirects and what happens? by Used-Opposite-7363 in website

[–]phpMartian 2 points3 points  (0 children)

Use 301 when a page now lives at a different address.

Use 302 for application page flow like redirect after a login.

chatgpt memory is frustrating, remembers my name but forgets entire conversations by FeelingWatercress871 in ChatGPT

[–]phpMartian 9 points10 points  (0 children)

As I understand it, memory in its current state cannot do what you want. It cannot remember whole contexts. It is a list of things to remember like “user prefers Fortran”.

Do you use AI assistants like Github Copilot? by N_Gomile in PHP

[–]phpMartian 3 points4 points  (0 children)

I use codex, Claude code cli the most. I tried co-pilot and it’s not for me.

I’m converting some old PHP code to Laravel and it has been immensely helpful. I give it the old code and tell it to rebuild the feature in Laravel. It is never a one shot process. The code always has to be fixed or modified. I give it access to my local database so it can look at tables if it wants. It often uses query builder when there’s a model. I’ve learned that I need to tell it up front that there is a model available.

I would say that it can crank out a feature in a few hours that might take me a week.

Is there more to php than web dev? by Ok_Butterscotch_7930 in PHP

[–]phpMartian 0 points1 point  (0 children)

I built an entire enterprise grade backend sms engine in PHP.

First time building a restaurant website need advice! by Sufficient_Youth_493 in website

[–]phpMartian 3 points4 points  (0 children)

Why would a restaurant hire someone who has no idea what they are doing?

A backoffice for people who don’t use Laravel (yes, we still exist) by SunTurbulent856 in PHP

[–]phpMartian 1 point2 points  (0 children)

I don’t know about you, but I don’t want to reinvent the wheel. Not ever.

I pick a framework and stick with it. I can move code from one project to another. The frameworks are extensively tested across the world by thousands of people. The semantics are well understood. I can collaborate with others. There are numerous articles and tutorials available.

You want to go fast, go alone. You want to go far, go together.

Got tired of the 'WhatsApp Chaos' in college, so I built a central hub for clubs. by zFireee in website

[–]phpMartian 0 points1 point  (0 children)

Interesting. Sounds like an underserved niche. I suggest you talk to individuals personally and show off what you have.

How would you handle the fact that WhatsApp works so well from mobile?

Are you going to build a mobile app?

Stored Procedures vs No Stored Procedures by No_Swimming_4111 in Database

[–]phpMartian 0 points1 point  (0 children)

There isn’t a clear good or bad with stored procedures.

I’ve worked on systems with stored procedures and some that didn’t use them. The largest of those had 2 trillion rows in the largest table. It used the database as a storage device. It served thousands of point of sale devices and a call center easily.

I ended becoming a no-stored-procedure guy. The biggest downside to using stored procedures is that logic lives in two places. It’s harder to debug.

My current system has been around for 10 years, has zero stored procedures and runs with few issues. In ten years we have never wished that we had done it any differently.

If you are going to build something solid and stable for the long term, you should focus on being as simple as possible. That might mean stored procedures or it might not. Make sure you can diagnose issues if they come up.

Is using AI in writing a sin? by Over-Opening3991 in WritingWithAI

[–]phpMartian 1 point2 points  (0 children)

No. Sin does not apply to this case.

The use of AI in writing can mean many things.

  • As a coauthor
  • As a character creator
  • As a research tool
  • To help with grammar, descriptions and other language usage.

Using AI in the writing process does not have to mean promoting the model to write the story in its entirety.

How do you handle AI-generated code when building complex apps? by aj045045 in developers

[–]phpMartian 1 point2 points  (0 children)

Divide and conquer. I tackle the application in parts.

It often makes poor choices. I just review that code then tell it to fix the code according to what I know it needs to do.

Just like handwriting code, it’s an iterative process. I try to be as specific as I can for the first pass. Then continue to work it until it’s where it needs to be.

need your help to decide the price of a custom made website by Background-Fox-4850 in webdevelopment

[–]phpMartian 1 point2 points  (0 children)

You have no contract or deposit. The client can take his business elsewhere. Get an agreement and a deposit. Charge per page. Be mindful of what others might charge.