| About Us | Contact Us | Privacy Policy | Join Us+ |

WorldTrueSight

Get the latest news and reviews about technology!

19 Sep 2019

S = Single Responsibility Principle
O = Open Close Principle
L = Liskov Substitution Principle
I = Interface Segregation Principle
D = Dependency inversion Principle

SINGLE RESPONSIBILITY PRINCIPLE (SRP) :

The single responsibility principle (SRP) states that every class or module in a program should have responsibility for just a single piece of that program's functionality.

Example:

BAD DESIGN :

SOLID Design Principles with Designs and Coding Examples

BAD CODE:

SOLID Design Principles with Designs and Coding Examples

GOOD DESIGN :

SOLID Design Principles with Designs and Coding Examples

GOOD CODE :

SOLID Design Principles with Designs and Coding Examples

OPEN CLOSE PRINCIPLE (OCP):

In object-oriented programming, the open/closed principle states "software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification"; that is, such an entity can allow its behavior to be extended without modifying its source code.

BAD DESIGN :

SOLID Design Principles with Designs and Coding Examples

BAD CODE :

SOLID Design Principles with Designs and Coding Examples

GOOD DESIGN:

SOLID Design Principles with Designs and Coding Examples

GOOD CODE:

SOLID Design Principles with Designs and Coding Examples

LISKOV SUBSTITUTION PRINCIPLE (LSP):

The Liskov Substitution Principle (LSP) functions that use pointers to base classes must be able to use objects of derived classes without knowing it. The Liskov Substitution Principle is a way of ensuring that inheritance is used correctly.

BAD DESIGN:

SOLID Design Principles with Designs and Coding Examples

BAD CODE:

SOLID Design Principles with Designs and Coding Examples

GOOD DESIGN:

SOLID Design Principles with Designs and Coding Examples

GOOD CODE:

SOLID Design Principles with Designs and Coding Examples

INTERFACE SEGREGATION PRINCIPLE(ISP):

Interface segregation principle. In the field of software engineering, the interface-segregation principle (ISP) states that no client should be forced to depend on methods it does not use.

BAD DESIGN:

SOLID Design Principles with Designs and Coding Examples

BAD CODE:

SOLID Design Principles with Designs and Coding Examples

GOOD DESIGN:

SOLID Design Principles with Designs and Coding Examples

GOOD CODE:

DEPENDENCY INVERSION PRINCIPLE(DIP):

The general idea of this principle is as simple as it is important: High-level modules, which provide complex logic, should be easily reusable and unaffected by changes in low-level modules, which provide utility features. To achieve that, you need to introduce an abstraction that decouples the high-level and low-level modules from each other.

BAD DESIGN:

SOLID Design Principles with Designs and Coding Examples
BAD CODE:
SOLID Design Principles with Designs and Coding Examples

GOOD DESIGN:

SOLID Design Principles with Designs and Coding Examples

GOOD CODE:

SOLID Design Principles with Designs and Coding Examples

What is Fibonacci Series?

Fibonacci Series is a series of numbers where the first two Fibonacci numbers are 0 and 1, and each subsequent number is the sum of the previous two. 

For Example:

0
1
1
2
3
5
8
13
and so on ...

JavaScript Code:

Fibonacci Series JavaScript

  • In JavaScript, Variable declaration is done by using var keyword, followed by variable name.
  • In JavaScript, document.write is the output statement.
  • In JavaScript, prompt is used to get the input from the user.
  • In JavaScript, function FuncName() {  } is used for creating a function.

18 Mar 2019

Disable Windows 10 Auto-Updates Manually


Disable Auto updates of windows 10

I found a simple way that help you out stopping/disabling auto updates of windows 10. Most of the people find auto-updating annoying and irritating, to disable them simply follow the snaps below.

AUTO-UPDATES DISABLING PROCEDURE 

1) Open RUN and type gpedit.msc, then click OK.

How To Disable Windows 10 From Auto-Updating

2) Double click on Computer Configuration and then administrator templates.

3) Double click windows components and search for windows updates, open it then open configure automatic updates.
How To Disable Windows 10 From Auto-Updating
How To Disable Windows 10 From Auto-Updating


4) A dialog box will be open select disable option at top left corner settings and simply apply and press OK.
How To Disable Windows 10 From Auto-Updating

5) Close settings and give your device a restart! 

3 Feb 2019

File Organization In Database[COMPLETE CONCEPT]

Database SQL Server

FILE ORGANIZATION:

           Storage and access method of a file is called file organization.

TYPES OF FILE ORGANIZATION:

1.Sequential File Organization
2.Direct access File Organization

SEQUENTIAL FILE ORGANIZATION:

