#code_time search results

Go has most encoding standards supported, including its own encoding: gob for communicating between Go processes. So what's going to be the value of q? โœ… Q{A: 1, B: 2} โœ… Decode Error #steevehook #code_time #golang

steevehook's tweet image. Go has most encoding standards supported, including its own encoding: gob for communicating between Go processes. So what's going to be the value of q?

โœ… Q{A: 1, B: 2}
โœ… Decode Error

#steevehook #code_time #golang

This is a little tough one, but it's possible to do in Go. It's possible to run Assembly code and call Go code from Assembly. So what will be the result after running: go build -o exec ./exec โœ… result 5 โœ… ./main.go: missing function body #code_time #golang #steevehook

steevehook's tweet image. This is a little tough one, but it's possible to do in Go. It's possible to run Assembly code and call Go code from Assembly. So what will be the result after running:

go build -o exec
./exec

โœ… result 5
โœ… ./main.go: missing function body

#code_time #golang #steevehook

This one is a simple one & also a small teaser on what's coming. Will the 2nd statement execute? ๐Ÿค” โœ… YES โœ… NO #code_time #golang #concurrency #concurrency_in_go #steevehook

steevehook's tweet image. This one is a simple one & also a small teaser on what's coming. Will the 2nd statement execute? ๐Ÿค”

โœ… YES
โœ… NO

#code_time #golang #concurrency #concurrency_in_go #steevehook

I'm sure you heard people in the Go community say "the select statement is just like the switch statement but for channels". Really? #code_time #golang #steevehook โœ… A: 1 channel 1 โœ… B: 2 channel 2 โœ… C: 3 channel 3 โœ… D: 1 2 3 channel 1 / channel 2 / channel 3

steevehook's tweet image. I'm sure you heard people in the Go community say "the select statement is just like the switch statement but for channels". Really?

#code_time #golang #steevehook

โœ… A:
1
channel 1
โœ… B:
2
channel 2
โœ… C:
3
channel 3
โœ… D:
1
2
3
channel 1 / channel 2 / channel 3

Kinda late from me, but still, here's your weekly quiz on Go's defer statement. Which snippet will print? โœ… Snippet 1 โœ… Snippet 2 #code_time #golang #steevehook

steevehook's tweet image. Kinda late from me, but still, here's your weekly quiz on Go's defer statement. Which snippet will print?

โœ… Snippet 1
โœ… Snippet 2

#code_time #golang #steevehook

As usual, your weekly small quiz. This time, let's see how familiar you are with Go's Type System. What's it going to be? #code_time #golang #steevehook โœ… John โœ… Nobody โœ… Steve โœ… int32 โœ… int64 โœ… duplicate key error

steevehook's tweet image. As usual, your weekly small quiz. This time, let's see how familiar you are with Go's Type System. What's it going to be?

#code_time #golang #steevehook

โœ… John
โœ… Nobody
โœ… Steve
โœ… int32
โœ… int64
โœ… duplicate key error

Been a while since I hit ya with another code time. Here we go again. You might think locks in Go are re-entrant, to your surprise they're not. So what's it going to be? ๐Ÿค” โœ… Works fine โœ… Deadlock #code_time #golang #steevehook

steevehook's tweet image. Been a while since I hit ya with another code time. Here we go again. You might think locks in Go are re-entrant, to your surprise they're not. So what's it going to be? ๐Ÿค”

โœ… Works fine
โœ… Deadlock

#code_time #golang #steevehook

It's CODE TIME again. As usual, your weekly quiz. This time let's see your experience with Go's sync.Once primitive. What's going to be the result? #code_time #golang #steevehook โœ… outside โœ… inside outside โœ… DEADLOCK

steevehook's tweet image. It's CODE TIME again. As usual, your weekly quiz. This time let's see your experience with Go's sync.Once primitive. What's going to be the result?

#code_time #golang #steevehook

โœ… outside
โœ… inside
     outside
โœ… DEADLOCK

As usual gents, your weekly quiz. Let's see if you understand the meaning of the blank field inside a Go struct. Which initialisation will work without errors? #code_time #golang #go #steevehook โœ… unnamed fields โœ… named fields

steevehook's tweet image. As usual gents, your weekly quiz. Let's see if you understand the meaning of the blank field inside a Go struct. Which initialisation will work without errors?

#code_time #golang #go #steevehook

โœ… unnamed fields
โœ… named fields

