« first day (1475 days earlier)      last day (3455 days later) » 

12:24 AM
Did anybody try to use linksfromdomainon bing.com lately?
If I enter linksfromdomain:website.com within the search field, there are a couple of sites I definitely never linked to (only appearing on the very last page).
 
1:21 AM
https://developer.wordpress.org/plugins/the-basics/best-practices/#boilerplate-starting-points
There's your LOLz of the day
 
 
7 hours later…
8:09 AM
@kaiser I did that once. Worst idea ever.
 
8:51 AM
boilerplate is quite a realistic thing
if you stop at

1. a consistent plugin header
2. class naming setup
3. get_instance() method

that's it.
 
queue holy war about (in)appropriateness of singletons
 
when was the last time your plugin was running multiple instances
i'd really like to see such a plugin. not sure i have seen one yet
 
for me the point isn't instances, but redundant and convoluted code implementing the singleton mechanics
 
true. but isn't it like total of 4-5 lines?
to clarify your intentions to the world
 
the code that doesn't exist has least bugs :) there is no point for class to contain singleton implementing code, completely irrelevant to its actual functional purpose
anyway, as above — just an automatic holy war topic :)
while we on topic of architecture
we discussed recently that Plugin/Container main class is "bad" and there should be Loader class whose purpose is, well, loading
so is it Loader/Container then? or Loader and Container? then how DI works? Loader gets passed Container instance?
 
9:13 AM
my head starts hurting looking at your last line
 
blame rest of the folks who pick on me for being behind architecture curve :)
 
why no code highlight? I feel like I've said that before.
 
Forces you to concentrate. :D
 
squirrel!
 
9:58 AM
@kaiser if person does not know what cloudflare is then he wo n't be able to answer too. This site and u ppl can block my account too. I don't think i will get answers here as ppl more interested in down vote rather than probing issue. If u or anyother person can't understand question they should ask what they couldn't understand. Anyways i have never got any answers from this site and this was my second attempt here , experience is same as last time. No answers but ppl will tell other nonsense things. Yes u can ban me I won't check this site ever again. — user995426 14 hours ago
 
 
1 hour later…
11:22 AM
For all the times i've pointed people who try and argue their question unclosed or upvoted to go to the meta site, few if any ever have
 
 
1 hour later…
I guess you could just answer by quoting this sentence.
 
1:43 PM
throw the brick, film it, put it on youtube, have it go viral, use advertisement earnings to hire professional to fix the issue
3
and new monitor. if you got left enough for more than one monitor — you got a business model there.
 
:D
 
if you don't — you are not a real business, you are a startup. proceed to raise millions of venture capital for monitors.
 
 
2 hours later…
3:30 PM
Template filter tickes #18859 4 years and #14310 also 4 years. Nice.
 
@kaiser I literally looked at those - and other - tickets about 10 minutes ago, getting kind of indignant about how bad the templating parts of WP suck...
 
Now I understand where the upvote of my answer came from :)
This was what made me look into if I needed to update the answer - I don't. Of course.
 
you are right :) this is where the circle is closing
 
we are all on template stuff today? :)
I may be some news, not for core of course
 
> I may be some news
?
 
3:47 PM
an utility class, I'm working on
 
ah, now I got you :)
 
4:12 PM
@G.M. I'm curious and interested, without even knowing what it is actually about
 
@G.M. only one? :)
 
too bad though one has even to utilize such things..
@all quick question, I'm the need of identifying template parts, for now I'm doing it pretty much like this:
	if (
		current_filter()
	) {
		$index = 4;
		$limit = $index + 1;
	} else {
		$index = 0;
		$limit = $index + 1;
	}

	$template_part_file = basename(
		debug_backtrace(
			DEBUG_BACKTRACE_IGNORE_ARGS,
			$limit
		)
		[ $index ]
		[ 'file' ]
	);
it's fast, takes about: 0.00003 s; memory consumption is about: 0.0002 MB
Now the question would be, am I missing something mayor here? Because otherwise this seems reasonable enough for me, at least for this project
 
oh dear
can I say Twig? I want to say Twig
 
@ialocin Yep, one this time
 
