home.social

#codetips — Public Fediverse posts

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

fetched live
  1. 🐍💡 ¿Sabías que…

    En Python, cuando modificás un atributo de clase desde un objeto, en realidad no estás cambiando el atributo original, sino que el objeto crea su propio atributo, independiente del de la clase?

    El atributo de clase sigue intacto, pero el objeto ahora tiene su propia copia.

    juncotic.com/poo-encapsulamien

    #Python #Programación #DesarrolloSoftware #CodeTips #SoftwareEngineering #juncotic

  2. Level up your JavaScript game with these 8 essential "Noob vs Pro" code cleanups. Stop writing JS like it's 2012. ✍️ Hit save and make your code cleaner, faster, and more readable.

    #JavaScript #WebDevelopment #CodeTips #JSPro

  3. Discover how Ruby’s powerful map method transforms collections with clean, readable code. Dive into real-world examples, best practices, and pro tips to enhance your development workflow. Ready to write smarter Ruby?
    🔗 Read the full guide: railscarma.com/blog/how-to-use

    #Ruby #Rails #CodeTips #CleanCode #RailsCarma

  4. Discover how Ruby’s powerful map method transforms collections with clean, readable code. Dive into real-world examples, best practices, and pro tips to enhance your development workflow. Ready to write smarter Ruby?
    🔗 Read the full guide: railscarma.com/blog/how-to-use

    #Ruby #Rails #CodeTips #CleanCode #RailsCarma

  5. 10 sneaky PHP performance traps—plus the fixes that actually work.

    This post covers the real-world problems I’ve hit scaling PHP apps:
    mikelopez.com/blog/1096

    #PHP #Performance #Optimization #WebDev #CodeTips

  6. Working on a new talk called 'Fast-Track Your Path to Senior Developer' for the Solution2 conference. One thing I’m focusing on is how mastering just a few key skills early—like making code readable, keeping it simple, and making it easy to change—can set you apart quickly.

    #DevLife #SeniorDeveloper #CodingSkills #CodeQuality #TechGrowth #CareerGrowth #CleanCode #CodeTips #CSharp #SoftwareEngineering @bot

  7. Working on a new talk called 'Fast-Track Your Path to Senior Developer' for the Solution2 conference. One thing I’m focusing on is how mastering just a few key skills early—like making code readable, keeping it simple, and making it easy to change—can set you apart quickly.

    #DevLife #SeniorDeveloper #CodingSkills #CodeQuality #TechGrowth #CareerGrowth #CleanCode #CodeTips #CSharp #SoftwareEngineering @bot

  8. Understanding string slicing in #RustLang 🦀:

    Remember: slices are based on bytes, not characters! Slicing an ASCII string is different from slicing a multibyte Unicode string. If you slice incorrectly, Rust will panic at runtime. ⚠️

    let multibyte_string = "España";
    let slice_multibyte = &multibyte_string[..5]; // This will panic! 🚫

    Ensure your slices align with valid UTF-8 character boundaries.

    #Programming #CodeTips #LearningRust #RustCommunity #Unicode

  9. Understanding string slicing in #RustLang 🦀:

    Remember: slices are based on bytes, not characters! Slicing an ASCII string is different from slicing a multibyte Unicode string. If you slice incorrectly, Rust will panic at runtime. ⚠️

    let multibyte_string = "España";
    let slice_multibyte = &multibyte_string[..5]; // This will panic! 🚫

    Ensure your slices align with valid UTF-8 character boundaries.

    #Programming #CodeTips #LearningRust #RustCommunity #Unicode

  10. Consistent naming 🏷️ and length 📏 for samples offers a myriad of benefits for you (and others!). Utilise str_pad() to easily pad your sample numbers. #rstats #CodeTips

  11. Consistent naming 🏷️ and length 📏 for samples offers a myriad of benefits for you (and others!). Utilise str_pad() to easily pad your sample numbers. #rstats #CodeTips