terminology – What’s the term for this illustration style common in MMOs/RPGs?

Often I was asked for the “style”, but I am not sure how to describe it. I just say “mix of anime and realism”. But what is it actually called, a style like this example:

Illustration of a fantasy character

It’s popular and you see it in most of all mmo/rpgs. I know that it’s called “stylized” in 3D-Texturing. But how would you call that typical style like in the link above (not meaning the clothes or what it expresses do be, its about the illustration and character style. Like anime, Fortnite (as it has very unique style) and so on)

coding style – Which approaches are exists for using of possessive case in variables/classes/methods naming?

In variables/classes/methods naming, sometimes “of” preposition is omitted and word order changing, for example:

“Absolute path of source file of entry point” -> “entryPointSourceFileAbsolutePath”

Now I am considering the renaming of above variable to:

absolutePathOfSourceFileOfEntryPoints

Which other approaches exists for using of possessive case in variables/classes/methods naming?
And also, what the spread of approach with omitting of “of” preposition and word order changing, like “entryPointSourceFileAbsolutePath”?

javascript – Which coding style pattern is recommended?

I know this question may sound weird but I couldn’t find the correct approach.

So my question is: In a big project we have various different smaller modules/components. Let us suppose “minimap” component. There are two ways we can write this.

First:

Where we have one index file and we are exporting same class as the name of component itself:

export class Minimap {
    //code
}

enter image description here

Second:

Where we have index file and another file with same name as component but from index file we are exporting everything inside that component like:

export * from './minimap';
export * from './types';

enter image description here

So my question is:

Which style should be preferred and where?
Does following any of this style will give some benefits during build creation of an Application, if not why?
I am really eager to know the pros/cons of these two approaches.

Hope I am able to express my intention here. Thank you in advance!

How do I inject css classes to a rendered field with a view style?

I maintain a module that provides several views styles. I have been unable to figure out how to get the fields where a users custom css entered in the views UI is then output with the view when I have to use style_plugin->getField (Drupal 8) or style_plugin->get_field (Drupal 7). It returns a “rendered” field, but that rendering does not include css additions added in the view settings. Secondarily, I’d like to inject some css classes for some of those fields (img styles added as a class to the img tag) but can’t seem to figure that one out. I don’t know of a function from views that would return a render array instead of the rendered output. I’m not sure what I’m missing.

Here is the Views UI:
enter image description here

This css class “hello-world-field” is not in the output code at all.

style guide – Design System rules

I think the days of strict spacing rules in style guides worked well when the screen sizes and resolutions on devices were not as diverse as it is today. But with responsive web design the main motivations of setting up design systems, it is more advantageous to have design system rules based on proportions and ratios rather than absolute values, because you can’t scale or adapt to different displays and devices very well that way.

But it is also worth taking into consideration whether you are looking at spacing as an isolated instance of design system/style guide rules or if there are other aspects that are also set in stone. I think you’ll find that strict spacing rules will have an impact on other parts of the design system as well, so I would expect that if you set very specific rules for spacing then you will also need specific rules for UI component dimensions so that the spacing rules will work well.

When you say that your “company has multiple in house applications in development”, I assume that these are internal facing applications that are probably deployed within a standard operating environment (e.g. company desktop machines and laptops that are similar enough), so it could make sense to use more strict rules when there are less variables to consider and deal with.

As usual, it is also important to consider a design system/style guide as a product or service, so it is good practice to ensure that the product or service is fit for purpose for the users (i.e. the designers and developers).

Replace word and add style Javascript snippet in Elementor: Hello WordPress Theme

I’d like to replace the word "Product" for the word "Ingredients" and make it red in this page (https://shop.echemco.com/product/product-test-01/). I’m using Elementor with wordpress theme Hello and this is the code I’m using. I tried putting that code in an HTML module and also in the functions.php file (none of them worked):

$('h3').each(function() {
   var text = $(this).text();
   $(this).html(text.replace('Product', '<span style="color: red;">Ingredients</span>')); 
});
<h3>Product Information</h3>

Thank you in advance!!!

coding style – Python: Class vs NamedTuple vs Hybrid vs DataClass

So all four of these approaches to structure data on their surface work more or less the same to keep data well structured.

Are there any reasons, be they hidden performance issues/enhancements, stylistic preferences, or just plain ol’ pythonic/un-pythonic ways of doing stuff to prefer one approach over the others?

from typing import NamedTuple
from collections import namedtuple
from dataclasses import dataclass

# Normal class
class X:
    def __init__(self, a, b):
        self.a: int = a
        self.b: int = b

# Normal namedtuple
Y = namedtuple(
    'Y',
    'a b'
    )

# With Inheretence
class Z(NamedTuple):
    a: int
    b: int


# Dataclass
@dataclass
class A:
    a: int
    b: int

All declared the same way

x = X(1, 2)
y = Y(3, 4)
z = Z(5, 6)
a = A(7, 8)

Accessed the same way

print(x, x.a, x.b)
print(y, y.a, y.b)
print(z, z.a, z.b)
print(a, a.a, a.b)

With basically the same results

<__main__.X object at 0x7c77f9b32e10> 1 2
Y(a=3, b=4) 3 4
Z(a=5, b=6) 5 6
A(a=7, b=8) 7 8

How to change the escape style when dropping paths into Terminal

If I drop a file from Finder (or another file source) into the Terminal, the system helpfully escapes characters like spaces: Dropping a file named /Lorem Ipsum.txt yields /Lorem Ipsum.txt.

I would like to change this behavior to use quotation marks instead, so that /Lorem Ipsum.txt would yield '/Lorem Ipsum.txt' instead (note the single quotation marks and the missing backslash).

Is there a way to do this using the standard Terminal.app? If not, is it maybe possible with iTerm or something else?

gaming style – Advice want to Start Playing Again! Played as an Intermediate

So I used to play a while back ago. Was never that much into it. I actually used to think it was kind of stupid but as of late have been thinking about it more and more. At times it used to bore the crap out of me but when you’d get into it time used to fly by.

I played with some guys who were jerks and used to horse around a lot but would still get into it. I have a good enough idea of what to expect because of my experience and what I was exposed to. Just wondering if there were any ideas on what could help or questions, or thoughts etc.

I’ve already mentioned it to some folks. As far as planning goes, who’s going to DM and how the group structure should work for those not sure what to expect.

Once again I was never that into it. I’ve only played with one group but I went to shops and played as a child and it had a really lasting effect on me. So I want to take it slow and do it the right way.

The challenges I face trying to play are my culture. Drinking, girls, first generation-hispanic materialistic people. They’re some talented people, they have issues like everyone. Just wanted to try something different.

Maybe some guidelines, tactics, practical knowledge or anything that can contribute to the dynamics of our group. I’ve done limited research but my memory is hazy. Have already bought the materials and want this to be a memorable experience. Thanks and any comments or feedback would be much appreciated.

chart js histogram style

I’m using chart js + Angular. Have problem with legend and data labels above the bars.
What should I do in order to add distance between legend and these labels? If legend is hidden, bars height changes and labels hides out of canvas as well.
enter image description here
enter image description here

this is the code ->
enter image description here