When we have to access data in sequence.
Example:
Tape-drive. In tape drive if we want to access the 2nd video we have to go through the 1st then we can access the second one . We can’t jump directly to  2nd .
ADVANTAGE OF SEQUENTIAL FILE ORGANIZATION:
Sequential saves memory. Because there is no meta data (header/footer) with a single record.

USES OF SEQUENTIAL FILE ORGANIZATION:
Sequential file organization is helpful when we have to access the whole batch . i.e Electricity bills.

DRAWBACKS OF SEQUENTIAL FILE ORGANIZATION:
1.Time loss
2.Searching is difficult in Sequential file Organization
3.If we try to insert a new data we have to reorganize the whole data.
4.If we are searching a data which is not present in the records. It will search the whole data then tell that the data is not present.

DIRECT FILE ORGANIZATION:

Example:


Hard Drive.

ADVANTAGES OF DIRECT FILE ORGANIZATION:

1.Time saving
2.Searching is easy in Direct file Organization

TYPES OF DIRECT FILE ORGANIZATION:

1.Indexed Sequential
2.Hashing


INDEXED SEQUENTIAL:
           
Indexed Sequential is same as Table of Content in books.
HASHING:
   Hashing is a function but not a specific function. We can made our hashing function.

TYPES OF HASHING FUNCTION:

1.Division method
2.Folding method

DIVISION FUNCTION:

x mod y return remainder. If remainder of two numbers are same then it is called hashing conflict.

SOLUTION OF HASHING CONFLICT:

Add 1 to the remainder.

FOLDING METHOD:

You can fold a number to find that in which track the given record should go.

FOR EXAMPLE:

Suppose a record with Student ID 8530 & you have to use folding method to tell that  which hard drive’s track will hold this record ?

  8      5        3       0

            8       5
      +    3      0
      --------------
           11     5   <------- This record will save in 5th 
     ---------------
track in hard drive!

THANK YOU... 🙂

1 Feb 2019

Top 4 Niches For Blog/Website!

Top niches for blogging
Hello there, bringing you up the nicest niches(Ideas to blog) that you can start up your blog to have a good time through earnings and traffic.
Looking to start a BLOG? Don't know what topic to select? Here I came up with four killer niches that always grows up when people put efforts on to it means(Search Engine Optimized) all I did is gather the information around from other websites and search engines and find the most popular blogs and the reason of them for being popular so here I will share you the niches along reasons why they earn good and have good time,Below are some niches and reason why they always grows up but, can you grow up the right way? If yes then good else select your niche and check out my other SEO HELP for you and grow quickly.




TOP 4 NICHES AND REASONS:
Top Niches For Blogging

These are the 4 killers niches and the ideas among them and why I'm sure they will grow, find your niche with the reason!




  • TECHNOLOGICAL:
I ranked technology number #1, because today the world is being getting developed at its fastest when it comes to technology and everyday some technology comes around many companies introduce new tech based stuff. This is why this type of blog will ever have the benefit to be updated!
  • PHYSICAL TOOLS:
 Getting into it what I really mean by Physical tools? Any equipment that you create or purchase to sell that is they actually matter like clothes,bags etc etc are the fastest growing blogs/websites when it comes to online shopping, In this type of blog you don't need to wait for your blog to be old if you're selling something needy you will find people attractive, this kind of blogs always have fruitful results!
  • ONLINE TOOLS:
Make sure the only difference between Physical tools and online tools have that online tools don't have any physical appearance!
So why these blogs get high traffic ?
If you survey others website and gather some information about these websites they are always having good time serving/selling people their new great stuff. Lets take a example here of a computer/software engineer who is expert in his field, if he start selling his new helpful software that enhance other machines and shows up amazing tips and tricks everybody would love to get enjoyed by them!
  • EDUCATIONAL:
In my opinion, educational blogs are much more than to be ranked, these are all top blogs that literally help a lot they are on another level and these are the blogs which always having traffic no matter if you content is too old, student will always find it worthy and you will keep receiving the juice of your hard work on the content forever, as a student I know how much these blog literally help me!





IN LAST:

Selected your Niche? Don't know how to start a blog then click HOW TO START you may also like how to enhance blog ranking among other blogs and get more from here !
I believe sharing is caring so I share contents with you so may share this others, links are below...😊

30 Jan 2019

How To Add Reply Button In Comments

Add Reply Button Free Code!
Using a template with no reply button just not worth that much you exactly need for your blog. For Every single post not all people get what you exactly said them therefore, people may ask you relevant questions about it but wait... what if you cannot reply on them? or what if they can't reply to your important messages through comments box?Here for blogger I came up with this solution copy the code below and just exactly paste this in your HTML.



