Map in Hack Language Facebook Hack Language supports Map that are simply an ordered dictionary-style collection. Map in Hack Language F...
Simple ways to use Vector in Hack Language Facebook
Vector in Hack In Hack Language Vectors are an integer-indexed (zero-based) collection. Vectors allows random access to its elements w...
Collection in Hack Programming Language Facebook
Hack introduces the concept of Collections. Collections are basically used for data storage and retrieval. Collections implement many of t...
Using Nullable in Hack Language Facebook
Hack introduces a new way to handle null values by introducing the concept of Nullable. ? Operator is used for representing Nullable type...
Generic in Hack Language Facebook
Hack Language introduces the concept of generics to PHP. It allows a class or function or interface to define the type of it’s at the time...
Hack Modes in Hack Programming Language
The HACK language code is generally written in one of the three modes: Strict Partial Decl Unsafe These modes provides the developers th...
Using 'mixed' type is Hack Language Facebook
In certain situations, it is difficult to determine the return type of a function prior to its call. In that situation we use the ‘mixed’ ...
Using 'this' in Hack Language Facebook
Using this in Hack Language is shown below: As we see in the example below that ' this ' can also be used as return type of a func...
Array in Hack Language Facebook
In HACK array can be created using one of the following ways: Untyped Array : array Explicitly Typed Array with Integer key: array<Ty...
Type Casting in Hack Language Facebook
Allowed Type : float, int, bool Not Allowed Type : double, integer, boolean, real, binary Example: <?hh function typeCast(): bool ...
Function in Hack Language Facebook
Function with no argument and no return type: <?hh // void indicate that a function does not return anything. function display(): voi...
Type Annotation in Hack Language Facebook
Basic/Primitive Types: int, float, string, bool, array. Other Types: mixed, void, resource, array, Vector, tuple (type1, type2, . . .) ...
Feature of Hack Language Facebook
FEATURES OF HACK Hack provides a method, the ability to annotate and to specify the return type. Hack helps to detect unsafe coding ...
Add JTree programmatically in Java Swing
JTree: A tree is a component that presents a hierarchical view of data. The user has the ability to expand or collapse individual subtrees...
Add JTable Programmatically in Java
JTable: JTable is a component that displays rows and columns of data. We can drag the cursor on column boundaries to resize columns. JTa...
HACK: The new programming language by Facebook
HACK: The new programming language by Facebook The new language introduced by Facebook called Hack but it has very little to do with hack...
Programmatically find the co-ordinates of a location from the location name iOS Map
Here is a sample code to find the co-ordinates of a location from the location name: Code: -(CLLocationCoordinate2D) getLocationFromAddr...
Draw Line on TouchesMoved()/Mouse move programmatically in iOS using Objective-C
Here is a sample code to draw line on touches move in iOS programmatically: Code: -(void) touchesBegan:(NSSet *)touches withEvent:(UIEve...
Open Mail Composer programmatically in ios 8 using Objective-C
In this blog post I am going to elaborate a simple example to Open Mail Composer programmatically in iOS using Objective-C. I would also p...
Connecting with SQLite programmatically in iOS using Objective-C
Here is a sample code for connecting with SQLite using Objective-C... Code: #import "sqlLiteDemoViewController.h" @interface s...
Adding Links To UILabel Programmatically iOS using Objective-C
Hey friends here is a sample code that help you create link in UILabel...... Don't forget to import TTTAttributedLabel. Code: #imp...
Adding UIButton Programmatically iOS using Objective-C
Here is a sample code to add a UIButton Programmatically in iOS using Objective-C: Code: UIButton *button_name=[[UIButton alloc]initWithF...
C/C++ Interview Questions : Advance
1. When can you tell that a memory leak will occur? Memory leaks generally occur when a program loses the ability to free a block of dyn...
C/C++ Interview Questions : Headway
1. Name some pure object oriented languages. There are several object oriented programming language. Some common pure object oriented pr...
C/C++ Interview Questions : Base Cleaning
1. What is an incomplete type? Incomplete types refers to pointers in which there is non availability of the implementation of the refer...
C/C++ Interview Questions : Basics
1. What is a modifier? A modifier, also called a modifying function is a member function that changes the value of at least one data me...