DEKTEN

KANJICODER_2021_01_08

Jan 7th, 2021 (edited)
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. I wrote some stuff in golang and really liked it.
  2. Their approach to OOP (object oriented programming) was
  3. very interesting. Then somewhere I read:
  4.  
  5. "Go is just a modern C with garbage collection."
  6.  
  7. And as someone who often fought the garbage collector
  8. in actionscript 3.0... I thought to myself...
  9.  
  10. Maybe I have what it takes to learn C?
  11.  
  12. And now I exclusively write Pure C™ code.
  13.  
  14. I have been starting to hate golang more these days though.
  15. They have authoritarian semantics about how you are allowed
  16. to format your code. I really prefer a "lax comma" style like:
  17.  
  18. void someFunction(
  19. /**/ int param_1
  20. , int param_2
  21. , int param_3
  22. ){ ...}
  23.  
  24. And I do other weird stuff... Golang will refuse to compile if you
  25. do stuff like this. Golang also does the horrible evil
  26. "semi-colin injection" thing that javascript does.
  27.  
  28. I don't think semi colons should be optional.
  29.  
  30. Formatting: Should be for the human.
  31. Semicolons: Are for the computer.
  32.  
  33. Semi-colon injection violates these separation of concerns as far
  34. as I am concerned.
  35.  
  36. While I am here, here are some twitch coding streams for C code:
  37.  
  38. This person is working on a UI library for C using OpenGL:
  39. https://www.twitch.tv/heroseh
  40.  
  41. This person is me, working on 2.5 dimensional auto tiling engine:
  42. www.twitch.com/kanjicoder
  43.  
  44. If you pop in and ask me some questions, I'll answer.
  45. I don't really think I am that smart though.
  46. But I am highly creative, industrious, and obsessive.
  47. And with that comes some rare insights.
  48. ( No such thing as "unique" )
  49.  
  50. I didn't write it like this.
  51. I'll paste the original formatting to
  52. pastebin for anyone actually interested.
  53.  
  54. https://pastebin.com/XJbt1ENc
Add Comment
Please, Sign In to add comment