FOLLOW STEP BY STEP:

Copy the line of code below and search it in your HTML.

SIGN IN > THEME > EDIT HTML > CTRL + F and now search this code below.

<data:commentPostedByMsg/>


Now just below this line paste the following code given below as it is and the only thing is for you to do is change YOUR-BLOG-ID with your blog ID.


<a expr:href='&quot;https://www.blogger.com/comment.g?blogID=YOUR-BLOG-ID&amp;postID=&quot; + data:post.id + &quot;&amp; isPopup=true&amp;postBody=%40%3C%61%20%68%72%65%66%3D%22%23&quot; + data:comment.anchorName + &quot;%22%3E&quot; + data:comment.author + &quot;%3C%2F%61%3E#form&quot;' onclick='javascript:window.open(this.href, &quot;bloggerPopup&quot;, &quot;toolbar=0,location=0,statusbar=1,menubar=0,scrollbars=yes,width=450,height=450&quot;); return false;'>
<img alt='Reply To This Comment' src='http://1.bp.blogspot.com/-39DoCOYzEbQ/TtubLZruk2I/AAAAAAAAALs/qEonXrhGcqE/s1600/reply.png'/></a>


Click image to find how I done this
add reply section in comment section



IMPORTANT:

Changes YOUR-ID-BLOG with your Blog Id? Don't know where it is located comment below I will tell you, otherwise you are good to go! Please note that you may not be able to reply to other old comments on your post to make sure it is working try a test comment and find that button!

CUSTOMIZATION:

You can change the pic image by changing the URL given in the code and don't touch anything else!

25 Jan 2019

GENERATE SITEMAPS

HOW AND WHY TO GENERATE SITEMAPS.XML
why to generate sitemaps


Hello peeps, welcome back to another SEO content!

Sitemaps are having bigger impact on the number of indexing, google robots and crawlers do for your content to be displayed in the search engines !

If you are willing to increase your blog rank and want crawlers to index each web page of your blog, keep following post till bottom. ⇩


how we generate sitemaps in 2019











SITEMAPS:

Sitemaps or sitemap.xml are the best part of boosting your blogger rank as well as showing your data perfectly on the search engines, when search engines crawlers or Google robots crawls your data.

IN A NUTSHELL:

Making, generating sitemaps are beneficial for the growth of your blog, this increase the growth rate of blog as well as increase the rank of blog among other blogs/websites worldwide!





WHY TO GENERATE?

I want to clear you all the bloggers, In start I had no knowledge about SEO nor the full form of it and that that my journey so hard even having good stuff on website I was not reaching any good ranks, SITEMAPS are the very initial,basic and important part to index all of your content on search engines.
There are millions of website and when it comes to crawl the data, index the data on search engines. Google and other search engines are not able to do it manually and I believe no one in the world is able to do so therefore, Google has robots which do this job for google, they are slow and do the process but they are not enough efficient to know which exactly page to index, their is a limit set by google as blogger use atom feed which limit auto indexing of all web pages therefore, we generate SITEMAPS.

To see what google robot actually do with your blog!


DASHBOARD > SETTINGS > SEARCH PREFERENCES > SCROLL DOWN > ROBOTS.TXT
create your sitemap today
HIGHLIGHTED PART IS THE FILE

How to setup this and other files for SEO open the file and follow that content SEO ENHANCEMENT KILLER TIPS

HOW TO GENERATE?

Without making this part longer for you, just simply copy the right code according to number of content your blog got as mentioned below and add the following code in your sitemap section at Google Search Console.

Post Between 1 to 500:

atom.xml?redirect=false&start-index=1&max-results=500

Post Between 500 to 1000:

atom.xml?redirect=false&start-index=501&max-results=500

Post Between 1000 to 1500:

atom.xml?redirect=false&start-index=1001&max-results=500



WHERE TO INSERT SUCH CODE?
Well where to put this code? follow this method its easy you don't have to do any coding just simply login in to your GOOGLE SEARCH CONSOLE and open web master tools

CRAWL > SITEMAPS > ADD/TEST SITEMAP
seo boost ready sitemaps

Click Add/Test Sitemap a popup will be opened paste your line of code and press SUBMIT and that's all.


how to create and add sitemap 2019

IMPACT ON WEBSITE:

After adding the code above, adding the sitemap your blog rank will start boosting because google will start indexing all of your web pages. It takes like hardly a week for google to track and indexing all of your web pages but once it done you will surely find your growing rank wisely in a great flow!

I wish all of the bloggers get success specially the new one, apply this to your blog and let me know  in the comment section if you get stuck anywhere! 😊