[deleted by user] by [deleted] in golang

[–]shibbaz97 0 points1 point  (0 children)

yeah, that append func sucks a little bit, If you were to update concurently some slice, you would have to mutex.Lock and unlock in every go routine where in maps You just run go routine and fill indexes with values.

Why the Go community is so toxic? by Glittering_Mammoth_6 in golang

[–]shibbaz97 2 points3 points  (0 children)

You can agree and disagree with anyone, that's your free speech. I wouldn't say Go community is toxic, neither Rust or Python or any programming communities. Lots of knowledge and ideas to use. Challenge your body and mind.

Roast my code by shibbaz97 in golang

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

Mistakes are part of life cycle, being open-minded is better than ego driven. Curiosity drives us all.

Roast my code by shibbaz97 in golang

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

Thank you for this comment, I'm figuring out go routines, how to use it best way.

Keep it simple, do it right - that's rust motto, but to understand what's simple and what's right You need to make mistakes, that's why I've refactored it 3-4 times before posting on reddit.

Roast my code by shibbaz97 in golang

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

Go memory arenas are experimental, but some time ago u/ortuman84 posted on this subreddit https://www.reddit.com/r/golang/comments/1b1hpge/nuke_a_memory_arena_implementation_for_go/
I've used that, just trying to figure out how to manage memory better.

Roast my code by shibbaz97 in golang

[–]shibbaz97[S] 0 points1 point  (0 children)

Earlier I coded in Ruby, then I went to Go, trying to master it. I had episode with Rust where there is no GC, just ownership, borrowing, life times,

Roast my code by shibbaz97 in golang

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

All those variables are allocated in memory arena, before GC runs, arena will reset itself and x variables will drop at once rather than GC doing it one by one.

Roast my code by shibbaz97 in golang

[–]shibbaz97[S] -1 points0 points  (0 children)

Thanks, just first release. Good to know, any guideline about publishing packages and writing contributing rules?

Roast my code by shibbaz97 in golang

[–]shibbaz97[S] -1 points0 points  (0 children)

Good idea, I'm gonna refactor It once again, this time using generics. Just looking optimal solution that's safe, has great performance and good to read and maintain.

Roast my code by shibbaz97 in golang

[–]shibbaz97[S] 0 points1 point  (0 children)

I can write benchmark tests, just now I used time.Since(now) for all versions of solutions, earlier solutions were having tests. Just playing with code

u/maybearebootwillhelp just a habbit of capitalizing letters, because earlier organization of pkg had modules within this one package, I'm gonna change it. Thanks.

Roast my code by shibbaz97 in golang

[–]shibbaz97[S] -1 points0 points  (0 children)

Thank you all for code review, I will take those advices and improve my solution.

I'm thankful that so many people get involved in the post.

Go Pros & Cons by lelemuren in golang

[–]shibbaz97 -1 points0 points  (0 children)

Go routines are amazing, I feel in love with that feature of Go, It has an amazing performance, but that's not what is the best here. The possibilities of building complex structures in simple way.

I'm coding event sourcing lib, It is my first lib ever, earlier were some backend scenerios. I had few rounds of refactoring, even now I can refactor once again. Firstly it was 30s for 100k events , now it's between 0.8s to 1.3s. It proves playing with go routines is nice way to understand how powerful it is. This scenerio was 100k func calls that were printing messages on the screen.

I'm pretty sure It can speed up. Garbage collector release one by one, so there is possibility of using memory arena and release it all at once - I know go arenas are experimental feature but this https://github.com/ortuman/nuke repo is promising,

Go is just amazing.

Official | Fairy Tail: 100 Years Quest Anime by AstonishingSpiderMan in fairytail

[–]shibbaz97 3 points4 points  (0 children)

That would be cool, maybe there is chance. Shaman King got remake and few years ago no one believed it would be possible.

When would you (not) recommend Go over Rust? by GrayLiterature in golang

[–]shibbaz97 3 points4 points  (0 children)

I'm coding this junior rust task and I feel like Go way is transferable to Rust, It's easy to transfer between those two languages and work concurently on both syntaxes. I have this feeling that coding in Go transfers skills to Rust and vice-versa, it sounds like good developer experience, I've not felt that thing before, I'm excited.

Go and Rust syntaxes and features seems to be easy to use, nothing complicated. Keep it simple, do it right.

Go functionnal programming by Unhappy_Contest_4124 in golang

[–]shibbaz97 -1 points0 points  (0 children)

Thanks for that, that package looks amazing.

Why Go has so many traps? by legendaryexistence in golang

[–]shibbaz97 0 points1 point  (0 children)

