CUTCODEDOWN
Minimalist Semantic Markup

Welcome Guest
Please Login or Register

If you have registered but not recieved your activation e-mail in a reasonable amount of time, or have issues with using the registration form, please use our Contact Form for assistance. Include both your username and the e-mail you tried to register with.

Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
PHP / Re: Why can't i find any project written in native code
« Last post by Jason Knight on 24 Mar 2024, 09:42:50 pm »
It's just commonplace to off the shelf answers, because off the shelf answers are inherently lazy. And scammy. If making something that's a big success were as easy as just grabbing an off the shelf answer, we'd all be billionaires.

And it's one of the many reasons 90%+ of "startups" built on hopes and dreams fail in their first year. People are always on the prowl for "easy" and most of the time "easy" is a SCAM.

There's a reason it's called "work", not "happy happy fun time"

It's all demagoguery and pandering based on -- to borrow from Ike -- apathy, ignorance, and wishful thinking.

Which is why most frameworks and solutions built with them -- and in fact most easy answers on the web -- have less legitimacy than your average 3AM cable TV informercial about "making money fast in Real Estate"

And like most frauds, the only place to really make money with them is to be one of the dirtbags peddling the SCAM to others. See Amway, Mary Kay, and Vector Knives.
22
But if the 'display: list-item' is not applicable to <li>s, that built-in counter does not work since it only increments on 'list-item' <li>s, and one has to reimplement that handling of nested lists and 'start' attributes using a custom counter. And because of lack of support for  'attr()' function in any but the most basic use cases, reimplementing all that becomes such a PITA.
The WHAT now? That's utter gibberish. It increments when you counter-increment which can be done on any element -- or not done for that matter. In no way, shape, or form is it tied to the parent tag or child where you're incrementing it.

Do you have example code of something akin to what you're talking about, because it really does sound like you don't even know how CSS counters work. Or are missing some essential part of actually leveraging selectors.

Especially since I have no clue what the devil attr() even has to do with any of this.

Wait, is your entire complaint that you have to make a new counter name when they're nested? Oh noes, teh horrurz.
23
PHP / Re: Why can't i find any project written in native code
« Last post by durangod on 24 Mar 2024, 04:58:10 pm »
Laziness. I think. And the fact people seem to be programmed to go to, and use a framework.

Im sure that is what they teach in schools as well, which is sad.  But there have to be others like DS in the industry that preach using native code and so logically im thinking there have to be projects out there.   If they were on github or some other kind of hub i wouldn't even know what to search for  "native html" "native php", no clue.
24
Hosting and Server Management / Order, Deny syntax deprecated
« Last post by durangod on 24 Mar 2024, 04:51:24 pm »
I just found this one of the phpbb htaccess files, i had no idea it was deprecated.  I dont often look at apache release notes, i mean who really does ya know, i guess maybe i should start doing so.   But otherwise unless there is an error how would anyone know, its not advertised. 

Code: [Select]
# With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from
# module mod_authz_host to a new module called mod_access_compat (which may be
# disabled) and a new "Require" syntax has been introduced to mod_authz_core.
# We could just conditionally provide both versions, but unfortunately Apache
# does not explicitly tell us its version if the module mod_version is not
# available. In this case, we check for the availability of module
# mod_authz_core (which should be on 2.4 or higher only) as a best guess.
<IfModule mod_version.c>
<IfVersion < 2.4>
Order Allow,Deny
Deny from All
</IfVersion>
<IfVersion >= 2.4>
Require all denied
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
<IfModule !mod_authz_core.c>
Order Allow,Deny
Deny from All
</IfModule>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
</IfModule>

25
PHP / Re: Why can't i find any project written in native code
« Last post by GrumpyYoungMan on 24 Mar 2024, 11:35:51 am »
Laziness. I think. And the fact people seem to be programmed to go to, and use a framework.
26
Quote
Honestly if you're screwing around with OL that much, it makes me wonder what the devil you're even doing in the first place. It SOUNDS like something bad. Why can't you use generated content? Is :after or :before really so hard? What are you even doing that would warrant a custom property with it?!?

Seems like you've only just skimmed through my rant and haven't actually read it  :( Using generated content is EXACTLY what I was trying to do, the problem is not generated content or whatever, the problem is that the default "list-item" counter takes care of a lot of things for you, like proper handling of nested lists and respecting 'start' attributes. But if the 'display: list-item' is not applicable to <li>s, that built-in counter does not work since it only increments on 'list-item' <li>s, and one has to reimplement that handling of nested lists and 'start' attributes using a custom counter. And because of lack of support for  'attr()' function in any but the most basic use cases, reimplementing all that becomes such a PITA.

Quote
But then I tell the art-{expletives omitted} pretending to be designers to go plow themselves when it comes to over-styling stuff like SELECT. It's LITERALLY the type of "artist under the delusion they're a designer" BS that has me forcing down the urge to deliver an open handed slap like Will Smith if you talk smack about his wife.

Overstyling is one thing, but just giving the <option>s some basic styling like background color, some border curvature on dropdown and maybe some icons for visual aids seems like pretty basic stuff that should be available out of the box in 2024, no?
27
PHP / Why can't i find any project written in native code
« Last post by durangod on 24 Mar 2024, 03:11:24 am »
Hi,

If using native php, js, html, css is the right way to do things, then why can't i find any project that does it that way?   

They all use Bootcrap, frameworks, OOP, or some other variation of such.   Why is there no project i can find that uses native code?    Its so frustrating because every time i need something i have to code my own version because there is not one that exists on the market that uses native coding... :(

Plus on top of that they use very dependency known to mankind.   This IMO is why such scripts are having to be rewritten every 10-15 years.   There are no rewrites with native code EVER, just updating.
28
PHP / Re: Checking key within a object property
« Last post by durangod on 24 Mar 2024, 03:07:03 am »
Yes sir i see it... thanks :)
29
PHP / Re: Checking key within a object property
« Last post by Jason Knight on 23 Mar 2024, 12:18:38 am »
property_exists('test'

Do we see the problem here? Do we?

Assuming test is a instance of Test, you'd want to pass the object test, not a string containing its name. Lose the single quotes around the object name. The way you wrote it, you're testing if "String 'test'" has the object property, instead ot testing the "Object test"

Now, assuming Test is the class, then you'd want 'Test', not 'test'... and that assumes you want to test against the class having the property, not an object instance.
30
PHP / Re: Checking key within a object property
« Last post by durangod on 22 Mar 2024, 11:17:12 pm »
thanks i had not considered doing it in two steps.  Thought about just a direct if statement on the ['data'] but that would just check the value and not what i wanted.

Appreciate the reply and help :)

I am working on a sms 2FA module and someone suggested i use OOP so i was playing around with it and i dont like it at all.  Dealing with just arrays is so much easier even if i get stuck on them sometimes..  :)
Pages: 1 2 [3] 4 5 ... 10
SMF spam blocked by CleanTalk

Advertisement