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. "Đang launch dự án CoNum trên GitHub một tuần, cần phản hồi ý kiến từ cộng đồng! Mời bạn kiểm tra nền tảng xử lý số họcRobin. #GitHub #CoNum #BộGitHub #Feedback #Xử lý số #DevVietnam #CodeTips"

    reddit.com/r/SideProject/comme

  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. Want to edit your website files directly from Notepad++?
    📁 Learn how to configure FTP/SFTP in Notepad++ using NppFTP plugin!
    No more switching between editor and FTP client.
    🎥 Watch now: youtu.be/kw2HuPtECOc
    #NotepadPlusPlus #FTPSetup #WebDevTools #CodeTips

  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. 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

  10. Code cohesion is like a group of strangers who are forced to work together - they have no idea what's going on, and everything is a mess. It's a recipe for disaster in code and in life.

    Trying to write test cases for highly cohesive code is like trying to untangle a knot of Christmas lights - every module is so tightly dependent on each other that it's almost impossible to separate them.

Share on Mastodon

Enter the server where you have an account.