What is an antonym of a "wrapper function"? [closed] - terminology

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
What is an antonym of a "wrapper function"?
Is there a term to reference the function that actually does most of the work?
I ran into this as I was writing comments.
There's a function doXYZ(), doXYZ2() exposed to the users, but these functions are actually just wrappers and the real work is done in actually_doXYZ() for both of them, hidden from the users.
And I want to write in comments for actually_doXYZ() "This is ???? function for doXYZ()".
Does "Delegated function" make any sense?

No, I don't think is delegation. In OOP a wrapper is often used to decorate an object. When you think of a pizza you can decorate it with other tops and prize. Then you can run the outmost wrapper of the object to pass the object to the other wrappers and to sum the prize for the whole pizza.

Related

CSS methodology: OOCSS vs. BEM [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
Which one should I use, OOCSS or BEM, when you want to write clean CSS? Is there any reason that you may prefer to use one over the another?
At the end of the day you should know what your particular use case is and learn what works for you. Obviously if you're working for a company and they prefer one over the other you wanna go with that!
My team and I wrote out our own internal CSS namespace specifications which are based off of BEM. The reason we prefer BEM is largely because of how extremely self-documenting it can be. I can look at a class name and know everything about that class's element.
However, there's no right or wrong answer. As long as your code is self documented, clean, and easily maintainable. Use whatever standard you want.

Are variables commonly used in CSS? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
Modern CSS gives us the possibility to use CSS variables that we can reference in multiple other places.
To what extent do they differ from the variables within JavaScript?
Am I more performant when I set CSS attributes or values via JavaScript, or the opposite is the case? Is that a chicken and egg story, or is there a proven way to do that?
Yes, variables are generally used when you are developing something big and you don't want to repeat your reusable colors or any other properties. But if you're just starting then I don't think it necessary to use variables more. If you want you can but not necessary.
You may also find that in frameworks like bootstrap or material css variables are declared once and used in many places.
Usage of variables makes more sense when you are using any preprocessor like Sass or less or something else.

How to use 2 conditions in an if statement in html [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I've looked everywhere Google leads me and found no answers. Help? Also, another question is how do I make a condition to check whether a textbox is filled with something or is left blank. I'm sorry for the n00b questions. I'm really new to html and programming in general. Thanks!
HTML is a markup language and doesn't have if statements. You'd need to use JavaScript to check whether something has a value.
Check out MDN's article on if...else for more information.

User formatting for textarea [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
A perfect example is stackoverflow. When a user types a question, the textarea give the user basic formatting options such as bullet points, numbering, italicize, etc. How can I create a similar textarea? I am currently using html, css and php.
You can use javascript (or more effectively jQuery) to create your own textarea with this behaviour, or look at an existing package such as TinyMCE and configure it to meet your requirements (the approach I would suggest): http://www.tinymce.com/
Easiest way would be to use an editor like TinyMCE: http://www.tinymce.com/
There are others as well, but TinyMCE is what I see used most.

How do free webhosters enforce ads? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
How do those webhosting companies enforce ads on your page?
I'd love to enforce a specific piece of html code on a webserver.
So, how do they?
They might use append and prepend depending on the exact solution you are referring to.
You basically use it to call another file (html, php etc) which is appended or prepended on the page (At the top or botton).
I did it once years ago and it worked.
Maybe stick the adsense code in the appended/prepended file.
See: http://www.maheshchari.com/php-auto-append-prepend-file-using-htaccess/
James