Jones Beachblog.fromscratchcode.com·Oct 7, 2024Declarative macro magic from Axum in RustTake a quick glance at the code snippet below. Without thinking too hard, is get a function or a method? How about post? Router::new() .route(“/one”, get(get_handler).post(post_handler)) .route(“/two”, post(post_handler).get(get_handler)) Wh...Discuss·108 readsRust
Yuval Aloniyuval.hashnode.dev·Oct 5, 2024Making DOM Text Nodes ReactiveIntroduction One of the main aspects of popular client-side frameworks is reactivity, which means a “binding” between two variables: whenever one value changes, the other is automatically adjusted. This binding is usually one-way in the context of th...Discuss·51 readsdefineproperty
최명규bench87.hashnode.dev·Sep 17, 2024Scala3 - inline스칼라 3에는 inline이라는 새로운 키워드가 도입되었습니다. 이 키워드는 매크로와 구별되면서도 컴파일 타임에 일부 코드 조작을 수행할 수 있는 메타프로그래밍 개념을 가집니다. inline? inline은 다른 언어에서 오래 전에 등장한 키워드입니다. 컴파일러가 함수에 대한 모든 호출을 함수의 본문 내용으로 채워지도록 합니다. 이렇게 하면 함수 호출이 없으므로 애플리케이션의 성능이 향상될 수 있습니다. 그러나 다른 한편으로는 실행 파일이 커질...DiscussScala Metaprogrammingscala inline
Siddharth Sinha (Sid)sidev.hashnode.dev·Mar 31, 2024Compile time programming is coolFirst of all, to all those sweet JS only users … please bug off. I can’t help you, god can’t either. I am not sure why you even clicked on this article given that your best contender is a fully ignorable linter which generates back to shitty language...Discuss·4 likes·234 readsProgramming Tips
Ahmed Nadarahmednadar.hashnode.dev·Mar 13, 2024"Meta or not to Meta" programming in RubyIn the ever-evolving landscape of Ruby on Rails, how we choose to handle code can be as diverse as the developers themselves. Recently, my exploration into refactoring Rails helper to generate UI component names dynamically, led me down the path of m...Discuss·5 likesRuby
Mark Hammonsmhammons.hashnode.dev·Mar 11, 2024A false endIn the last post, a type class named TypeRelation was added to the implementation of platform-dependent types, enabling the creation of mappings between platform-dependent types and basic integral types like Long based on the Platform type of the app...Discuss·635 readsCalculating 1 + 2 in a cross platform wayScala
sandip paridatechlye.hashnode.dev·Dec 29, 2023Mastering Metaprogramming in Ruby: The Art of Crafting Code that Writes CodeIntroduction: Metaprogramming in Ruby opens the door to an enchanting world where code can dynamically create other code. Let's unravel the secrets behind this powerful technique! What is Metaprogramming? Metaprogramming allows us to write code that ...Discuss·10 likesRuby
NearformforNearformnearform.hashnode.dev·Sep 27, 2023JavaScript Codeception: A Journey into Meta ProgrammingBy Marco Ippolito Learning about meta programming is essential for becoming a better and more creative coder Meta programming is a fascinating and powerful concept that goes beyond the traditional boundaries of programming. It empowers developers to ...Discuss·30 readsiwritecode
Abdelfatah Hezemaabduelfatah.hashnode.dev·Sep 18, 2023Ruby Metaprogramming: A Key to Elegant Code and Productivity - (Part 1)1. Introduction to Metaprogramming Metaprogramming is one of the pillars that grant Ruby its expressiveness and elegance. At its heart, metaprogramming in Ruby allows code to be self-aware, enabling it to modify itself or even create new code during ...Discuss·1 like·91 readsRuby
Nikhil Akkinikhilakki.in·Aug 19, 2023Understanding the Power of Meta-programming: A Journey into Compile-Time and Runtime MagicIntroduction Metaprogramming, a fascinating programming technique, empowers developers to write code that generates or manipulates other code. By treating code as data, metaprogramming opens up new realms of flexibility and efficiency. This blog post...Discuss·1 like·294 readsPython DevelopmentMetaprogramming