"Erdélyi Tamás (netpeople.hu) előadásában beszélni fog a legfontosabb változásokról és hogy miért is lesz ez jó nekünk. Röviden, címszavakban szó lesz a megváltozott könyvtárstruktúráról, az új validációs lehetőségekről, a fájlgenerátorokról, a fájlrendszer elérését kibővítő, új alap package-ről, a Flysystemről és az ún. Contractokról, amelyek még átláthatóbb, tisztább keretet adnak a rendszernek."
http://www.meetup.com/laravelbp/events/213586752/
Firefox OS előadás az ELTE IK hallgatóinak. Rendezvény neve Szakmai Esti Mesék, időpontja 2013.10.09.
A prezentáció a Firefox OS-t mutatja be, illetve tartalmaz hivatkozásokat hasznos oldalakra.
"Erdélyi Tamás (netpeople.hu) előadásában beszélni fog a legfontosabb változásokról és hogy miért is lesz ez jó nekünk. Röviden, címszavakban szó lesz a megváltozott könyvtárstruktúráról, az új validációs lehetőségekről, a fájlgenerátorokról, a fájlrendszer elérését kibővítő, új alap package-ről, a Flysystemről és az ún. Contractokról, amelyek még átláthatóbb, tisztább keretet adnak a rendszernek."
http://www.meetup.com/laravelbp/events/213586752/
Firefox OS előadás az ELTE IK hallgatóinak. Rendezvény neve Szakmai Esti Mesék, időpontja 2013.10.09.
A prezentáció a Firefox OS-t mutatja be, illetve tartalmaz hivatkozásokat hasznos oldalakra.
2024 State of Marketing Report – by HubspotMarius Sescu
https://www.hubspot.com/state-of-marketing
· Scaling relationships and proving ROI
· Social media is the place for search, sales, and service
· Authentic influencer partnerships fuel brand growth
· The strongest connections happen via call, click, chat, and camera.
· Time saved with AI leads to more creative work
· Seeking: A single source of truth
· TLDR; Get on social, try AI, and align your systems.
· More human marketing, powered by robots
ChatGPT is a revolutionary addition to the world since its introduction in 2022. A big shift in the sector of information gathering and processing happened because of this chatbot. What is the story of ChatGPT? How is the bot responding to prompts and generating contents? Swipe through these slides prepared by Expeed Software, a web development company regarding the development and technical intricacies of ChatGPT!
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
The realm of product design is a constantly changing environment where technology and style intersect. Every year introduces fresh challenges and exciting trends that mold the future of this captivating art form. In this piece, we delve into the significant trends set to influence the look and functionality of product design in the year 2024.
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
Mental health has been in the news quite a bit lately. Dozens of U.S. states are currently suing Meta for contributing to the youth mental health crisis by inserting addictive features into their products, while the U.S. Surgeon General is touring the nation to bring awareness to the growing epidemic of loneliness and isolation. The country has endured periods of low national morale, such as in the 1970s when high inflation and the energy crisis worsened public sentiment following the Vietnam War. The current mood, however, feels different. Gallup recently reported that national mental health is at an all-time low, with few bright spots to lift spirits.
To better understand how Americans are feeling and their attitudes towards mental health in general, ThinkNow conducted a nationally representative quantitative survey of 1,500 respondents and found some interesting differences among ethnic, age and gender groups.
Technology
For example, 52% agree that technology and social media have a negative impact on mental health, but when broken out by race, 61% of Whites felt technology had a negative effect, and only 48% of Hispanics thought it did.
While technology has helped us keep in touch with friends and family in faraway places, it appears to have degraded our ability to connect in person. Staying connected online is a double-edged sword since the same news feed that brings us pictures of the grandkids and fluffy kittens also feeds us news about the wars in Israel and Ukraine, the dysfunction in Washington, the latest mass shooting and the climate crisis.
Hispanics may have a built-in defense against the isolation technology breeds, owing to their large, multigenerational households, strong social support systems, and tendency to use social media to stay connected with relatives abroad.
Age and Gender
When asked how individuals rate their mental health, men rate it higher than women by 11 percentage points, and Baby Boomers rank it highest at 83%, saying it’s good or excellent vs. 57% of Gen Z saying the same.
Gen Z spends the most amount of time on social media, so the notion that social media negatively affects mental health appears to be correlated. Unfortunately, Gen Z is also the generation that’s least comfortable discussing mental health concerns with healthcare professionals. Only 40% of them state they’re comfortable discussing their issues with a professional compared to 60% of Millennials and 65% of Boomers.
Race Affects Attitudes
As seen in previous research conducted by ThinkNow, Asian Americans lag other groups when it comes to awareness of mental health issues. Twenty-four percent of Asian Americans believe that having a mental health issue is a sign of weakness compared to the 16% average for all groups. Asians are also considerably less likely to be aware of mental health services in their communities (42% vs. 55%) and most likely to seek out information on social media (51% vs. 35%).
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
This article is all about what AI trends will emerge in the field of creative operations in 2024. All the marketers and brand builders should be aware of these trends for their further use and save themselves some time!
A report by thenetworkone and Kurio.
The contributing experts and agencies are (in an alphabetical order): Sylwia Rytel, Social Media Supervisor, 180heartbeats + JUNG v MATT (PL), Sharlene Jenner, Vice President - Director of Engagement Strategy, Abelson Taylor (USA), Alex Casanovas, Digital Director, Atrevia (ES), Dora Beilin, Senior Social Strategist, Barrett Hoffher (USA), Min Seo, Campaign Director, Brand New Agency (KR), Deshé M. Gully, Associate Strategist, Day One Agency (USA), Francesca Trevisan, Strategist, Different (IT), Trevor Crossman, CX and Digital Transformation Director; Olivia Hussey, Strategic Planner; Simi Srinarula, Social Media Manager, The Hallway (AUS), James Hebbert, Managing Director, Hylink (CN / UK), Mundy Álvarez, Planning Director; Pedro Rojas, Social Media Manager; Pancho González, CCO, Inbrax (CH), Oana Oprea, Head of Digital Planning, Jam Session Agency (RO), Amy Bottrill, Social Account Director, Launch (UK), Gaby Arriaga, Founder, Leonardo1452 (MX), Shantesh S Row, Creative Director, Liwa (UAE), Rajesh Mehta, Chief Strategy Officer; Dhruv Gaur, Digital Planning Lead; Leonie Mergulhao, Account Supervisor - Social Media & PR, Medulla (IN), Aurelija Plioplytė, Head of Digital & Social, Not Perfect (LI), Daiana Khaidargaliyeva, Account Manager, Osaka Labs (UK / USA), Stefanie Söhnchen, Vice President Digital, PIABO Communications (DE), Elisabeth Winiartati, Managing Consultant, Head of Global Integrated Communications; Lydia Aprina, Account Manager, Integrated Marketing and Communications; Nita Prabowo, Account Manager, Integrated Marketing and Communications; Okhi, Web Developer, PNTR Group (ID), Kei Obusan, Insights Director; Daffi Ranandi, Insights Manager, Radarr (SG), Gautam Reghunath, Co-founder & CEO, Talented (IN), Donagh Humphreys, Head of Social and Digital Innovation, THINKHOUSE (IRE), Sarah Yim, Strategy Director, Zulu Alpha Kilo (CA).
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
The search marketing landscape is evolving rapidly with new technologies, and professionals, like you, rely on innovative paid search strategies to meet changing demands.
It’s important that you’re ready to implement new strategies in 2024.
Check this out and learn the top trends in paid search advertising that are expected to gain traction, so you can drive higher ROI more efficiently in 2024.
You’ll learn:
- The latest trends in AI and automation, and what this means for an evolving paid search ecosystem.
- New developments in privacy and data regulation.
- Emerging ad formats that are expected to make an impact next year.
Watch Sreekant Lanka from iQuanti and Irina Klein from OneMain Financial as they dive into the future of paid search and explore the trends, strategies, and technologies that will shape the search marketing landscape.
If you’re looking to assess your paid search strategy and design an industry-aligned plan for 2024, then this webinar is for you.
5 Public speaking tips from TED - Visualized summarySpeakerHub
From their humble beginnings in 1984, TED has grown into the world’s most powerful amplifier for speakers and thought-leaders to share their ideas. They have over 2,400 filmed talks (not including the 30,000+ TEDx videos) freely available online, and have hosted over 17,500 events around the world.
With over one billion views in a year, it’s no wonder that so many speakers are looking to TED for ideas on how to share their message more effectively.
The article “5 Public-Speaking Tips TED Gives Its Speakers”, by Carmine Gallo for Forbes, gives speakers five practical ways to connect with their audience, and effectively share their ideas on stage.
Whether you are gearing up to get on a TED stage yourself, or just want to master the skills that so many of their speakers possess, these tips and quotes from Chris Anderson, the TED Talks Curator, will encourage you to make the most impactful impression on your audience.
See the full article and more summaries like this on SpeakerHub here: https://speakerhub.com/blog/5-presentation-tips-ted-gives-its-speakers
See the original article on Forbes here:
http://www.forbes.com/forbes/welcome/?toURL=http://www.forbes.com/sites/carminegallo/2016/05/06/5-public-speaking-tips-ted-gives-its-speakers/&refURL=&referrer=#5c07a8221d9b
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
Everyone is in agreement that ChatGPT (and other generative AI tools) will shape the future of work. Yet there is little consensus on exactly how, when, and to what extent this technology will change our world.
Businesses that extract maximum value from ChatGPT will use it as a collaborative tool for everything from brainstorming to technical maintenance.
For individuals, now is the time to pinpoint the skills the future professional will need to thrive in the AI age.
Check out this presentation to understand what ChatGPT is, how it will shape the future of work, and how you can prepare to take advantage.
A brief introduction to DataScience with explaining of the concepts, algorithms, machine learning, supervised and unsupervised learning, clustering, statistics, data preprocessing, real-world applications etc.
It's part of a Data Science Corner Campaign where I will be discussing the fundamentals of DataScience, AIML, Statistics etc.
Time Management & Productivity - Best PracticesVit Horky
Here's my presentation on by proven best practices how to manage your work time effectively and how to improve your productivity. It includes practical tips and how to use tools such as Slack, Google Apps, Hubspot, Google Calendar, Gmail and others.
The six step guide to practical project managementMindGenius
The six step guide to practical project management
If you think managing projects is too difficult, think again.
We’ve stripped back project management processes to the
basics – to make it quicker and easier, without sacrificing
the vital ingredients for success.
“If you’re looking for some real-world guidance, then The Six Step Guide to Practical Project Management will help.”
Dr Andrew Makar, Tactical Project Management
2024 State of Marketing Report – by HubspotMarius Sescu
https://www.hubspot.com/state-of-marketing
· Scaling relationships and proving ROI
· Social media is the place for search, sales, and service
· Authentic influencer partnerships fuel brand growth
· The strongest connections happen via call, click, chat, and camera.
· Time saved with AI leads to more creative work
· Seeking: A single source of truth
· TLDR; Get on social, try AI, and align your systems.
· More human marketing, powered by robots
ChatGPT is a revolutionary addition to the world since its introduction in 2022. A big shift in the sector of information gathering and processing happened because of this chatbot. What is the story of ChatGPT? How is the bot responding to prompts and generating contents? Swipe through these slides prepared by Expeed Software, a web development company regarding the development and technical intricacies of ChatGPT!
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
The realm of product design is a constantly changing environment where technology and style intersect. Every year introduces fresh challenges and exciting trends that mold the future of this captivating art form. In this piece, we delve into the significant trends set to influence the look and functionality of product design in the year 2024.
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
Mental health has been in the news quite a bit lately. Dozens of U.S. states are currently suing Meta for contributing to the youth mental health crisis by inserting addictive features into their products, while the U.S. Surgeon General is touring the nation to bring awareness to the growing epidemic of loneliness and isolation. The country has endured periods of low national morale, such as in the 1970s when high inflation and the energy crisis worsened public sentiment following the Vietnam War. The current mood, however, feels different. Gallup recently reported that national mental health is at an all-time low, with few bright spots to lift spirits.
To better understand how Americans are feeling and their attitudes towards mental health in general, ThinkNow conducted a nationally representative quantitative survey of 1,500 respondents and found some interesting differences among ethnic, age and gender groups.
Technology
For example, 52% agree that technology and social media have a negative impact on mental health, but when broken out by race, 61% of Whites felt technology had a negative effect, and only 48% of Hispanics thought it did.
While technology has helped us keep in touch with friends and family in faraway places, it appears to have degraded our ability to connect in person. Staying connected online is a double-edged sword since the same news feed that brings us pictures of the grandkids and fluffy kittens also feeds us news about the wars in Israel and Ukraine, the dysfunction in Washington, the latest mass shooting and the climate crisis.
Hispanics may have a built-in defense against the isolation technology breeds, owing to their large, multigenerational households, strong social support systems, and tendency to use social media to stay connected with relatives abroad.
Age and Gender
When asked how individuals rate their mental health, men rate it higher than women by 11 percentage points, and Baby Boomers rank it highest at 83%, saying it’s good or excellent vs. 57% of Gen Z saying the same.
Gen Z spends the most amount of time on social media, so the notion that social media negatively affects mental health appears to be correlated. Unfortunately, Gen Z is also the generation that’s least comfortable discussing mental health concerns with healthcare professionals. Only 40% of them state they’re comfortable discussing their issues with a professional compared to 60% of Millennials and 65% of Boomers.
Race Affects Attitudes
As seen in previous research conducted by ThinkNow, Asian Americans lag other groups when it comes to awareness of mental health issues. Twenty-four percent of Asian Americans believe that having a mental health issue is a sign of weakness compared to the 16% average for all groups. Asians are also considerably less likely to be aware of mental health services in their communities (42% vs. 55%) and most likely to seek out information on social media (51% vs. 35%).
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
This article is all about what AI trends will emerge in the field of creative operations in 2024. All the marketers and brand builders should be aware of these trends for their further use and save themselves some time!
A report by thenetworkone and Kurio.
The contributing experts and agencies are (in an alphabetical order): Sylwia Rytel, Social Media Supervisor, 180heartbeats + JUNG v MATT (PL), Sharlene Jenner, Vice President - Director of Engagement Strategy, Abelson Taylor (USA), Alex Casanovas, Digital Director, Atrevia (ES), Dora Beilin, Senior Social Strategist, Barrett Hoffher (USA), Min Seo, Campaign Director, Brand New Agency (KR), Deshé M. Gully, Associate Strategist, Day One Agency (USA), Francesca Trevisan, Strategist, Different (IT), Trevor Crossman, CX and Digital Transformation Director; Olivia Hussey, Strategic Planner; Simi Srinarula, Social Media Manager, The Hallway (AUS), James Hebbert, Managing Director, Hylink (CN / UK), Mundy Álvarez, Planning Director; Pedro Rojas, Social Media Manager; Pancho González, CCO, Inbrax (CH), Oana Oprea, Head of Digital Planning, Jam Session Agency (RO), Amy Bottrill, Social Account Director, Launch (UK), Gaby Arriaga, Founder, Leonardo1452 (MX), Shantesh S Row, Creative Director, Liwa (UAE), Rajesh Mehta, Chief Strategy Officer; Dhruv Gaur, Digital Planning Lead; Leonie Mergulhao, Account Supervisor - Social Media & PR, Medulla (IN), Aurelija Plioplytė, Head of Digital & Social, Not Perfect (LI), Daiana Khaidargaliyeva, Account Manager, Osaka Labs (UK / USA), Stefanie Söhnchen, Vice President Digital, PIABO Communications (DE), Elisabeth Winiartati, Managing Consultant, Head of Global Integrated Communications; Lydia Aprina, Account Manager, Integrated Marketing and Communications; Nita Prabowo, Account Manager, Integrated Marketing and Communications; Okhi, Web Developer, PNTR Group (ID), Kei Obusan, Insights Director; Daffi Ranandi, Insights Manager, Radarr (SG), Gautam Reghunath, Co-founder & CEO, Talented (IN), Donagh Humphreys, Head of Social and Digital Innovation, THINKHOUSE (IRE), Sarah Yim, Strategy Director, Zulu Alpha Kilo (CA).
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
The search marketing landscape is evolving rapidly with new technologies, and professionals, like you, rely on innovative paid search strategies to meet changing demands.
It’s important that you’re ready to implement new strategies in 2024.
Check this out and learn the top trends in paid search advertising that are expected to gain traction, so you can drive higher ROI more efficiently in 2024.
You’ll learn:
- The latest trends in AI and automation, and what this means for an evolving paid search ecosystem.
- New developments in privacy and data regulation.
- Emerging ad formats that are expected to make an impact next year.
Watch Sreekant Lanka from iQuanti and Irina Klein from OneMain Financial as they dive into the future of paid search and explore the trends, strategies, and technologies that will shape the search marketing landscape.
If you’re looking to assess your paid search strategy and design an industry-aligned plan for 2024, then this webinar is for you.
5 Public speaking tips from TED - Visualized summarySpeakerHub
From their humble beginnings in 1984, TED has grown into the world’s most powerful amplifier for speakers and thought-leaders to share their ideas. They have over 2,400 filmed talks (not including the 30,000+ TEDx videos) freely available online, and have hosted over 17,500 events around the world.
With over one billion views in a year, it’s no wonder that so many speakers are looking to TED for ideas on how to share their message more effectively.
The article “5 Public-Speaking Tips TED Gives Its Speakers”, by Carmine Gallo for Forbes, gives speakers five practical ways to connect with their audience, and effectively share their ideas on stage.
Whether you are gearing up to get on a TED stage yourself, or just want to master the skills that so many of their speakers possess, these tips and quotes from Chris Anderson, the TED Talks Curator, will encourage you to make the most impactful impression on your audience.
See the full article and more summaries like this on SpeakerHub here: https://speakerhub.com/blog/5-presentation-tips-ted-gives-its-speakers
See the original article on Forbes here:
http://www.forbes.com/forbes/welcome/?toURL=http://www.forbes.com/sites/carminegallo/2016/05/06/5-public-speaking-tips-ted-gives-its-speakers/&refURL=&referrer=#5c07a8221d9b
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
Everyone is in agreement that ChatGPT (and other generative AI tools) will shape the future of work. Yet there is little consensus on exactly how, when, and to what extent this technology will change our world.
Businesses that extract maximum value from ChatGPT will use it as a collaborative tool for everything from brainstorming to technical maintenance.
For individuals, now is the time to pinpoint the skills the future professional will need to thrive in the AI age.
Check out this presentation to understand what ChatGPT is, how it will shape the future of work, and how you can prepare to take advantage.
A brief introduction to DataScience with explaining of the concepts, algorithms, machine learning, supervised and unsupervised learning, clustering, statistics, data preprocessing, real-world applications etc.
It's part of a Data Science Corner Campaign where I will be discussing the fundamentals of DataScience, AIML, Statistics etc.
Time Management & Productivity - Best PracticesVit Horky
Here's my presentation on by proven best practices how to manage your work time effectively and how to improve your productivity. It includes practical tips and how to use tools such as Slack, Google Apps, Hubspot, Google Calendar, Gmail and others.
The six step guide to practical project managementMindGenius
The six step guide to practical project management
If you think managing projects is too difficult, think again.
We’ve stripped back project management processes to the
basics – to make it quicker and easier, without sacrificing
the vital ingredients for success.
“If you’re looking for some real-world guidance, then The Six Step Guide to Practical Project Management will help.”
Dr Andrew Makar, Tactical Project Management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Laravel4 - Jövő a jelenben
1. Laravel 4 – Jövő a jelenben
Zoltán Borsos – Software Engineer @ Habostorta
2. A fejlesztőről, bemutatás
• 4. főverzió (2013 Május)
• Készítő: Taylor Otwell (Egy .NET fejlesztő)
• CI fejlesztéssel kezdte
• Hiányosságok gyors felfedezése
• Új célok kitűzése
• Első Laravel release
3. A kitűzött célok
• Kimagaslóan olvasható kód
• Tesztelhetőség
• Szükséges eszközök biztosítás (auth, form…)
• S.O.L.I.D irányelvek terjesztése
• Könnyű fejlesztés és kiterjesztés
4. Miért hozott új szemléletet?
• Composer csomagokból épül fel
• Tervezési minták magas fokú használata
• Facade pattern alkalmazása
Route::get()
Event::subscribe()
6. Mire épül? - Illuminate
• Egy fedőréteg
• Egységes interfész a különböző csomagok felett
• Egységesítési irányelvek
• Egyszerűen karbantartható, konzisztens
7. Artisan
• A symfony console komponensre épül
• Csak parancssori eszköz
• Mindenképpen szükséges konzol elérés
9. Az MVC réteg
• Modellek – Eloquent
• Blade template processor
• Több típusú kontroller
10. Routing
• Restful és resource típusú kontrollerek
• Routok csoportosítás
• Prefixek és suffixek támogatás, csoportokra is
• Route filterek
• Alap típusok, GET, POST, PATCH…
• Restful route-ok halmozása
11. Controllerek
• Restful kontrollerek
• Resource kontrollerek
• Minden kontroller a BaseController-ből származik
• Megosztott logika a BaseControllerbe kerül
12. Migrációk és seederek
• Adatbázisszerkezet verziókezelése
• A SchemaBuilder része
• Csak „Artisan”-al futtatható
19. Unit tesztelés
• PHPUnit alapú tesztelés
• Egyedi TestCase osztály ami megoldja a teljes boot
folyamatot
• Sok egyéb teszt framework létezik hozzá
• A facede pattern miatt egyszerű az „object mocking”
A 4-es verzió minden téren megújulást hozott
Otwellnél a CI fejlesztés gyorsan átcsapott egy óriási core módosítássá
Ami miatt kijött az összes hiányosság, majd ezután meghatározta az új célokat
Amivel megalkotta az első Laravel frameworköt
A kódolvashatóság volt az első megfogalmazott cél, mivel otwell gyűlölte hogy néha több időt kell tölteni más kódjának kibogarászásával mint a probléma megoldásával
A ásodik az hogy az elkészült alkalmazás a lehető legkisebb energia befektetéssel teljes körűen tesztelhető legyen
A CI-hez hasonlóan átemelt bizonyos komponenseket amik a mindennapi munkához elnegedhetelenek. Autentikáció, form helper stb…
Mivel Otwell egy .NET fejlesztő ezért nagyobb hangsúlyt fektetett a különbőző irányelvek betartására is, ami miatt az elkészült kód magas-fokúan újrahasznosítható
A composer egy dependency management eszköz, könnyű és egyszerű módja a kód dependenciáinka meghatározására, letöltésére és kezelésére
Otwell erősen támaszkodik a tervezési mintákra a fejlesztés során és így biztatja a fejlesztőket arra hogy ők is próbálják meg minél jobban szervezni a kódjaikat
Az egyik kiemelt és talán elsőre furcsának tűnő minta a faced „pattern”. A lenti két kód úgy néz ki mintha egy-egy osztály statikus metódusait hívnánk meg, miközben a háttérben egy DI konténerből kerülnek ki az objektumok és a php __callStatic() magic metódusát használva hívja meg az adott osztályok adott függvényeit, amit megint kiemelnék hogy nem statikus típusúak.
Az előző dián látható csomagok nem a framework dependenciái, hanem az „Illuminate/*” csomagoké. A framework önmagában az illuminat csomagokra támaszkodik
Ezáltal ezeket a csomagokat csak közvetetten használják.
Ez egy jó taktika, mivel ha megszűnne egy csomag akkor sem kell kétsége esni, a fedőréteg átalakítható hogy egy új hasonló funkcionalitású csomagot támogasson, ezáltal a fedőréteg felett, ahol mi dolgozunk, minden változatlan maradhat.
Könynen karbantartható
A symfony „console” komponensére épülve készült el az „Artisan” nevű parancssori eszköz.
A használathoz szükségünk van közvetlen konzol hozzáférésre, mivel például ezen az eszközön keresztül használhatjuk az adatbázis migrációt illetve kezelhetjük a queue-ban felgyűlt job-okat is.
Ez az eszköz csak parancssorból működik, bár lehetőség van a parancsok kódból való meghívására is, de ez alapvetően egyáltalán nem támogatott, és ami a legfontosabb, kicsit sem biztonságos.
Alapvetően a request folyamatát három részre oszthatjuk
Boot folyamat (Amikor bejön a request, beregisztrálódnak az autoloaderek és létrejön a laravel Application osztálya)
Boot után (Application létrejötte, service providerek regisztrálás, environment detektálás)
Dispatch (Routing, before filterek, Route actionök meghívása, Response összeálíltása és kiküldése, Shutdown callbackek meghívása VÉGE)
Láthatjuk hogy elég masszív a folyamat, de ahhoz képest az erőforrásigénye igen kicsi és a folyamat nagyon könnyen bővíthető és rugalmas
Miből épül fel a Laravel MVC rétege
Az első az Eloquent nevű ORM rendszer. Egy nagyon gyors és egyszerű módja az adatbázisok kezelésének
A kontrollerekre bővebben kitérek a következő diákon, mert több fajta kontroller is létezhet
A blade template rendszer teljesen eltérő a smarty-tól, a legtöbb újdonság amit egy fejlesztő várhat megvan benne, szekciók kezelése, vezérlési szerkezetek stb… Szintaktikailag inkább a Twig-re hasonlít
A RESTful routing miatt nagyon egyszerű, szabványos API-k léterhozása
A Routing lehetőséget ad csoportosításra, így gyorsan fűzhetünk például prefixeket adott URL-ekhez, úgy hogy a kódot minimálisan kell módosítanunk
Filterek használata, amik adott route elérése előtt vagy után futnak le, lehetőséget adnak így tisztogatása, vagy jogosultság ellenőrzésre
A router megengedi hogy bizonyos helyekre csak akkor rutoljuk ha megfelelő fejléccel ellátott HTTP kérés érkezik be
A RESTful routokat lehetőség van halmozni, így képes arra hogy több kontroller épüljön egymásra
A RESTFUL kontrollerek csak az adott HTTP Verb actionöket tartalmazzák és mást nem is lehet elérni
Létezik generátor eszköz ilyen kontrollerek létrehozására (beépített)
Fontos hogy az összes típusú kontroller a BaseController nevű osztályból származik ezáltal helyből, bármilyen core turkálás nélkül létrehozni megosztott logikát
Lehetőséget ad arra hogy az adatbázisunk szerkezetét verziókezeljük
A verziók között bármikor lehetőség van ugrálni, rollbackelni stb…
A SchemaBuilder osztállyal építhető fel a teljes adatbázis szerkezet, a PHP-t mintegy leíró nyelvként használva a MySQL-hez.
Jegyezzük meg hogy ez a rész a rendszernek csakis a „Artisan”-al futtatható
A „softDelete” egyfajta törlési mehanizmus, amikor az adott modelhez tartozó táblában léterjön egy „date_deleted” oszlop. Ennek az alapértelmezett értéke NULL, amennyiben tartalmaz egy dátumot az adott rekordot az eloquent nem fogja listázásnál és semmilyen műveletnél figyelembe venni, hacsak ezt nem kérjük külön
Az accessor függvényekkel lehetsőgünk van olyan metódusokat definiálni amik az adott modell egy property-jét lekérve egy valamilyen formában módosított rekordot ad vissza. Ilyenre lehet példa hogy mondjuk egy felhasználó nevének lekérdezésénél mindig nagybetűsíti azt.
Az eloquent kezeli az összes táblák között fellépő kapcsolatot, és a polimorfikus kapcsolatokat is. Fontos megjegyezni hogy az eloquent nem táblák között hanem modellek között állít fel kapcsolatot.
Az Eager-loading egy betöltési mehanizmus, amikor modjuk egy adott blogbejegyzéshez tartozó kommentet mindig külön kérünk le, hanem egy ilyen objektumot úgy kapunk meg hogy az összes hozzá kapcsolat objektum adatát tartalmazza.
Itt láthatunk példát keresésre, létrehozásra és módosításra is
Lekérdezésnél lehetőségünk van úgy keresni hogy meghívjuk az adott osztály withSoftDelete() metódusát ami a softDeleted rekordok között is keres
A léterhozást egy üres objektummal zajlik és az objektum tulajdonságainak beálíltásával módosíthatóak a mezők értékei
A visszatérési érték általában nem egy tömb hanem egy példány az Illuminate/Support/Collection osztályból
Lehetőség van tömbre alakítani az adott clollection-t a Collection soztály toArray() metódusának meghívásával
A rendszer támogatja a legalapvetőbb öröklődési logikát, beágyazásokat és van jópár helper függvénye is
Ilyen helperek például a @lang és a @choice
A vezérlisi szerkezetek nagyon könnyen kezelhetőek, inkább hasonlítanak a php for() ciklusához mint mondjuk egy smarty-ban.
Könnyen kiterjeszthető
A konténer célja hogy eltávolítsa a „hard-coded” osztályok dependenciáját a kódból. A függőségek kezelése a példányosításkor történik ami egyszerű lehetőséget ad a függőségek gyors cseréjére
Nem csak az előre beregisztrált osztályokat érhetjük el természetesen hanem, mi is regisztrálhatunk be osztályokat a konténerbe
Természetesen ez nem elég, lehetséges hogy egy megvalósításhoz több implementáció is tartozik, és szeretnénk valamikor kicserélni a kettőt. Nyilván egy alkalmazásban nem kis fejtörést
Okoz mondjuk az hogy egy MySQL implmenetációról átállítsuk a teljes rendszerünket mondjuk MongoDB-re.
Szerencsére a Laravel IoC konténere lehetőséget ad arra hogy egy interfészt bindoljunk egy bizonyos implementációhoz
A konténert persze több helyen is használhatjuk, ha például egy event listenert akarunk regisztrálni akkor a függvény nem csak konkrét osztályokat vagy egy closure-t fogad el hanem egy nevet is ami létezik a konténerben.
Ha sok bindingot használunk akkor lehetőség van létrehozni egyedi serviceProvider-t ami tartalmazza az alkalmazásunk összes bindingját és minden egyéb regisztrációt amit a boot folyamat során el kell végezni.
A tesztelés teljesen a PHPUnit-ra alapszik
A tesztek egyszerűen létrehozahtók az app/tests mappában
A tesztek futtatása alatt az envireonment mindig „testing”-re állítódik át.
A route filterek ki vannak kapcsolva a unit teszt során
Több féle test-framework létezik, például a codeception, vagy a behate. Ezekkel nem csak unit hanem például funkcionális teszteket is futtathatunk. Akár selenium támogatással, ami jóval bővebb lehetőséget nyújt.
PSR-1 és PSR-2. Biztos sokan vagyunk akik hatalmas vitát tudnának csapni a fügvények és vezérlési szerkezetek után álló kapcsos zárójelek helyéről. Szerencsére ezt az említett
Standardok elég jól lekötik. Szerencsére ez nem köti meg a fejlesztő kezét.
Sokan elfelejtik hogy ez nem a fejlesztő kezét köti meg hanem a publikálás formátumát. A legjellemzőbb az hogy van két kódolási stílus beállítva az IDE-k automatikus igazítására. Amikor hozzá akarunk nyúlni a kódhoz egy pillanat alatt áttfutatjuk rajta azt ami olyanna várázsolja ami a mi stílusunk, majd még egy kattintássál publikálás előtt a standardnek megfelelő formátumra alakítjuk.
Fontos kiemelni hogy a kommentezés nem csak a visszatérési érték megadásából áll hanem egy rövid de átfogó szövegből is, ezenfelelül sokan nem tudják hogy a docBlock ennél jóval többre használható, soztályoknál megadható a szerző, verzió, a módosítás ideje, az hogy melyik verzióban mi változott. Szóval ezeket is érdemes használni és mondjuk egy phpDocumentor által generált dokumentáció máris több lesz mint szimpla API dokumentáció
Beszéltem a SOLID irányelvekről, és a tesztelésről, most nézzük meg hogy miért is lehetetlen ez valójában. Amíg az ember magának fejleszt egy projektet, sok szabadidejét rááldozza, mert tökéleteset szeretne alkotni addig nem ütközünk akadályba, amikor viszont arról van szó hogy egy megrendelőnek vagy egy cégnek dolgozunk akkor már, pénzről beszélünk nem időről. Általában ezek betartása annyi plussz időt jelent hogy senki sem látja a befektetése megtérülését. Leginkább akkor látnák amikor valami komolyabb probléma lép fel, vagy egy komolyabb új funkció lefejlesztését kérik, de ekkor már rég késő. És sajnos az elmondottak a tesztelésre is igaz.