Let's see if you're familiar with Asynchronous Preemption in Go. Even if you're not, stay tuned for a deep dive video about Concurrency. But still, WILL THE BELOW CODE PRINT?: #steevehook #code_time #golang โœ… YES โœ… NO โœ… Depends on the version of Go runtime

steevehook's tweet image. Let's see if you're familiar with Asynchronous Preemption in Go. Even if you're not, stay tuned for a deep dive video about Concurrency. But still, WILL THE BELOW CODE PRINT?:

#steevehook #code_time #golang

โœ… YES
โœ… NO
โœ… Depends on the version of Go runtime

As usual another quiz to keep y'all sharp. This time let's see if you're familiar to Readers in Go. So what's going to be the output in case of a valid POST request with the body: "hello world"? โœ… invalid body โœ… body len: 0 โœ… body len: 11 #code_time #golang #go #steevehook

steevehook's tweet image. As usual another quiz to keep y'all sharp. This time let's see if you're familiar to Readers in Go.

So what's going to be the output in case of a valid POST request with the body: "hello world"?

โœ… invalid body
โœ… body len: 0
โœ… body len: 11

#code_time #golang #go #steevehook

Have you ever asked yourself if the fields order inside a struct matters? Well, it actually does. The overall struct memory will be affected by the order of the fields in a struct. So what's it going to be? โœ… true โœ… false #code_time #golang #steevehook

steevehook's tweet image. Have you ever asked yourself if the fields order inside a struct matters? Well, it actually does. The overall struct memory will be affected by the order of the fields in a struct. So what's it going to be?

โœ… true
โœ… false

#code_time #golang #steevehook

Which snippet will exit after the timeout of 3 seconds? Hint: It has nothing to do with Concurrency in Go or what kind of channels are being used. In fact both APIs under the hood use the same NewTimer function. #code_time #golang #steevehook โœ… Snippet 1 โœ… Snippet 2

steevehook's tweet image. Which snippet will exit after the timeout of 3 seconds?
Hint: It has nothing to do with Concurrency in Go or what kind of channels are being used. In fact both APIs under the hood use the same NewTimer function.

#code_time #golang #steevehook

โœ… Snippet 1
โœ… Snippet 2

If there's anything easy to use in the sync package, that's the WaitGroup type. What do you think it's wrong with this code though? โœ… Everything will work just fine โœ… panic: sync: WaitGroup is reused before previous Wait has returned #code_time #golang #steevehook

steevehook's tweet image. If there's anything easy to use in the sync package, that's the WaitGroup type.
What do you think it's wrong with this code though?

โœ… Everything will work just fine
โœ… panic: sync: WaitGroup is reused before previous Wait has returned

#code_time #golang #steevehook

I gotta say this one gets me very often. It's very important to be aware on what type of receivers you implement interfaces and how to instantiate types correctly. So which type will print Steve Steve (call the String method) โœ… person1 โœ… person2 #code_time #golang #steevehook

steevehook's tweet image. I gotta say this one gets me very often. It's very important to be aware on what type of receivers you implement interfaces and how to instantiate types correctly. So which type will print Steve Steve (call the String method)

โœ… person1
โœ… person2

#code_time #golang #steevehook

Canโ€™t wait. Been looking to steal some quizzes. I ran out of quizzes for #code_time ๐Ÿ˜‹


Canโ€™t wait. Been looking to steal some quizzes. I ran out of quizzes for #code_time ๐Ÿ˜‹


Go has most encoding standards supported, including its own encoding: gob for communicating between Go processes. So what's going to be the value of q? โœ… Q{A: 1, B: 2} โœ… Decode Error #steevehook #code_time #golang

steevehook's tweet image. Go has most encoding standards supported, including its own encoding: gob for communicating between Go processes. So what's going to be the value of q?

โœ… Q{A: 1, B: 2}
โœ… Decode Error

#steevehook #code_time #golang

Been a while since I hit ya with another code time. Here we go again. You might think locks in Go are re-entrant, to your surprise they're not. So what's it going to be? ๐Ÿค” โœ… Works fine โœ… Deadlock #code_time #golang #steevehook

steevehook's tweet image. Been a while since I hit ya with another code time. Here we go again. You might think locks in Go are re-entrant, to your surprise they're not. So what's it going to be? ๐Ÿค”

โœ… Works fine
โœ… Deadlock

#code_time #golang #steevehook

This one is a simple one & also a small teaser on what's coming. Will the 2nd statement execute? ๐Ÿค” โœ… YES โœ… NO #code_time #golang #concurrency #concurrency_in_go #steevehook

