Ahmed Abdelaalahmedabdelaal.hashnode.dev·Mar 11, 2024Understanding Ruby Modules: Prepend vs. IncludeIntroduction: Module is a collection of constants, methods, classes, and variables in a container. Modules implement the mixin facility module Animal def sound puts 'animal sound' end end class Dog include Animal ...Discuss·10 likesprepend
Asfia Aimanasfiaaiman.hashnode.dev·Feb 17, 2024`Include` and `Require` in PHPIn PHP, include and require are two constructs used to include files in a script. Both serve a similar purpose, but there are key differences between them. Understanding these differences is crucial for efficient and error-free PHP programming. In th...Discussrequire
David Carrdcblog.dev·Jan 18, 2024Creating Flexible Layouts in Laravel with Yields, Includes, and SlotsYields In Laravel, the @yield directive is used in blade templates to define a section that can have code injected or "yielded" by child views. Here's a basic explanation of how @yield works: Defining a section with @yield('name') In a blade file typ...Discuss·1 like·2.3K readsLaravel
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 24, 2023Do you really understand #include?The #include directive is used in C programming to include the contents of a header file into the source code during the compilation process. This is a fundamental mechanism for organizing code into modular components and reusing code across multiple...DiscussC Programminginclude
Bright Ugbedevbrightly.hashnode.dev·Apr 18, 2023What #include, #define and others really do in your C ProgramA good majority of programmers (especially beginners) when starting in learning about the C language, often find it hard to understand essential concepts required for every C program to function correctly. This is not only experienced in the Compiled...Discuss·10 likes·45 readsc programming
Joshua Olumoyintitobzzz.hashnode.dev·Mar 17, 2023The Header file in CWhy and what is a Header file? A header file is a file that contains declarations for various structures such as functions, variables, macros, and other constructs used in C programs. The "#include" preprocessor directive is used to include header fi...DiscussC
Anand Baraikanandbaraik.hashnode.dev·Apr 13, 2022What is the difference between include and require in PHP?Before answering this question i’ll brief you about why we use include() and require() in PHP - It's use to insert the content of one PHP file into another PHP file before the server executes it. Now, little more details about include() and require...Discuss·131 readsrequire
Hari Krishna Anemharikrishna.hashnode.dev·Jan 2, 2022JavaScript: Filter array values// Filter array values that are not present in array b let a = [1,2,3,5]; let b = [2,1,4,3]; let c = a.filter(item => !b.includes(item)); console.log(c); Output: [ 5 ] Execute above code hereDiscussJavaScript