- can't trace uncaught rejections back to the calling code
- dependency hell, immature dependencies, forks on forks
- inconsistent use of promises, e.g. mongoose you need to remember
.exec
and it doesn't throw but returns null - debugging is rough, end up console logging most of the time
- promises are confusing, you can avoid them for a while with async/await or co but eventually they will bite you

- GitHub Staff
- https://jakecoffman.com
- @[email protected]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def printer(Element1 element) { | |
println "${element.name} ${element.element1Specific}" | |
} | |
def printer(Element2 element) { | |
println "${element.name} ${element.element2Specific}" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def randomElement | |
// simulate user input, for instance | |
if (new Random().nextInt() % 2 == 0) { | |
randomElement = new Element1() | |
} else { | |
randomElement = new Element2() | |
} | |
printer(randomElement) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Main | |
IElement element = getElement() | |
printer(element) | |
// Classes | |
IElement getElement() { | |
// simulate not knowing the type of element at runtime | |
if (new Random().nextInt() % 2 == 0) { | |
return new Element1(var1: "hello") | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"strings" | |
) | |
type BinaryTree struct { | |
Node int // or whatever | |
Left *BinaryTree |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package bench | |
import "testing" | |
func Benchmark_InterfaceMethods(b *testing.B) { | |
s := &Struct{} | |
for n := 0; n < b.N; n++ { | |
s.Method() | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.codingame.gameengine.runner.MultiplayerGameRunner | |
import com.codingame.gameengine.runner.dto.GameResult | |
import groovy.time.TimeCategory | |
import groovyx.gpars.GParsPool | |
class Simulator { | |
static final champion = "config/champion.exe" | |
static final challenger = "config/challenger.exe" | |
static void main(String[] args) { |
Find a way to execute arbitrary javascript
Challenge page is here https://challenge-1121.intigriti.io/challenge/index.php?s=security
Upon loading the page I see the following:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"net/http" | |
"time" | |
) | |
func main() { | |
log.SetFlags(log.Lshortfile) |
OlderNewer