... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
import java.util.ArrayList; | |
import java.util.Scanner; | |
class TestClass { | |
public static void main(String args[] ) throws Exception { | |
Scanner keyboard=new Scanner(System.in); | |
int t=keyboard.nextInt(); | |
keyboard.nextLine(); | |
ArrayList<String> vowelList= new ArrayList<>(); | |
vowelList.add("a"); | |
vowelList.add("e"); |
In the terminology of programming languages, first-class Objects are instances of a type | |
that can be assigned to an identifier, passed as a parameter, or returned by a function | |
In Python classes and functions are also treated as first-class Objects. | |
For Example | |
scream = print | |
# assign name 'scream' alias name to print | |
Modules are also first-class objects in Python |
// Channels-driven concurrency with Go | |
// Code examples from Rob Pike's talk on Google I/O 2012: | |
// http://www.youtube.com/watch?v=f6kdp27TYZs&feature=youtu.be | |
// | |
// Concurrency is the key to designing high performance network services. | |
// Go's concurrency primitives (goroutines and channels) provide a simple and efficient means | |
// of expressing concurrent execution. In this talk we see how tricky concurrency | |
// problems can be solved gracefully with simple Go code. | |
// (1) Generator: function that returns the channel |
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
Reference: http://perfectionkills.com/understanding-delete/
There are 3 types of executable code in ECMAScript:
When ECMAScript code executes, it always happens within a certain execution context.
setTimeout(function timeout () { | |
console.log(‘timeout’); | |
},0); | |
setImmediate(function immediate () { | |
console.log(‘immediate’); | |
}); |
var express = require('express'); | |
var cookieParser = require('cookie-parser'); | |
var session = require('express-session'); | |
var flash = require('express-flash'); | |
var handlebars = require('express-handlebars') | |
var app = express(); | |
var sessionStore = new session.MemoryStore; | |
// View Engines |
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Name=Laverna | |
GenericName=Text Editor | |
Comment=Live private markdown editing and notes | |
Exec=/opt/laverna-0.7.51-linux-x64/laverna | |
Terminal=false | |
MimeType=text/plain; | |
Icon=/opt/laverna-0.7.51-linux-x64/resources/app/dist/images/icon/icon.png |