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

WorldTrueSight

Get the latest news and reviews about technology!

31 Dec 2019

Implementation of Design Patterns
CREATIONAL CATEGORY

1.ABSTRACT FACTORY PATTERN

To create the objects of related families i.e Ward & OPD.Here PatientType class is factory class and wardPatient class and OPDPatient class is working as concrete factory.
   
Implementation of Design Patterns

2.SINGLETON

To create a single instance of Connection class.

Implementation of Design Patterns

STRUCTURAL CATEGORY

1.FACADE PATTERN
To provide an interface for different types of Surgery Patient.
Implementation of Design Patterns
2.PROXY PATTERN
To hide Receptionist Info from all other members except admin.
Implementation of Design Patterns


BEHAVIORAL CATEGORY

1.OBSERVER PATTERN

To notify Receptionist & Doctor about his/her salary. 
Implementation of Design Patterns


25 Dec 2019

HANGMAN GAME

      Hangman is a  guessing game for two or more players. Server send a word , phrase or sentence to client and the client tries to guess it by suggesting letters within a certain number of guesses or until the hangman completes. Server will check if the client guesses the right word or not.
      In our project, Server will give word to client from a list available in MY HANGMAN\My HangMaan\bin\Debug\List

HOW TO EXECUTE IT?

Watch this video 👇

FOR COMPLETE PROJECT 👉 CLICK HERE!

If you have any queries , feel free to ask in the comment section. Thanks 😃


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...😊