• ClipSaver
  • dtub.ru
ClipSaver
Русские видео
  • Смешные видео
  • Приколы
  • Обзоры
  • Новости
  • Тесты
  • Спорт
  • Любовь
  • Музыка
  • Разное
Сейчас в тренде
  • Фейгин лайф
  • Три кота
  • Самвел адамян
  • А4 ютуб
  • скачать бит
  • гитара с нуля
Иностранные видео
  • Funny Babies
  • Funny Sports
  • Funny Animals
  • Funny Pranks
  • Funny Magic
  • Funny Vines
  • Funny Virals
  • Funny K-Pop

The hidden genius of Trongate's underscore naming convention скачать в хорошем качестве

The hidden genius of Trongate's underscore naming convention 1 год назад

скачать видео

скачать mp3

скачать mp4

поделиться

телефон с камерой

телефон с видео

бесплатно

загрузить,

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
The hidden genius of Trongate's underscore naming convention
  • Поделиться ВК
  • Поделиться в ОК
  •  
  •  


Скачать видео с ютуб по ссылке или смотреть без блокировок на сайте: The hidden genius of Trongate's underscore naming convention в качестве 4k

У нас вы можете посмотреть бесплатно The hidden genius of Trongate's underscore naming convention или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:

  • Информация по загрузке:

Скачать mp3 с ютуба отдельным файлом. Бесплатный рингтон The hidden genius of Trongate's underscore naming convention в формате MP3:


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса ClipSaver.ru



The hidden genius of Trongate's underscore naming convention

One of the more controversial aspects of Trongate has been its use of the underscore naming convention. This practice involves prefixing method names with an underscore to prevent these methods from being invoked via URLs. For example: function _secret() { echo "Secret information ahoy!"; } Trongate is not the first PHP framework to adopt this convention. Previously, frameworks like Zend Framework 1, Yii 1, and earlier versions of CodeIgniter all used this convention. However, with the evolution of PHP and its support for visibility keywords, this practice has become less common in favor of explicitly defining method visibility (public, protected, private). So, what's going on here? Is Trongate just an old-fashioned framework? Even if Trongate's usage of the underscore method can be justified in terms of giving developers fewer characters to type, one would have to ask, "Is that enough justification for holding back the hands of time and doing something that none of the other modern PHP frameworks are currently doing?" I don't think it is. I find shortcuts (or shorthand ways of doing things) to be unsatisfying and intellectually bankrupt. Don't get me wrong, shortcuts are nice. Holy C - the programming language that was invented by Terry Davis - is full of shortcuts. By that I mean that he found ways of doing things that require fewer characters than with C / C++. It's nice. It's interesting. However, "it uses fewer characters" is not a compelling enough reason for asking developers to change their way of doing things. We need more. We need to do better! I'm sure that in a week or so, it would be possible to go through the entire Trongate framework and ditch all of those pesky "underscore" methods. Instead, we could have all of the methods being named properly and being all assigned as "public," "private," or "protected." If such an upgrade were to happen, we may suffer some breaking changes for a few days, but it would be worth it because - in the end - Trongate would be falling into line with the rest of the PHP community and we'd finally be doing "proper PHP." Seems like a tempting idea, doesn't it? Alas! None of the preceding paragraph is true. The main problem here is that the case for ditching the underscore naming convention is based on flawed logic and a fundamental misunderstanding of the nature of OOP. Put simply, using the underscore naming convention is not synonymous with using access modifiers like "private" or "protected." In Trongate, when you have two controller classes and each class is contained within its own module (let's call it "Module A" and "Module B"), those two modules are entirely distinct and independent of each other. You can think of them as being two entirely independent PHP classes. "Module A" does not know about "Module B." It does not extend Module B. It does not depend upon Module B. Even though both modules extend the main Trongate class, "Module A" works entirely independently of "Module B." This means that the only way for "Module A" to load a method from "Module B" would be if the target method (on "Module B", in this instance) happens to be "public." You can set up a little test and try this for yourself. I guarantee, you cannot invoke "Module B" from "Module A" unless you're invoking a "public" method. The instant you change a method to "protected" or "private," it immediately becomes unusable for other modules. Please don't take my word for it. If you have the time, I encourage you to set up a little test and see for yourself. Everything I have just described is perfectly in alignment with the rules of OOP. Contrary to what you might think, Trongate's usage of the underscore method is not a shorthand way of making a method "private" or "protected." Instead, it's a means of modifying methods so that they cannot be invoked via the URL. The above distinction is nuanced and subtle. What it means (and it took me several days to get my head around this) is that - for Trongate - the underscore naming convention is a necessity. That seemingly antiquated way of doing things is a critical component of Trongate's truly modular architecture. If we did not use the underscore naming convention, then we'd need to find another way to tell Trongate that "you should not be able to invoke this method via 'this' URL." Ultimately, framework makers all have to solve a key technical challenge, which is, "How do we stop methods from being invoked via the URL?" Trongate's solution is crystal clear, and it only requires one character to be typed - an underscore. If Trongate did not use the underscore naming convention, then we'd have to start looking at very slow and miserable alternatives such as YAML files - as we see with Symfony. Remember, those of us who use Trongate have the fastest PHP framework in the world (prove me wrong!). It is for other PHP frameworks to come to us - not the other way around. DC

