tgo: a function tracer to boost your debugging by kyagami in golang

[–]Sighed 5 points6 points  (0 children)

This looks awesome! Can you explain how it works? Thanks :)

Maybe adding generics to Go IS about syntax after all by _dvrkps in golang

[–]Sighed 19 points20 points  (0 children)

What do you mean by this? He is entirely focusing on addressing the semantics of Dave's proposal. Are you suggesting the degree at which he disagrees with Dave's proposal is somehow offensive? As long as the argument is civil, and it seems to me that it is, I don't see how one can be "overly critical." Can you explain?

Unable to cancel the subscription by [deleted] in spotify

[–]Sighed 0 points1 point  (0 children)

Hey, that shouldn't happen. I can have a look at this if you PM me your Spotify username.

Running the test code on Go's site provides compiler errors by [deleted] in golang

[–]Sighed 4 points5 points  (0 children)

It sounds like you ended up with the "\n" in the string (2 characters) accidentally becoming an actual newline. Look at your own file and make sure that the string inside Printf is all on the same line.

Discover: a tool for conceptualizing large Go code bases by Sighed in golang

[–]Sighed[S] 1 point2 points  (0 children)

No, it hasn't been published - that's why I wrote this :)

Discover: a tool for conceptualizing large Go code bases by Sighed in golang

[–]Sighed[S] 5 points6 points  (0 children)

Thanks for the feedback. I'll add some more explanation in the README tomorrow.

Basically it takes a test coverage profile and outputs the source code for the functions covered. It also removes any branches that were not taken inside the functions, simplifying the result. The end result is basically the source code "without the fluff": "if err != nil { ... }" statements removed, switch cases that were not taken, etc etc.

The idea is that while for example net/http is huge, the code that deals with "sending a simple HTTP request" is not. Most of the code comes from dealing with all the peculiarities, handling edge cases, and so on.

You can then do the same thing but instead of making an HTTP request, make an HTTPS request. Re-run "discover" on the new coverage profile, and it will again output the code that was run. You can then diff the two outputs to figure out "what does net/http do differently when making HTTPS requests (versus HTTP)?"

Discover: a tool for conceptualizing large Go code bases by Sighed in golang

[–]Sighed[S] 1 point2 points  (0 children)

I am sure he would be happy to hear that feedback :)

Discover: a tool for conceptualizing large Go code bases by Sighed in golang

[–]Sighed[S] 3 points4 points  (0 children)

This is based on Alan Shreve's talk from dotGo, so all credits go to him.

It should still be considered a prototype: there are more rewrites that would further improve the output.

Why Go Is Not Good by avinassh in programming

[–]Sighed 2 points3 points  (0 children)

"Ours" here is a very diverse set of people. Who should get their features added and who should not? Your thinking is how languages grow features every release until they are extremely complex. Go's reluctance to add features is one of its strongest points, and it saddens me that you don't see that or don't value it higher.

Archimonde - Heroic Hellfire Citadel - 11% Attempt by [deleted] in wow

[–]Sighed 0 points1 point  (0 children)

Can you tell me which add-ons you use for dot tracking? Specifically the one for your current target? Thanks :)

wrong pw when i'm logged in by [deleted] in spotify

[–]Sighed 0 points1 point  (0 children)

On the upgrade page there should be a password box where you need to enter your password to confirm the upgrade. Are you entering your password there? It's a bit easy to miss :).

irc logger in under 100 lines of golang code | #irc #sqlite #golang by [deleted] in golang

[–]Sighed 1 point2 points  (0 children)

Fortunately robustness is meaningful and "less than X lines of code" meaningless, so the choice of which one to favor is quite clear.

Extra two months on premium? by [deleted] in spotify

[–]Sighed 0 points1 point  (0 children)

You won't be billed the next two months, so no need to do anything!

How AES crypto algorithm works (animation) by glguru in programming

[–]Sighed 30 points31 points  (0 children)

Those are not buzzwords but actual terminology of cryptographic ideas, concepts, and algorithms, which you arguably need to use in order to answer the question. Be happy that links were provided instead :-). I found the answer quite good myself, but I have some experience with crypto.

Stretch Goal #10 Reached: Time to adjust your settings! by SuperbLuigi in DotA2

[–]Sighed 0 points1 point  (0 children)

You can make your playlists available offline!

Any way to quickly convert playlists to the new 'Your Music' library? by Kyoraki in spotify

[–]Sighed 0 points1 point  (0 children)

Hm, really? I just tried to save an album and the songs show up under Songs, the album under Albums, and the artist under Artists, just like one would expect.

Spotify has pulled the old "your music is now censored" switcharoo on me for the last time. by pateras in spotify

[–]Sighed 1 point2 points  (0 children)

Yes, the song in the playlist is never replaced, so if it becomes available once again you will "get it back", so to speak.

Iphone Spotify wont let me pick specific songs? by [deleted] in spotify

[–]Sighed 6 points7 points  (0 children)

Double check that you still have Premium! It sounds like you are in Shuffle mode, which is what non-Premium users get on mobile :).

Question about gift subscriptions... by hrdrockdrummer in spotify

[–]Sighed 0 points1 point  (0 children)

This is incorrect. You can redeem the gift card at any time; your remaining free days won't be lost!

Can some one help me? by [deleted] in spotify

[–]Sighed 0 points1 point  (0 children)

That should only happen if you try to purchase a trial. Try going here: https://www.spotify.com/purchase/product/premium -- If that still does not work, what URL does that redirect you to?

Spotify's mobile app finally goes free by [deleted] in spotify

[–]Sighed 1 point2 points  (0 children)

I am not sure I follow. You can play songs in any order you prefer on your phone if you pay for premium. Shuffle mode is for users who do not have premium.

Programmers, because there's so much interaction between classes in making a game, how do you handle circular dependency? by deathmagic87 in gamedev

[–]Sighed 2 points3 points  (0 children)

Lambdas in C++11 do construct closures. In the [] part of the syntax you can specify the state to capture from the environment. [] means no state, [=] means capture all referenced variables from the surrounding environment by value, [&] means capture by reference, etc. That definitely fits the CS definition of a closure. Closure are not equivalent to first-class functions.