• Register

Featured Bloggers

dev
kylejones
mayankpathak
Mbaoma
mjg

Recent Posts

5 0 1 min.
Use the type check operator (is) to check whether an instance is of a certain subclass type. The type check operator returns true if the instance is of that subclass type and ...
posted 1 day ago Tomas Herman 406 points
2 0 2 min.
fun printMessage(message: String): Unit {                               // 1    println(message)}fun printMessageWi...
posted 1 day ago Tomas Herman 406 points
0 0 2 min.
ntegers are whole numbers with no fractional component, such as 42 and -23. Integers are either signed (positive, zero, or negative) or unsigned (positive or ze...
posted 1 day ago Tomas Herman 406 points
0 0 0 min.
Unlike many other languages, Swift doesn’t require you to write a semicolon (;) after each statement in your code, although you can do so if you wish. However, semicolons are required ...
posted 1 day ago Tomas Herman 406 points
0 0 1 min.
Use comments to include nonexecutable text in your code, as a note or reminder to yourself. Comments are ignored by the Swift compiler when your code is compiled.Comments in Swift are very similar to ...
posted 1 day ago Tomas Herman 406 points
0 0 1 min.
You can print the current value of a constant or variable with the print(_:separator:terminator:) function:print(friendlyWelcome)// Prints "Bonjour!"The print(_:separator:term...
posted 1 day ago Tomas Herman 406 points
0 0 1 min.
Constant and variable names can contain almost any character, including Unicode characters:let π = 3.14159let 你好 = "你好世界"let = "dogcow"Constant and variable names can’t c...
posted 1 day ago Tomas Herman 406 points
0 0 2 min.
You can provide a type annotation when you declare a constant or variable, to be clear about the kind of values the constant or variable can store. Write a type annotation by placing a colon...
posted 1 day ago Tomas Herman 406 points
0 0 1 min.
Constants and variables must be declared before they’re used. You declare constants with the let keyword and variables with the var keyword. Here’s an example of how co...
posted 1 day ago Tomas Herman 406 points
0 0 2 min.
Swift is a new programming language for iOS, macOS, watchOS, and tvOS app development. Nonetheless, many parts of Swift will be familiar from your experience of developing in C and Objective-C.Swift p...
posted 1 day ago Tomas Herman 406 points
0 0 3 min.
You represent errors using any type that adopts the Error protocol.enum PrinterError: Error {case outOfPapercase noTonercase onFire}Use throw to throw an error and throws ...
posted 1 day ago Tomas Herman 406 points
0 0 2 min.
Use protocol to declare a protocol.protocol ExampleProtocol {var simpleDescription: String { get }mutating func adjust()}Classes, enumerations, and structs can all adopt protocols.class Simp...
posted 1 day ago Tomas Herman 406 points
0 0 1 min.
To pass information necessary for our method we use the parameters list. As was already mentioned, we must place it between the brackets following the method name, in method the declaration: static (...
posted 1 day ago Tomas Herman 406 points
0 0 0 min.
Often to solve certain problem, the method may need additional information, which depends on the environment in what the method executes. So if there is a method, that has to find the area of a squar...
posted 1 day ago Tomas Herman 406 points
0 0 0 min.
In C# the order of the methods in the class is not important. We are allowed to invoke (call) a method before it is declared in code: static void Main() { // … PrintLogo(); // &...
posted 1 day ago Tomas Herman 406 points
0 0 1 min.
Whenever we declare a variable inside the body of a method, we call that variable local variable for the method. To name a variable we should follow the identifiers rules in C# (refer to chapter "...
posted 1 day ago Tomas Herman 406 points
0 0 2 min.
This is my way.See comments in code.#include <iostream> #include <string> #include <vector> #include <algorithm> using std::cout; using std::cin; using std::endl; using std::s...
posted 1 day ago raven 160 points
0 0 3 min.
Use C languageC Language: C could be a general-purpose high-level language that was initially created by Dennis Ritchie for the Unix working framework. The Unix working framework and virtually al...
posted 1 day ago usmanhashmi 121 points
0 0 1 min.
Authentication is the process of identifying the user credentials. In web applications, authentication is managed by sessions which take the input parameters such as email or username and password, fo...
posted 1 day ago Tomas Herman 406 points
0 0 3 min.
CSRF refers to Cross Site Forgery attacks on web applications. CSRF attacks are the unauthorized activities which the authenticated users of the system perform. As such, many web applications are pron...
posted 1 day ago Tomas Herman 406 points