home.social

#codeing — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #codeing, aggregated by home.social.

  1. i have to switch one of my scripts to use getopts instead of just a case statement pray for me ;_;

    #bash #CommandLine #codeing

  2. i have to switch one of my scripts to use getopts instead of just a case statement pray for me ;_;

    #bash #CommandLine #codeing

  3. i have to switch one of my scripts to use getopts instead of just a case statement pray for me ;_;

    #bash #CommandLine #codeing

  4. i have to switch one of my scripts to use getopts instead of just a case statement pray for me ;_;

    #bash #CommandLine #codeing

  5. This is how I roll when I need to mark models as "completed", or anything else:

    1. Allow the marking to be idempotent
    2. If not idempotent, throw exceptions on duplicated calls
    3. Save is opt-out, to avoid more than one update query.

    #Programming #PHP #Laravel #Database #DB #WebDevelopment #WebDev #SoftwareDevelopment #Software #Codeing #code

  6. This is how I roll when I need to mark models as "completed", or anything else:

    1. Allow the marking to be idempotent
    2. If not idempotent, throw exceptions on duplicated calls
    3. Save is opt-out, to avoid more than one update query.

    #Programming #PHP #Laravel #Database #DB #WebDevelopment #WebDev #SoftwareDevelopment #Software #Codeing #code

  7. This is how I roll when I need to mark models as "completed", or anything else:

    1. Allow the marking to be idempotent
    2. If not idempotent, throw exceptions on duplicated calls
    3. Save is opt-out, to avoid more than one update query.

    #Programming #PHP #Laravel #Database #DB #WebDevelopment #WebDev #SoftwareDevelopment #Software #Codeing #code

  8. This is how I roll when I need to mark models as "completed", or anything else:

    1. Allow the marking to be idempotent
    2. If not idempotent, throw exceptions on duplicated calls
    3. Save is opt-out, to avoid more than one update query.

    #Programming #PHP #Laravel #Database #DB #WebDevelopment #WebDev #SoftwareDevelopment #Software #Codeing #code

  9. This is how I roll when I need to mark models as "completed", or anything else:

    1. Allow the marking to be idempotent
    2. If not idempotent, throw exceptions on duplicated calls
    3. Save is opt-out, to avoid more than one update query.

    #Programming #PHP #Laravel #Database #DB #WebDevelopment #WebDev #SoftwareDevelopment #Software #Codeing #code

  10. ☑️ Day 19/100: #Leetcode daily question

    🟨 Question: 670. Maximum Swap

    The question was good and I was able to do it but went for the solutions tab because I was not feeling like solving anymore. The solution was using a greedy approach.

    🐈‍⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions

    🔗 Solution Link: github.com/akshatsingh1718/lee

    🔗 My Leetcode Github: github.com/akshatsingh1718/lee

    #codeing #Algorithms #python #greedy

  11. ☑️ Day 19/100: #Leetcode daily question

    🟨 Question: 670. Maximum Swap

    The question was good and I was able to do it but went for the solutions tab because I was not feeling like solving anymore. The solution was using a greedy approach.

    🐈‍⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions

    🔗 Solution Link: github.com/akshatsingh1718/lee

    🔗 My Leetcode Github: github.com/akshatsingh1718/lee

    #codeing #Algorithms #python #greedy

  12. ☑️ Day 19/100: #Leetcode daily question

    🟨 Question: 670. Maximum Swap

    The question was good and I was able to do it but went for the solutions tab because I was not feeling like solving anymore. The solution was using a greedy approach.

    🐈‍⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions

    🔗 Solution Link: github.com/akshatsingh1718/lee

    🔗 My Leetcode Github: github.com/akshatsingh1718/lee

    #codeing #Algorithms #python #greedy

  13. ☑️ Day 19/100: #Leetcode daily question

    🟨 Question: 670. Maximum Swap

    The question was good and I was able to do it but went for the solutions tab because I was not feeling like solving anymore. The solution was using a greedy approach.

    🐈‍⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions

    🔗 Solution Link: github.com/akshatsingh1718/lee

    🔗 My Leetcode Github: github.com/akshatsingh1718/lee

    #codeing #Algorithms #python #greedy

  14. ☑️ Day 19/100: #Leetcode daily question

    🟨 Question: 670. Maximum Swap

    The question was good and I was able to do it but went for the solutions tab because I was not feeling like solving anymore. The solution was using a greedy approach.

    🐈‍⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions

    🔗 Solution Link: github.com/akshatsingh1718/lee

    🔗 My Leetcode Github: github.com/akshatsingh1718/lee

    #codeing #Algorithms #python #greedy

  15. CW: Rant about configuration formats

    Im currently working on my dlang serialization framework and just thought about adding maybe yaml, but the spec is so fucking complex, half the time it even dosnt know what it wants to even say. Like, it cannot tell you straigt what characters are allowed in an key, heck it dosnt even can decide how keys should be parsed. For example you can put a `?` at the start of a line (after indentation ofc) and then write arbitary yaml that then gets parsed and used as the key! Like wtf!

    So I tought: "maybe try toml instead", but theyre just the same insane but in a different way; like keys and tables/sections cannot have the same value since a table is just syntactic sugar for a key with an inline-table aka object. End bc it's not enough already we invented that it would be nice to put another pair of brackets (`[]`) around the section/table to say: hey this is now an **array of tables**! Like very nice for serializers and stuff.... *sigh*

    #programming #technology #serialization #fileformats #code #codeing #dlang

  16. CW: Rant about configuration formats

    Im currently working on my dlang serialization framework and just thought about adding maybe yaml, but the spec is so fucking complex, half the time it even dosnt know what it wants to even say. Like, it cannot tell you straigt what characters are allowed in an key, heck it dosnt even can decide how keys should be parsed. For example you can put a `?` at the start of a line (after indentation ofc) and then write arbitary yaml that then gets parsed and used as the key! Like wtf!

    So I tought: "maybe try toml instead", but theyre just the same insane but in a different way; like keys and tables/sections cannot have the same value since a table is just syntactic sugar for a key with an inline-table aka object. End bc it's not enough already we invented that it would be nice to put another pair of brackets (`[]`) around the section/table to say: hey this is now an **array of tables**! Like very nice for serializers and stuff.... *sigh*

    #programming #technology #serialization #fileformats #code #codeing #dlang

  17. CW: Rant about configuration formats

    Im currently working on my dlang serialization framework and just thought about adding maybe yaml, but the spec is so fucking complex, half the time it even dosnt know what it wants to even say. Like, it cannot tell you straigt what characters are allowed in an key, heck it dosnt even can decide how keys should be parsed. For example you can put a `?` at the start of a line (after indentation ofc) and then write arbitary yaml that then gets parsed and used as the key! Like wtf!

    So I tought: "maybe try toml instead", but theyre just the same insane but in a different way; like keys and tables/sections cannot have the same value since a table is just syntactic sugar for a key with an inline-table aka object. End bc it's not enough already we invented that it would be nice to put another pair of brackets (`[]`) around the section/table to say: hey this is now an **array of tables**! Like very nice for serializers and stuff.... *sigh*

    #programming #technology #serialization #fileformats #code #codeing #dlang

  18. CW: Rant about configuration formats

    Im currently working on my dlang serialization framework and just thought about adding maybe yaml, but the spec is so fucking complex, half the time it even dosnt know what it wants to even say. Like, it cannot tell you straigt what characters are allowed in an key, heck it dosnt even can decide how keys should be parsed. For example you can put a `?` at the start of a line (after indentation ofc) and then write arbitary yaml that then gets parsed and used as the key! Like wtf!

    So I tought: "maybe try toml instead", but theyre just the same insane but in a different way; like keys and tables/sections cannot have the same value since a table is just syntactic sugar for a key with an inline-table aka object. End bc it's not enough already we invented that it would be nice to put another pair of brackets (`[]`) around the section/table to say: hey this is now an **array of tables**! Like very nice for serializers and stuff.... *sigh*

    #programming #technology #serialization #fileformats #code #codeing #dlang

  19. Unpopular opinion: business logic is boring.

    Compilers, kernels, drivers, hardware, parallelism / async, tooling & frameworks, how things interact, integrate and complement each other; now **thats** the interesting shit!

    #developer #programming #development #IT #code #codeing #unpopularopinon #frameworks #tooling #parallelism

  20. Unpopular opinion: business logic is boring.

    Compilers, kernels, drivers, hardware, parallelism / async, tooling & frameworks, how things interact, integrate and complement each other; now **thats** the interesting shit!

    #developer #programming #development #IT #code #codeing #unpopularopinon #frameworks #tooling #parallelism

  21. Unpopular opinion: business logic is boring.

    Compilers, kernels, drivers, hardware, parallelism / async, tooling & frameworks, how things interact, integrate and complement each other; now **thats** the interesting shit!

    #developer #programming #development #IT #code #codeing #unpopularopinon #frameworks #tooling #parallelism

  22. OKAY, so #Symfony question for you experts out there.

    I have an entity that I'm using to store encrypted data in the DB. My entity needs to get a parameter from the parameter bag that's unique to the .env file it's in.

    Symfony basically says "don't do this" except that I really need to do it. If I try to use a setter, I'm having to add a setter for this for EVERY time I ask for either the entity, or one of its parents.

    That is... A lot... of calls to a setter where instead I could just have the entity get the parameter instead.

    And no, can't be a class constant (unless there's some way that I haven't found that lets you set constants based on params).

    So, how do I do this? Would appreciate some advice here. #symfony #php #codeing

  23. OKAY, so #Symfony question for you experts out there.

    I have an entity that I'm using to store encrypted data in the DB. My entity needs to get a parameter from the parameter bag that's unique to the .env file it's in.

    Symfony basically says "don't do this" except that I really need to do it. If I try to use a setter, I'm having to add a setter for this for EVERY time I ask for either the entity, or one of its parents.

    That is... A lot... of calls to a setter where instead I could just have the entity get the parameter instead.

    And no, can't be a class constant (unless there's some way that I haven't found that lets you set constants based on params).

    So, how do I do this? Would appreciate some advice here. #symfony #php #codeing

  24. OKAY, so #Symfony question for you experts out there.

    I have an entity that I'm using to store encrypted data in the DB. My entity needs to get a parameter from the parameter bag that's unique to the .env file it's in.

    Symfony basically says "don't do this" except that I really need to do it. If I try to use a setter, I'm having to add a setter for this for EVERY time I ask for either the entity, or one of its parents.

    That is... A lot... of calls to a setter where instead I could just have the entity get the parameter instead.

    And no, can't be a class constant (unless there's some way that I haven't found that lets you set constants based on params).

    So, how do I do this? Would appreciate some advice here. #symfony #php #codeing

  25. OKAY, so #Symfony question for you experts out there.

    I have an entity that I'm using to store encrypted data in the DB. My entity needs to get a parameter from the parameter bag that's unique to the .env file it's in.

    Symfony basically says "don't do this" except that I really need to do it. If I try to use a setter, I'm having to add a setter for this for EVERY time I ask for either the entity, or one of its parents.

    That is... A lot... of calls to a setter where instead I could just have the entity get the parameter instead.

    And no, can't be a class constant (unless there's some way that I haven't found that lets you set constants based on params).

    So, how do I do this? Would appreciate some advice here. #symfony #php #codeing

  26. OKAY, so #Symfony question for you experts out there.

    I have an entity that I'm using to store encrypted data in the DB. My entity needs to get a parameter from the parameter bag that's unique to the .env file it's in.

    Symfony basically says "don't do this" except that I really need to do it. If I try to use a setter, I'm having to add a setter for this for EVERY time I ask for either the entity, or one of its parents.

    That is... A lot... of calls to a setter where instead I could just have the entity get the parameter instead.

    And no, can't be a class constant (unless there's some way that I haven't found that lets you set constants based on params).

    So, how do I do this? Would appreciate some advice here. #symfony #php #codeing

  27. Am 31.03.2023 schließt git.codecoop.org. endgültig. Bitte migriert Eure Projekte bis zu diesem Zeitpunkt.

    Seit nunmehr 2 Jahrzehnten(!) ist “codecoop.org” ein Ort, an dem Menschen gemeinsam Software entwickeln

    so36.net/news/codecoop-migrati

    #so36 #github #codeing

  28. Am 31.03.2023 schließt git.codecoop.org. endgültig. Bitte migriert Eure Projekte bis zu diesem Zeitpunkt.

    Seit nunmehr 2 Jahrzehnten(!) ist “codecoop.org” ein Ort, an dem Menschen gemeinsam Software entwickeln

    so36.net/news/codecoop-migrati

    #so36 #github #codeing

  29. Am 31.03.2023 schließt git.codecoop.org. endgültig. Bitte migriert Eure Projekte bis zu diesem Zeitpunkt.

    Seit nunmehr 2 Jahrzehnten(!) ist “codecoop.org” ein Ort, an dem Menschen gemeinsam Software entwickeln

    so36.net/news/codecoop-migrati

    #so36 #github #codeing

  30. Am 31.03.2023 schließt git.codecoop.org. endgültig. Bitte migriert Eure Projekte bis zu diesem Zeitpunkt.

    Seit nunmehr 2 Jahrzehnten(!) ist “codecoop.org” ein Ort, an dem Menschen gemeinsam Software entwickeln

    so36.net/news/codecoop-migrati

    #so36 #github #codeing