Implicitly lazy static members in Swift

The static property defines a “type property”, one that is instantiated once and only once. As you note, this happens lazily, as statics behave like globals. And as The Swift Programming Language: Properties says: Global constants and variables are always computed lazily, in a similar manner to Lazy Stored Properties. Unlike lazy stored properties, global … Read more

Hibernate lazy-load application design

As we all known, hibernate tries to be as non-invasive and as transparent as possible I would say the initial assumption is wrong. Transaparent persistence is a myth, since application always should take care of entity lifecycle and of size of object graph being loaded. Note that Hibernate can’t read thoughts, therefore if you know … Read more

Clarifying terminology – What does “hydrating” a JPA or Hibernate entity mean when fetching the entity from the DB

Hydrate began as a term for populating an instantiated (but empty) value-object/model from a db, (specifically in Hibernate.) Various other ORMs and tools like BizTalk use Hydrate and other related terminology, (e.g. BizTalk uses the term Dehydrated to mean an instance is available but not yet populated.) Personally I’m averse to redundant terminology overhauls, populated … Read more

What is Lazy Loading?

It’s called lazy loading because, like a lazy person, you are putting off doing something you don’t want to. The opposite is Eager Loading, where you load something right away, long before you need it. If you are curious why people might use lazy loading, consider an application that takes a LOOOOONG time to start. … Read more

How to load images dynamically (or lazily) when users scrolls them into view

Some of the answers here are for infinite page. What Salman is asking is lazy loading of images. Plugin Demo EDIT: How do these plugins work? This is a simplified explanation: Find window size and find the position of all images and their sizes If the image is not within the window size, replace it … Read more

Generate a routing module while creating a module in angular-cli

I was searching about this a bit and found some article which has a very good explanation for different kind of commands. The Ultimate Angular CLI Reference So basically, there’s no separate command to create routing.module file. But, that can be created while on the creation of the module: ng generate module [module-name] –routing or … Read more