Comments
  • Учебник по React для начинающих 2 года назад
    Учебник по React для начинающих
    Опубликовано: 2 года назад
  • Микросервисы на практике - сервис продажи билетов 1 месяц назад
    Микросервисы на практике - сервис продажи билетов
    Опубликовано: 1 месяц назад
  • Build an Events Manager with Native PHP - Trongate v2 Tutorial 4 дня назад
    Build an Events Manager with Native PHP - Trongate v2 Tutorial
    Опубликовано: 4 дня назад
  • Драгоценности семьи Тронгейт не продаются. 3 месяца назад
    Драгоценности семьи Тронгейт не продаются.
    Опубликовано: 3 месяца назад
  • Модульное тестирование Java с помощью JUnit — Учебное пособие — Как создавать и использовать моду... 4 года назад
    Модульное тестирование Java с помощью JUnit — Учебное пособие — Как создавать и использовать моду...
    Опубликовано: 4 года назад
  • F94: прямой эфир, философия программиста, вопросы и ответы Трансляция закончилась 3 дня назад
    F94: прямой эфир, философия программиста, вопросы и ответы
    Опубликовано: Трансляция закончилась 3 дня назад
  • Chansons Françaises de Paris | Voyage Romantique en Musique 3 недели назад
    Chansons Françaises de Paris | Voyage Romantique en Musique
    Опубликовано: 3 недели назад
  • Арестович: Почему Трамп не может добиться перемирия? Дневник войны. Сбор для военных👇 Трансляция закончилась 7 часов назад
    Арестович: Почему Трамп не может добиться перемирия? Дневник войны. Сбор для военных👇
    Опубликовано: Трансляция закончилась 7 часов назад
  • Лучший Гайд по Kafka для Начинающих За 1 Час 1 год назад
    Лучший Гайд по Kafka для Начинающих За 1 Час
    Опубликовано: 1 год назад
  • Music for Men Who Stay Silent | Gentleman Dark Blues 1 месяц назад
    Music for Men Who Stay Silent | Gentleman Dark Blues
    Опубликовано: 1 месяц назад
  • 🔀 Зачем Frontend и Backend разработчику на JavaScript, TypeScript, Node.js этот ваш Local-First? 2 недели назад
    🔀 Зачем Frontend и Backend разработчику на JavaScript, TypeScript, Node.js этот ваш Local-First?
    Опубликовано: 2 недели назад
  • Почему работает теория шести рукопожатий? [Veritasium] 3 дня назад
    Почему работает теория шести рукопожатий? [Veritasium]
    Опубликовано: 3 дня назад
  • Будет ли встраиваемые системы по-прежнему привлекательной карьерой в 2026 году? 4 месяца назад
    Будет ли встраиваемые системы по-прежнему привлекательной карьерой в 2026 году?
    Опубликовано: 4 месяца назад
  • FAQ про изучение программирования Часть 3 4 дня назад
    FAQ про изучение программирования Часть 3
    Опубликовано: 4 дня назад
  • JavaScript c Нуля - Курс для начинающих С ПРАКТИКОЙ (2025) 2 года назад
    JavaScript c Нуля - Курс для начинающих С ПРАКТИКОЙ (2025)
    Опубликовано: 2 года назад
  • Programming ▫️ Coding ▫️ Hacking ▫️ Designing Music 🦠 1 год назад
    Programming ▫️ Coding ▫️ Hacking ▫️ Designing Music 🦠
    Опубликовано: 1 год назад
  • ChatGPT in a kids robot does exactly what experts warned. 2 дня назад
    ChatGPT in a kids robot does exactly what experts warned.
    Опубликовано: 2 дня назад
  • AI Spending Delivers Mixed Results to Stocks | Bloomberg Tech 1/29/2026 4 дня назад
    AI Spending Delivers Mixed Results to Stocks | Bloomberg Tech 1/29/2026
    Опубликовано: 4 дня назад
  • HTML - Полный Курс HTML Для Начинающих [3 ЧАСА] 3 года назад
    HTML - Полный Курс HTML Для Начинающих [3 ЧАСА]
    Опубликовано: 3 года назад
  • Если у тебя спросили «Как твои дела?» — НЕ ГОВОРИ! Ты теряешь свою силу | Еврейская мудрость 1 месяц назад
    Если у тебя спросили «Как твои дела?» — НЕ ГОВОРИ! Ты теряешь свою силу | Еврейская мудрость
    Опубликовано: 1 месяц назад

Контактный email для правообладателей: u2beadvert@gmail.com © 2017 - 2026

Отказ от ответственности - Disclaimer Правообладателям - DMCA Условия использования сайта - TOS



Карта сайта 1 Карта сайта 2 Карта сайта 3 Карта сайта 4 Карта сайта 5