Investor Relations

The aim is to ensure that our stock is given a fair valuation on the capital market. To this end we conduct an open dialogue with all market participants worldwide. We make available valuation-relevant information and report on our company’s upside potential on an ongoing basis.

Exploring new paths. Broadening horizons. Breaking down boundaries. This is what thyssenkrupp is all about. And being a global player, we don’t just help you to develop your mind. Find out about the countries in which we can offer you and your skills a new calling.

Let us assume that we’ve tried our hand at writing our own jQuery plugins at some point and we’re comfortable putting together something that works. It’s functional. It does what it needs to do, but perhaps we feel it could be structured better. Maybe it could be more flexible or could be designed to address more of the issues developers commonly run into. If this sounds familiar, then you might find this chapter useful. In it, we're going to explore a number of jQuery plugin patterns that have worked well for other developers in the wild.

Note:
This chapter is targeted at intermediate to advanced developers, although we will briefly review some jQuery plugin fundamentals to begin.

jQuery plugins have few concrete rules, which is one of the reasons for the incredible diversity in how they are implemented across the community. At the most basic level, we can write a plugin simply by adding a new function property to jQuery’s
jQuery.fn
object, as follows:

This is great for compactness, but the following would be a better foundation to build on:

Here, we’ve wrapped our plugin logic in an anonymous function. To ensure that our use of the
$
sign as a shorthand creates no conflicts between jQuery and other JavaScript libraries, we simply pass it to this closure, which maps it to the dollar sign. This ensures that it can’t be affected by anything outside of its scope of execution.

An alternative way to write this pattern would be to use
jQuery.extend()
, which enables us to define multiple functions at once and which sometimes make more sense semantically:

We have now reviewed some jQuery plugin fundamentals, but a lot more could be done to take this further.
A Lightweight Start
is the first complete plugin design pattern we’ll be exploring and it covers some best practices that we can use for basic everyday plugin development, taking into account common gotchas worth applying.

While most of the patterns below will be explained, I recommend reading through the comments in the code, because they will offer more insight into why certain best practices are applied.

I should also mention that none of this would be possible without the previous work, input and advice of other members of the jQuery community. I’ve listed them inline with each pattern so that one can read up on their individual work if interested.

Let’s begin our deeper look at plugin patterns with something basic that follows best practices (including those in the jQuery plugin-authoring guide). This pattern is ideal for developers who are either new to plugin development or who just want to achieve something simple (such as a utility plugin).
A Lightweight Start
uses the following:

Definition of
transformation

3
a
(1)
:
the operation of changing (as by rotation or mapping) one configuration or expression into another in accordance with a mathematical rule;
especially
:
a change of variables or coordinates in which a function of new variables or coordinates is substituted for each original variable or coordinate

“Good location (close to the Family Park and also to the center of Rust) The appartment is nice and cosy. It is much nicer in life than on the photos. It is well equipped, has everything you might need in an appartment. The host is really friendly and helpfull.”

Péter Hungary

“The home is amazing. We loved every minute of staying in this place and didn't want to leave. Every detail is well thought through and it has absolutely everything you might want or need. The car can be parked inside, which is also very convenient. Exceptionally clean. The communication with the hosts was always fast and the replied to all our queries really quickly. We were lucky to stay in this accommodation.”

Elena Australia

“Amazing fully equipped apartment with a short distance to the lake. We stayed 4 days here and we absolutly loved it. The owner is very helpful, we had all need to relax and just enjoyed the vacation. We will certainly return.”