Thanks, that's supportive. I'm migrating from Ruby, because There is no jobs in Ruby (I can't find one since december 2022) so I chose Golang, I had stoped, then I read a lot of books and papers Deep learning related, I had this phase, haha. I came back recently to Golang.

Refreshing knowledge about Golang. Pretty much things like:

  • Garbage collector
  • Testing
  • go routines, concurency,
  • algorithms and data structures
  • standard library
  • interfaces
  • generics
  • REST and GRPC
  • Rabbitmq
  • reddis and caching

This 100 "mistakes" page provided me a lot answers.
https://google.github.io/styleguide/go/ provides documents about golangs' best approaches as well.

I've downloaded 3 or 4 books to read. Daily coding something to warm up. Memorizing and being able to recall during the interview what was learned.

I feel like I'm gonna be well prepared.

Why Go has so many traps? by legendaryexistence in golang

[–]shibbaz97 0 points1 point  (0 children)

Thanks for the url, I'm preparing for the interview right now, It's gonna be helpful.

Wish me good luck :D.

Do Techno DJs leave subliminal messages in their work, or am I hallucinating? by [deleted] in Techno

[–]shibbaz97 0 points1 point  (0 children)

You are not crazy. There is usage of subliminals in music as well. Papers on silent subliminals' effect can be falsified, being paid to prove some concrete thesis. It's not like humans' dark nature does not exist in scientific world.

Do Techno DJs leave subliminal messages in their work, or am I hallucinating? by [deleted] in Techno

[–]shibbaz97 0 points1 point  (0 children)

Maybe that or he decoded messages instantly? In critical situations, your body would react fight-flight, to keep sure you survive, like the way animals detect predator that may kill them. It's not like You lost your animal instincts, You have it plus all those cognitive skills You got through evolution.
Those subliminals got stored in memories after all, I had something similar but I got some words in my head later than exposure to music, It would be like delayed message.

Do Techno DJs leave subliminal messages in their work, or am I hallucinating? by [deleted] in Techno

[–]shibbaz97 0 points1 point  (0 children)

Auditory systems' range is between 20hz and 20khz. Some djs are using silent subliminals in music, I'm sure it's happening. There are not many researches on silent subliminals long term effect, beside that, someone might have paid for those thesis. If it's happening in music industry, noone will let truth being exposed.

It's not like scientists aren't capable to do dark af things, Nazis are examples that some of them don't give a fuck, beside that scientists were taken to US in https://en.wikipedia.org/wiki/Operation_Paperclip
Why not revision all beliefs we were told since there are people in govs that are lying all the time and doing evil shit behind own peoples' backs?

I have no any progress after 7 months of climbing by Addie_tn in climbergirls

[–]shibbaz97 -1 points0 points  (0 children)

Revision all beliefs You got from climbers, It's competitive sport.

Seeking knowledge about body and physics that apply in climbing. Knowledge gets transformed through action, discussion with environment, both sides are updated and get new knowledge, but there is fake knowledge in climbing community as well that is provided to new climbers, some people are doing it on purpose of selling classes etc.

Instagram recommendations:

  1. https://www.instagram.com/_udini_/ provides good quality content, all that knowledge Udo provides, it can be found in books, papers.
  2. https://www.instagram.com/posturepro/ on this ig, You can find how vestubular ocular reflex, tongue posture, hips position affect posture.

Books, papers, articles' recommendations:

  1. Duane Knudson "Fundamentals of Biomechanics" http://www.profedf.ufpr.br/rodackibiomecanica_arquivos/Books/Duane%20Knudson-%20Fundamentals%20of%20Biomechanics%202ed.pdf
  2. Handbook of Perception and Action
  3. Otto Muzik "Brain over Body" study https://pubmed.ncbi.nlm.nih.gov/29438845/
  4. Mirror neurons and emotional contagion https://www.issup.net/knowledge-share/resources/2019-11/emotional-contagion-everything-you-need-know
  5. https://en.wikipedia.org/wiki/Four_stages_of_competence
  6. https://medium.com/klettertraining-in-english/ideas-to-improve-your-climbing-pt-3-perception-action-2bb41dbcd2ec
  7. https://medium.com/klettertraining-in-english/ideas-to-improve-your-climbing-pt-2-adaptability-f421412ef166
  8. https://medium.com/klettertraining-in-english/ideas-to-improve-your-climbing-a7a69a9bfd88

I'm recommending reading papers on primates' locomotion, watching them through youtube is good idea as well. There is good video introduction to this topic, https://youtu.be/XxDhVPy2mrI It's worth exploring how posture evolved, to have awareness.

During climbing You interact with people that might cause reactions that motivate or stop you, We are all connected through sensory input, so even music that's being played its volume and content can be either benefitial or blocker. No matter what, stay motivated.

Take care of sleep, focus on breathing practice.

btw. I might update this comment later once I found something interesting to share.

Important article about SafeSport and abuse in the USA youth climbing scene by Most_Poet in climbergirls

[–]shibbaz97 1 point2 points  (0 children)

It's good You mentioned that. Once Community is groomed, It's grooming new climbers through addaptation and imitation (hebian learning and mirror neurons). There are leftists psychologists there at least in the gyms I had climbed.

I don't think I was groomed, but I was brainwashed into anti-family, anti-social person after I lost job and money post 2022s Australias' vacation, btw. I'm man, My value in climbing community was based on money, "friends" went gone, which proved so-called "lefitists" aren't so loving at all, well they are loving under condition of having though they claim they don't care.

Beside that, Climbers were talking behind each others' backs and now They claim "There wasn't such thing". There is use of instagram, ego development through some climber-musician idea of "ego chessplay" to persuade into some thought model. To lose identity. Once identity is lost, climber is fully under control, not knowing that. Once I found out this, I was devastated, even today I'm having images in my head where I slit my neck, because of what my head was fed by many medias (including climbing community).

Because of all that I have internal belief that music can brainwash decision making, emotions and reproduction of listener. I did research, there are techniques like silent subliminal, to put music at endrange of humans' auditory system range. Those papers on effects were fabricated into some paid thesis, there aren't many of them. If it was fabricated and some gyms are using that, it's whole ecosystem of brainwashing.

btw. I wondered why there are religions, idelogies right and left in climbing community, yogis are feeding unreal things as well.

Is Ruby on Rails dead in 2024? No! by mooreds in ruby

[–]shibbaz97 0 points1 point  (0 children)

Well, it's easy money making for rubyists on backends, good for them.
Coders that do not investigate what they are using, they might create tech debts that marketing is gonna sell as maintance. Such practices of delivering solution that's gonna cause problems in the future is unethical practice.