29,024 reputation
453102
bio website
location
age
visits member for 3 years, 10 months
seen 7 hours ago

Apr
8
comment Is it wrong to have HTML strings within PHP objects, or is it only wrong in controllers?
Burning someone's house down is wrong. Choosing whether to embed HTML in strings is a preference.
Apr
4
comment Are there flavours of OOP where some or all of the SOLID principles are antithetical to clean code?
How are you defining 'clean code'?
Apr
4
comment PHP coding practice
@HerrSerker There is no 'debate'. No ones saying you can't mix and match PHP and HTML if you want. I'm just saying I don't like it for the reasons mentioned above. If you disagree you should add your own answer rather than continuing to use the comments.
Apr
4
comment PHP coding practice
@HerrSerker and as I said before, I don't like it. I've worked with CMS's that use PHP as the templating for their view generation. I just don't like that. I find it very messy. I use templates that only require basic substitutions (very minimal 'overhead' to the app). There is code generating the output, but the HTML comes from, as best as is possible, simple template files.
Apr
4
comment PHP coding practice
@HerrSerker and I think intermingling PHP with HTML isnt any good from a programmers stand point. I don't like application logic intermingled with the display. I keep code as code, and markup as markup.
Apr
3
answered PHP coding practice
Apr
3
comment Is there are problem holding large numbers of open socket connections for lengthy periods of time?
Thousands shouldnt be a problem, thats essentially what a lot of node.js apps and game servers do.
Apr
2
comment How to handle or prevent all Admins and users being removed
Please clarify - are you trying to always ensure that an admin user is in your application's user table even if someone manually deletes all entries in that table via SQL command? Or are you just trying to prevent all admin users from being removed via your application's normal interface?
Apr
2
comment Why doesn't MySQL have an explicit “No Limit” option for queries?
I don't think its very reasonable to expect MySQL to change their query language because of how some tools choose to implement a feature.
Mar
28
comment Should static data be stored in a database or somewhere else?
I don't think there's a clear 'should' here. You've provided little information about both the amount of data, its nature, and how it is used. I've done all of the above in the past... which route you go really just depends.
Mar
27
comment PHP Code base design: Single “queries.php” file, or spread queries across different php files/classes?
Its not typical that I have a one-to-one dynamic between classes and tables like that. But in general I keep as much SQL in the business logic classes as I can. If you were to look at how I arranged things in code, my 'controllers' arent usually even aware that a database is being used. All database queries are done inside business classes.
Mar
27
answered PHP Code base design: Single “queries.php” file, or spread queries across different php files/classes?
Mar
26
comment Dividing database between MySQL and NoSQL
What are you finding the limit to be w/ MySQL? Are you sure you've used its capabilities to the fullest?
Mar
25
revised How to deal with a personal excess of meticulousness
added 133 characters in body
Mar
25
comment How to deal with a personal excess of meticulousness
@whatsisname You are right on the money noting that its often a form of procrastination.
Mar
25
answered How to deal with a personal excess of meticulousness
Mar
24
comment mysql, store a single piece of data per row
Far too little information here. It may be effective, it may not be. It depends on what you are trying to accomplish.
Mar
21
comment Is storing software in the cloud with reputable vendors secure?
I seriously doubt the actual vendor would steal content. Whether someone could get unauthorized access to it is a whole 'nother issue.
Mar
21
answered What are the harms of a cowboy coding style on a small personal project
Mar
21
comment What are the harms of a cowboy coding style on a small personal project
It really depends on what you specifically mean by 'cowboy coding'. There are as many definitions of that term as there are programming languages.