steevehook's tweet image. This one is a simple one & also a small teaser on what's coming. Will the 2nd statement execute? ๐Ÿค”

โœ… YES
โœ… NO

#code_time #golang #concurrency #concurrency_in_go #steevehook

This is a little tough one, but it's possible to do in Go. It's possible to run Assembly code and call Go code from Assembly. So what will be the result after running: go build -o exec ./exec โœ… result 5 โœ… ./main.go: missing function body #code_time #golang #steevehook

steevehook's tweet image. This is a little tough one, but it's possible to do in Go. It's possible to run Assembly code and call Go code from Assembly. So what will be the result after running:

go build -o exec
./exec

โœ… result 5
โœ… ./main.go: missing function body

#code_time #golang #steevehook

I gotta say this one gets me very often. It's very important to be aware on what type of receivers you implement interfaces and how to instantiate types correctly. So which type will print Steve Steve (call the String method) โœ… person1 โœ… person2 #code_time #golang #steevehook

steevehook's tweet image. I gotta say this one gets me very often. It's very important to be aware on what type of receivers you implement interfaces and how to instantiate types correctly. So which type will print Steve Steve (call the String method)

โœ… person1
โœ… person2

#code_time #golang #steevehook

If there's anything easy to use in the sync package, that's the WaitGroup type. What do you think it's wrong with this code though? โœ… Everything will work just fine โœ… panic: sync: WaitGroup is reused before previous Wait has returned #code_time #golang #steevehook

steevehook's tweet image. If there's anything easy to use in the sync package, that's the WaitGroup type.
What do you think it's wrong with this code though?

โœ… Everything will work just fine
โœ… panic: sync: WaitGroup is reused before previous Wait has returned

#code_time #golang #steevehook

Have you ever asked yourself if the fields order inside a struct matters? Well, it actually does. The overall struct memory will be affected by the order of the fields in a struct. So what's it going to be? โœ… true โœ… false #code_time #golang #steevehook

steevehook's tweet image. Have you ever asked yourself if the fields order inside a struct matters? Well, it actually does. The overall struct memory will be affected by the order of the fields in a struct. So what's it going to be?

โœ… true
โœ… false

#code_time #golang #steevehook

As usual, your weekly small quiz. This time, let's see how familiar you are with Go's Type System. What's it going to be? #code_time #golang #steevehook โœ… John โœ… Nobody โœ… Steve โœ… int32 โœ… int64 โœ… duplicate key error

steevehook's tweet image. As usual, your weekly small quiz. This time, let's see how familiar you are with Go's Type System. What's it going to be?

#code_time #golang #steevehook

โœ… John
โœ… Nobody
โœ… Steve
โœ… int32
โœ… int64
โœ… duplicate key error

It's CODE TIME again. As usual, your weekly quiz. This time let's see your experience with Go's sync.Once primitive. What's going to be the result? #code_time #golang #steevehook โœ… outside โœ… inside outside โœ… DEADLOCK

steevehook's tweet image. It's CODE TIME again. As usual, your weekly quiz. This time let's see your experience with Go's sync.Once primitive. What's going to be the result?

#code_time #golang #steevehook

โœ… outside
โœ… inside
     outside
โœ… DEADLOCK

Let's see if you're familiar with Asynchronous Preemption in Go. Even if you're not, stay tuned for a deep dive video about Concurrency. But still, WILL THE BELOW CODE PRINT?: #steevehook #code_time #golang โœ… YES โœ… NO โœ… Depends on the version of Go runtime

steevehook's tweet image. Let's see if you're familiar with Asynchronous Preemption in Go. Even if you're not, stay tuned for a deep dive video about Concurrency. But still, WILL THE BELOW CODE PRINT?:

#steevehook #code_time #golang

โœ… YES
โœ… NO
โœ… Depends on the version of Go runtime

As usual gents, your weekly quiz. Let's see if you understand the meaning of the blank field inside a Go struct. Which initialisation will work without errors? #code_time #golang #go #steevehook โœ… unnamed fields โœ… named fields

steevehook's tweet image. As usual gents, your weekly quiz. Let's see if you understand the meaning of the blank field inside a Go struct. Which initialisation will work without errors?

#code_time #golang #go #steevehook

โœ… unnamed fields
โœ… named fields

No results for "#code_time"
Loading...

Something went wrong.


Something went wrong.


United States Trends