Your channel is one of the best things I ever found in internet. Thanks so much.
@AlexanderDemin Жыл бұрын
What a great episode! You just did grind everything to the bits! Thanks.
@paulyeoh42666 жыл бұрын
Thanks Francesc for your invaluable videos, an integral part of my continuous learning of this fantastic programming language.
@theyruinedyoutubeagain7 жыл бұрын
19:30 I have the same damn issue with vscode xD Always have to move shit around after I create it. I absolutely love it though, and credit you fully for making me switch to it. Good episode by the way (as always)!
@IvanPortoCarreroBE7 жыл бұрын
select a file in the root and then create the folder, no more moving around
@meowmeow707 жыл бұрын
thanks Francesc. clear explanation and learned a lot. Could you do episode about package, dependency management strategy for the relatively large project?
@JustForFunc7 жыл бұрын
I was planning on doing an episode on dep ... maybe the time has come!
@meowmeow707 жыл бұрын
Awesome! thanks again for great work.
@mybigbeak7 жыл бұрын
Great episode, I get the same issues recording, I always find the second time is best. Really useful info too. Go aliases. Woo.
@AnthonySBD7 жыл бұрын
good episode, i wasn't sure how or why id bother to ever use type aliases besides packages changing location / name and this video actually gave me some useful scenarios where it can come in handy.
@JustForFunc7 жыл бұрын
glad you liked it! that was totally the goal of the episode :)
@alesresta7 жыл бұрын
Another great episode! Thank you, Francesc.
@JustForFunc7 жыл бұрын
thanks for watching!
@nexdev097 жыл бұрын
I just found your channel. I really enjoy the videos, keep making them.
@Cutiepie-ky9oh4 жыл бұрын
Why is it that you can print the celsius without calling `c.String()`?
@dksingh046 жыл бұрын
Thanks Francesc, I learned learn a lot from your episodes, keep sharing.
@pmareke6 жыл бұрын
In the minute 30:55 you finally move the code from the old to the new package but I can't see the difference from it and moving forward without the alias feature. I mean I'm lost because I don't see the benefits or even the possible problems, why you can't move code directly from one package to another via copy-paste? Thanks for your videos by the way, are amazing!
@danielscholz6136 жыл бұрын
It think the trick is that you only want to make changes in one package at a time in terms of continuous integration as he mentioned at some point earlier.
@theearthboundkid7 жыл бұрын
For channels, I often end up naming a type, just so I can pass groups of things into and out of the channel more easily. With type aliases, it could make more sense to use type chanResults = struct { int; err } or whatever, so that you aren't locking yourself down to one type implementation.
@JustForFunc7 жыл бұрын
I don't see how using an alias in this case would help over normal types.
@johnbalvin54017 жыл бұрын
I dont get why at 2:22 it prints "10.00 C", wouldnt be the code for that at line line 13 like "fmt.Println(c.String())" because thats how you call a method?
@valdeleplace45367 жыл бұрын
Method String is "special" because it makes your type implement fmt.Stringer, so implicitly the String method will be called by fmt.Println. See golang.org/pkg/fmt/#Stringer
@johnbalvin54017 жыл бұрын
thank you so much
@bhfaught7 жыл бұрын
That got me too. Justforfunc should have thrown in a little aside to let viewers know about Stringer.
@blondie99905 жыл бұрын
Thank you for explaining this, otherwise I would have never understood the point.
@kitgary7 жыл бұрын
Your VS Code looks beautiful, how can I setup like yours?
@alaypatel75116 жыл бұрын
Just out of curiosity is there a way where I could find/print out all alias to a type? Great Episode btw
@buscoopwang88747 жыл бұрын
I really enjoy the videos
@aaronprindle3856 жыл бұрын
Thanks for making these!
@dansplain23933 жыл бұрын
I agree that Fahrenheit doesn’t make sense in general. Freezing is zero, period.
@swileniwanow80894 жыл бұрын
I promise you dude, as golang popularity grows this channel will escalate
@niranjangodbole87847 жыл бұрын
farenheit don't no make any sense to me :D hahaa
@belekabylov7 жыл бұрын
Instant like for Farenheits joke.
@13TheGUNNER6 жыл бұрын
good example, thanks !!
@greiezer5 жыл бұрын
The new.Hello func is calling old.Hello, so just dropping the old code at kzbin.info/www/bejne/jJiZYWabbqhgjMk will break the CI-build since we did not copy the old implementation over to new.Hello and remove the call to old.Hello, or did I get that wrong?
@easternsunking2556 жыл бұрын
Great Great episode,
@rraulinio6 жыл бұрын
>= 18, btw. Great work, respect!
@DJjetseb7 жыл бұрын
Am I the only one to think that there will be a lot of abuse regarding aliases which will obfuscate the code in end?
@JustForFunc7 жыл бұрын
+Just AGuy I think there's a risk people might try to obfuscate code, but that risk exists pretty much with every feature, and the benefits of type aliases are worth it imo
@DJjetseb7 жыл бұрын
I like the feature too, but I guess we will see what people will do with it.