Skip to content

u/RandyHoward

In this archive from Oct 2010 to Sep 2026

4
posts
892
comments
1
media
4.6k
score
5 saved before deletion

No real way of doing this. If they own the server, they can access and modify anything on it. What I would probably do is build the application in a way that the business logic lives on your server, and the code that lives on their server just makes API calls to your server. That's about the only technical way you have to protect proprietary code. Besides that, they sign contracts and a lawyer protects you by suing them when they breach the contract.

1 points

Same. I've been doing this for 20 years and I didn't start using phpstan until last year. Had never even done any formal unit testing until last year either. I'm entirely self taught and all the companies I've worked in never did any of these things either. I even helped build a business that we sold last year to the company I'm now working for. The team I'm in now showed me all of these tools to improve the codebase and I've fully embraced them now.

2 points

Yes, but it seems like I might catch my mistakes faster than you are. I don't wait until I have everything written to start testing, but it kinda sounds like that's what you're doing. If I make a call to a model method, I test the result of that call right away, I don't wait to test it until I've programmed what I want to do with the result. Every time I add something I test to make sure I'm getting what I expect. It's much easier to test it piece by piece as you go than wait until the end and try to figure out where things are going wrong. Of course I do end to end testing when I'm done too.

2 points

As a senior dev, this is the kind of thing I like to step into. You get to walk in there and be the hero by pointing out what's wrong, fixing it, and reducing downtime due to these problems. That's very hard to accomplish being in a junior role though. All you can really do in that position is be an advocate for doing the right thing. I would start first and foremost by pushing very hard to get them working with git. This can also turn into a real opportunity for you to demonstrate your knowledge and move up the ranks quickly by helping to improve their systems, but it's definitely not an easy road, and it very much depends on if they are willing to listen and take you seriously.

4 points

Yep. I'm in the US and had ownership in a company that we sold to a European corporation earlier this year. I'm now working full time for the acquiring company. They insisted on paying salaries commensurate with their own region, because it wouldn't make much sense for one guy in a company of 60+ devs to make significantly more. My salary decreased by about 35k (170k -> 135k). But the benefits are great, they fully pay for insurance at no cost to me and I can take more vacation time.

15 points

The amount of revenue doesn’t tell you a whole lot about the scale a system is handling either though. It can be selling 20M widgets at $1 each, or it can be selling 5 widgets at $4M each. Financial metrics are not a good indicator of the technical needs of a system

3 points

Well that's correct, it's not the memory that's actually needed by the processes, it's the garbage that's leftover in memory from those processes. I misspoke about it being the memory needed to run the processes, that's not what it is, it's just the crap that's left in memory from those processes. But it's not an accurate measure of the memory that the array itself uses. After all, they're the exact same array, and they'll have the exact same memory needs. The additional memory is a result of the processes being run to fill them, it's not the memory needed for the processes themselves, but the garbage that the processes leave in memory that would ultimately get cleaned up by PHP garbage collection.

2 points

Correct, but it has nothing to do with an array being inefficient. The operation to fill the first array is just filling the array with the same value over and over. It doesn't take much overhead to do that. The second one uses array_merge which must make comparisons on every key/value pair of the array, and that takes more memory to perform than just blindly filling array keys with a value.

-3 points

The result of both of these are just an array. The memory usage difference comes from the operations being run to fill that array. It doesn't mean that a PHP array is memory inefficient, it means that array_merge uses more memory to fill the array than array_fill does. And it should kinda be obvious why... array_merge has to make comparisons on the values to fill the array, array_fill does not.

6 points

Totally agree. The downfall of WPengine won't seal Wordpress's fate. The huge companies that are using Wordpress aren't just going to build a whole new CMS just because they can no longer use a specific hosting provider. It just doesn't make financial sense to do so. They'll get their IT teams to scramble and move to a new host. Absolutely nobody is going to switch platforms because of this, they're just going to change hosts. This kind of drama may have an effect on whether or not new sites choose to build with Wordpress, but it's not going to cause many existing ones to abandon the platform.

