• 0 Posts
  • 15 Comments
Joined 1 year ago
cake
Cake day: July 15th, 2023

help-circle
  • My company pays it for me. My use cases are split between new development, refactoring and debugging.

    For new code, given that our code base is proprietary but very extensive, it provides nice code snippets that would be a pain to write by hand (it’s mostly C code) such as test code

    I can focus on the concepts and have the autocomplete do the rest for me. I swap keypresses for reviewing code, which is not bad.

    For refactoring, I seldom use it because I haven’t found an use case for it. Most of the changes involve moving code around, adding glue or deleting dead code.

    For debugging, I sometimes use the chat to get documentation on public APIs from Microsoft or other places. I use this documentation to check for invariants and to reduce the scope of what I’m trying to find out.



  • My washing machine has a wheel to select multiple, heat-specific programs but also has a “cold” switch for other programs. I seldom use the heat specific ones, unless I’m particularly interested in a hot wash.

    So I guess that the mileage may vary by country (I’m in Spain) and how old a washing machine is (mine is quite old).









  • It seems that Meta is low-key following the “everything app” goal that Elon Musk wanted for Twitter/X, tying products like WhatsApp, Instagram, Threads while at the same time distancing themselves from the Facebook brand.

    For example, WhatsApp is a chat app that has been enhanced to have Business Accounts, which allows for Bots, Stores and Payments. Further integration with Instagram could potentially use these features to tie together content+business. Threads is an enhancement over Instagram to add textual content.




  • As far as I recall and for Linux, the shebang is interpreted by the kernel to execute the text file as the input of a given program. Are you talking about adding a shebang to a C source file? If so, this would not work, because the hash could be interpreted as a preprocessor instruction.

    Take into consideration that, in bash, you can use ${0} to get the filename of the current script. If you want the count of lines in your script wc -l ${0} ought do the trick.

    If you’re using C, you could rely on the FILE define for your imolementation but the rest implies reading the source code and then acting on it.