@Rarst you can, but it is to late on this one
@G.M. should probably be a reply to @Rarst, right?
 
4:25 PM
Oh yes, sorry @ialocin
@Rarst "only one" was for you :D
 
@ialocin what is that?
 
I got that :)
 
@G.M. how dare you :) no problem at all
@kaiser what exactly do you mean?
 
what are you trying to do?
$index = current_filter() ? 4 : 0;
$template_part_file = basename( debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS, $index +1 )[ $index ]['file'];
shortened - still I don't get what you are trying to do.
 
pretty much just implementing some template part specific hooks
 
4:29 PM
debug_backtrace() won't be available everywhere I guess. Reliability of it - I dunno.
That's why I was asking
 
luckily I have control over this setup
 
so probably I should just replace the get_template_part function with a custom one
@kaiser I know, but I never work under 5.4
actually 5.5 now
 
@ialocin if you can absolutely so. That mess has sense if you deal with code that you can't control
eg get_template_part is called by 3rd party
 
@G.M. not 100% certain I follow you here
never mind just had to read it again
 
4:39 PM
@ialocin I was trying to explain again :)
 
4:59 PM
if get_template_part just had generic hook(s)..
I feel like I'm slowly but steadily adapting to this rooms overall perception of WordPress, I guess before I wasn't ready to understand
but enough whining for today
 
post bashes DI Containers, ends up with “The Right Way” laughs nervously
 
The Java world seems to be divided into really modern development like Dart users and really, really old dev stuff that runs on XML and XSD like the Apache stuff.
 
the day I am writing 90–lines instances of a class I'm exiting this room and never coming back :)
 
Most of things in that article make me think "you are crazy, man"
> I believe this is how a proper object-oriented application should be instantiated
I have a very different concept of "proper"
A code that no one can read but you is not proper at all, IMHO
2
Also the other article about getters/ setters has interesting points, but things I can't be agree with.
> Objects are not data structures with attached methods
objects should be data structures or behavioural things
having setters in the latter is bad, but not in the first
however rigidly follow this principle means every class that needs a state also need a data structure as storage passed via composition. This is overwhelming most of the times.
 
6:14 PM
How do you display a dashicon using css :after? I tried just adding content: "\f344"; but it doesn't display properly.
Just displays as a little empty looking square.
Oh, I didn't even see their little blurb at the bottom.
 
 
1 hour later…
7:37 PM
if not anything else at least we have the carrot
 
oh, new dashicons site... I was just grumbling previous version sucked
 
8:31 PM
i do like this better, but wish it was more search-friendly in-page
if i search in page it actually kinda breaks the CSS
 
 
2 hours later…
10:42 PM
What is the license of the Dashicons?
 
Dashicons is licensed under GPLv2
 
just thinking about how you can license stuff like third party logo icons and how far a "do what you want" license applies
 
Good point
Maybe a honeypot? :D
 
;)
 
Is the logo actually protected?
 
10:59 PM
It's owned by the Foundation who owns the trademark. And they can restrict the use of the name and the logo. Example: *wordpress*.tld domain stuff.
 
hmm, but what about this:
> [...] it’s OK to use the WordPress or WordCamp logo as part of a page that describes your products or services [...]
Found that within the trademark policy: wordpressfoundation.org/trademark-policy
 
> Permission from the WordPress Foundation is required to use the WordPress or WordCamp name or logo as part of any project, product, service, domain or company name.
...
> We will grant permission to use the WordPress name and logo for projects that meet the following criteria:
> The primary purpose of your project is to promote the spread and improvement of the WordPress software.
> Your project is non-commercial in nature (it can make money to cover its costs or contribute to non-profit entities, but it cannot be run as a for-profit project or business).
> Your project neither promotes nor is associated with entities that currently fail to comply with the GPL license under which WordPress is distributed.
 
yea^^
 
So pretty much anybody who runs a Theme or Plugin business using the logo is violating those terms :D
The last time the site was update seems to be 2009 - assuming because of this:
> WordPress, freely available GPL blogging software with about 143,000 lines of code representing about 33 man-years of development. WordPress is available in 23 languages and has been downloaded about 18,000,000 times in 2009.
 

« first day (1475 days earlier)      last day (3455 days later) »