Комментарии:
i need a simple task on this
Ответитьthis is why poeple use python omg how long winded is that lol
ОтветитьThis language is not ready to be elegant and for fast development yet, too many things just to return two values, what a let down, I had more expectations...
ОтветитьIt's always a bliss learning from the Alpha Ninja
Modified the getInitials func to return a single string of joined initials.
func getInitials(fullname string) string {
var nArr = strings.Split(strings.ToUpper(fullname), " ")
var inits []string
for _, value := range nArr {
inits = append(inits, value[:1])
}
return strings.Join(inits, ".")
}
1- we cant store a multi return functions return in one value
2- how append works in action
3- handling different situations in return of a function
4- return of Split is unexpected and we cant set an explicit array for storing return of it
is this a tuple, like c# etc?
ОтветитьAs in many languages, I can't help thinking the creators of Go tried hard to use a "different" syntax in several places just to be different.
ОтветитьHi Shawn,
I am doing your Udemy course, and I am doing events there. Quick irrelevant question and I would appreciate it if you answered it:
What are handlers when it comes to events? I mean, I haven't heard you use the term "handler" yet, but anywhere I look online, the term is used a lot. Is it the event? Is the eventListener? Is it the block of code that fires once the event occurs? Or...?
Thanks a lot,
Faraz
I'm really enjoying this, more Go videos please
ОтветитьHello Shaun, may I suggest course not precisely about programming language but about good practises? How to manage your files in slightly bigger projects, when and how split the code etc.? I think that would be life saver for a lot of people, give it a thought if you can, cheers :D
ОтветитьHey Net Ninja, please do more Flutter Tutorials! :)
ОтветитьHave you ever thought of doing a Swift series?
Ответитьtnx for the consistency....
Ответить