8 points

Plus some of those horror franchises that began in the 90s and 00s are still producing sequels, prequels, or remakes to this day. Some of these movies have been highly influential to the current success of the genre.

1 points

Can't agree. Final Destination, Blair Witch, The Ring, 28 Days Later, The Others, Cabin Fever, Shaun of the Dead, Scream, The Grudge, The Exorcism of Emily Rose, The Mist, The Descent... all big hits in the horror genre in the 90s and 00s, and quite a few more can be added to that list.

3 points

I don't think you can blame PHP's reputation entirely on WP like that. Wordpress is the reason PHP has the marketshare it does today, but Wordpress is not the reason that programmers who work in other languages dislike PHP.

PHP gets its reputation because of things inherent to the language. A lot of its bad reputation was formed before more modern features were released.

People hated that it wasn't object oriented when the majority of other languages were. PHP eventually did something about that, but the reputation was already formed. It also doesn't have great support for asynchronous programming, and that's another ding to its reputation.

PHP also puts a whole lot of focus on legacy support, and many aren't a fan of some of the legacy stuff in the language. That can be both a good thing and a bad thing though. Not many modern languages can support a 20 year old application that has never seen an update.

It's also seen as a beginner language, because it's fairly easy to get started and learn. That means there are a whole lot of people producing low-quality code because the barrier to entry is so low.

It's also got a lot of inconsistency in it. As an example, some function parameters are needle followed by haystack, and in other functions it's haystack followed by needle.

There's a whole lot of reasons why PHP gets the reputation it does, but it's reputation can't really be blamed on Wordpress. Wordpress is the reason PHP has the marketshare it does, and without Wordpress it's questionable whether PHP would still have the support that it does. Wordpress development in general is definitely bad, and has been since its inception. It's bad because of some of the decisions that were made for the Wordpress platform itself, and also because there are a whole lot of inexperienced people building things in Wordpress. But Wordpress itself isn't to blame for PHP's reputation.

8 points

Location: Ohio, USA

Remote: Yes, fully remote only

Willing to relocate: No

About Me:

I have 20 years of experience in the field, the first half was spent as a graphic / web designer. I transitioned from designer to front end developer, and eventually to full stack developer, about halfway through my career. Currently I am largely focused on back end development, but would welcome opportunities to get involved anywhere in the development pipeline, especially bringing my design experience to the table.

I prefer the LAMP stack, but listing all the frameworks and technologies I'm familiar with here would be too extensive. I've used or am familiar with most major frameworks, both on the front end and the back end. If I haven't used a technology you need, I am a fast learner.

Experience / Career Highlights:

Extensive experience with payment systems and subscription management, fraud detection and prevention, conversion rate optimization, custom CRMs and ops management, analytics dashboards, data scraping and reverse engineering, scalability for high-volume websites, data warehousing and ETL processes, API creation and consumption.

I spent a few years running a highly successful conversion rate optimization program for a network of high-volume supplement sites.

My biggest success was the last company that I led as CTO. I was brought on as full-time contractor in March 2022, and offered ownership as CTO in September 2023. The features I created drove investor interest, and led to the acquisition of the company in May 2024.

Current Availability / Situation:

After selling our business in May 2024, I am now working full-time, fully remote, for the acquiring company. So why am I seeking employment? Basically, I've been placed in a position where I no longer have influence over the product that I worked hard to build, and I am watching its release to market see delay after delay because the person who is now the lead on the product is not competent. The new product is riddled with bugs that were not present in the product I created, and I am not being permitted to help fix those problems. I'm frustrated and willing to entertain other opportunities.

3 points

Queries should not still be slow after all that has been done. If they are you’ve not done something properly. Caching is never the solution to a slow query, after all that query is still going to be slow every time the cache is refreshed

4 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.