Thank you, Dr. Reimer. I appreciate it. I've missed, not doing my job here. We got a couple other shout outs. Richard Penn from the United Kingdom has joined us at the symposium. Thank you, Richard. And Ike Eastburn has joined us. State champion, Cheyenne Mountain LaCrosse. And our final panelist, Dan Gardner. Dan is in his ninth season supporting Team USA as a strength and conditioning coach, working with medalists from the London, Sochi and Rio Olympic and Paralympic Games. He's also been an athletic development coach for the Golden State Warriors. And this is why Sam's not going to be invited to our employee basketball games. From Westfield State University, it was a four year member of the Ben's basketball team and the team captain. Sam, welcome. Before I begin, I just want to thank everyone who put a lot of time and effort into making this event happen. I want to thank you all who are attending for listening. Today, I'll be providing a general broad stroke overview of how I see and address injury prevention within our strength and conditioning program for U.S. Paralympic Sport. Let's kick this presentation off with a bit of a thanks session. Please play along if you can in the comfort of your own home. Let's just throw a theoretical situation here. Say you were working with the able-bodied triathlete. We'll pick on the bronze medal stand for this scenario. Let's just pretend all things considered training age, training response, training history were all equal. Let's say you were used to working with the able-bodied athlete on the left and one day was tasked with supporting the same athlete in the bronze medal stand in this scenario on the right. This athlete having a traumatic injury resulting in above-in-the-amputation. What might you consider when thinking about injury prevention? Maybe you're thinking about the difference in energy expenditure. Maybe you're thinking about how half the proprioceptibility of the foot are missing now. Maybe you're thinking about the overloading of the biological limb. Maybe you're thinking of specific considerations for the shoulder. Now that they can't use their legs, are they gonna overuse their shoulder or actually load the shoulders in a different manner in the swim? And let's do the same thing for a second scenario here. Say you're working with a long jumper maybe supporting as an assistant S&C with this particular jumper on the left. And one day you were tasked with working this jumper on the right who's in the T11 category, complete visual impairment. What are some of the things you might consider that might be important when considering injury prevention with working with the second athlete versus the one on the left? Maybe you're thinking of your communication skills, your queuing. Maybe you're thinking of the benefits of tactile learning. Maybe you're considering the balance and proprioceptibility that might be necessary for athlete with visual impairment or setting up a safe training environment. With these last two examples, do you think there would be more differences or similarities in your work with these two athletes? In its simplest form, these are the two main objectives when supporting athletes, for me and the staff that I work with. Ideally, we want to identify key risk factors and try to reduce the severity in incidents for potential injury. We'd also want to identify key performance indicators in attempt to support consistency and performance within them. Injury prevention and athletic development and sport performance go hand in hand. And if you do your homework, whether they have two legs or don't, whether they have afferent neural response or not, whether they can see or not, it's probably gonna be pretty much the same process. This is an overview of a modified system I've used for several years from providing S&C support to athletes of various sports. It's been an evolving system and I'm fortunate to now have help from three other coaches and together we utilize some of these principles for tender vent, resident and rotational programs that utilize our training sites in Chula Vista and our training center in Colorado Springs. So the first step in our process is to go through a sporting demands analysis profile. When considering injury prevention, it is important to understand the demands being placed on the athlete. Understanding the velocities, the forces, the joint angles that the athlete has to experience and training as well as competition. That should be a good starting point for us to understand what is going to be demanded of the athlete. When I transitioned from California back to Colorado Springs, I began working with several sports that I had never worked with before. It was imperative that I dug through the literature to help better understand sport, but also meet with the program director and the head coach as often as possible to pick up on their expertise. Something as simple as showing up to training and learning about the sport, the culture, the lingo, and witnessing firsthand the demands, I think is imperative. Understanding something as simple as the unique demands for let's say a C3 athlete, starting a kilo with one limb, versus let's say a C4 athlete and a kilo start with two limbs, one of which is a prosthesis. And then the unique considerations are working with a C5 athlete with upper body impairment. Working together as a collective staff to optimize technique while attempting to reduce the insults to basic biomechanical principles by playing to the athlete's strengths and minimizing their weaknesses can go a long way to help with injury prevention, in my opinion. Okay, step two, having an elite athlete health profile or medical screen I think is imperative as well. Trying to answer questions like what is the most prevalent injury in the sporting population? And what injury causes the most time loss to training and competition? What is the athlete's individual injury history? And what are the specific impairments or disability profiles of that athlete? All of this information helps us to identify potential risk factors that our coaches might want to be aware of before working with an athlete. Then looking at population norms, taking literature or experiences from working with let's say able-bodied sprinters and runners in track and field. Over time, we might see that internal range of motion at the hip decreases throughout the longevity of their career, whereas in para sport, we actually see the exact opposite. External range of motion due to gait and specific considerations of gait with para populations decreases and internal hyper range of motion might not be as strong of a consideration. So making sure you break down the sport within para Olympics, I think it's important to make sure that you don't make false assumptions by just comparing them to the able-bodied counterparts. So step three, the trainability assessment. Taking the framework from the AAA or the PCA, we've actually kind of recreated our own movement screen. Obviously not one movement screen might be off the shelf ready for these four different athletes pictured here as a visual. For us, it's imperative that we identify what can an athlete do before we start training. How does the athlete move? Working with para pops and new athletes, whom you sometimes have never seen move before, I think it's critical to design an assessment to identify what athletes can do so we can spend less time worrying about what they can't do. We can then use the objective information we gather from areas like active range of motion, grip strength, pushing versus pulling strength, along with the subjective information we gather around squatting technique or landing technique as examples. And we as a staff can start to better understand where we're going to start with our initial program for the athlete. We can then track the athlete to themselves over time and see if there's any improvement. We can also compare them to their sporting mates to see what potential movement strategies and efficiencies might be most common. We can even compare them to other sporting mates in different sports with similar impairment or disability profiles and see is there a common trend that we might want to identify in the future or help us get better at our actual craft. All this information can now be overlayed with our EHP information or our medical screening information so we can paint a more specific picture for the individual's unique considerations and hopefully have deeper conversations amongst our medical and performance staff around the athlete keeping them at the center of the puzzle. Now that we've learned a little bit about the sporting demands, we have some medical screening information, we have a trainability assessment in place and movement information for the specific athletes. We can start to worry about getting to work and actually putting the plan in place. In the simplest terms, we progress in the following manner. We go from general, unloaded, slow and simple movements and we progress athletes when appropriate over time to more specific, more loaded, faster, more complex movements. If you don't have a logical training progression in place, good luck with the whole idea of injury prevention. Again, in general, in the simplest terms, we look to provide a balanced stimulus in the weight room. We do squat with ambulatory athletes, but we don't force any one specific squat on all the athletes we work with. We do like to learn how to hinge. Here's an example of a male double-blown knee amputee athlete pulling off the pins and a female double-above in the amputee using support while going through a hinge and pattern progression. We do like to do single-leg stance work. Here's an athlete with complete drop foot who was told he'd never be able to balance a one leg, performing a single leg bodyweight squat with external load for multiple reps. We do push, but we spend more time pulling, especially with our seated populations. Again, if we're considering injury prevention within our programming, if an athlete's constantly pushing in their day-to-day operations and locomotion, we wanna try to offset that as much as we can with loading in the weight room. We do brace and rotate, and sometimes with athletes, let's say with SCI, we may have to get a little more creative with how we perform those duties. And we teach landing before we teach shopping progressions, especially with our visually impaired athlete population. The classification system of the training means can help you as the support staff member and the sport coach have deeper conversations and make sure you're actually working towards a unified goal. It's imperative to be working together and keeping the athlete at the center of the performance puzzle versus pushing and pulling in opposite directions while the athlete doesn't benefit from either of your work. General preparatory exercise could be something as simple as this rollout progression here, demonstrated by a T-13 athlete with visual impairment. Specific preparatory exercise, something like a power clean here demonstrated by the same athlete. Maybe from the sport, you actually identify getting your hips through in a jump as a specific preparatory exercise. Maybe you wanna work on a sub-component of the competition exercise, like placing an athlete in a safe environment where they feel comfortable expressing optimal force output and hopefully having some fun in the process of doing so. And then seeing how all this works together to support the athlete in the competition when it matters. This is how he did it. Isaac, John, Paul, already have the world record. Wow. That was a few moments. It would be seven centimeters coming into this if he can clear it from his previous world record. That is a jump and a half, and Paul will admit. All this was good and well below. Let's not forget something as simple as program attendance. Let's not forget the importance of consistency. Can we get athletes to show up? Can we get athletes to show up on time? Can we get athletes to show up on time with the intent to get better every single session? If you don't have that in place, you're probably just gonna be monitoring a program that's not gonna be very useful. And I'm not really sure that's gonna help you with injury prevention in the long run. So now that we've gone through those first three steps, we've got a program in place, then we can start worrying about athletic assessments and monitoring the actual response of those programs. I think two often coaches jump to wanting to worry about monitoring, they wanna worry about testing before they've actually done their homework to put a program in place that's most appropriate for the individual athlete. Something as simple as a counter movement jump, can feed into four different buckets to tie multiple staff members together to hopefully work with the athlete and keep them at the center of the performance puzzle. Again, moving from the lab to specific training, if we can work together, hopefully we can get more information out of the training sessions and competition sessions and not have to always rely on testing in a lab setting. Here's one example of a swim athlete performing an athletic assessment, in this case, narrow a counter movement jump. This particular athlete was having some severe knee issues. Using the counter movement jump, we're able to actually have an assessment point in place to better communicate between sports medicine staff and performance staff. On the bottom right of this chart or report, you can see that we use the KAI, shout out to Dr. Jordan, who's also on this presentation panel today. As an anchor point for us as a staff to focus on and hopefully have deeper conversations around this individual. In our first assessment, she demonstrated over 30% bias in her concentric abilities. Over time, we were able to close that window down to within a 5% discrepancy and the athlete was then able to get back to swimming it in the breaststroke event in the pool and has since broke two world records in that event for her classification. Here's another quick example this time from a road cycling athlete. Now when the athlete first came to town, they were reporting a 70-30 split of watts on their right crank being 70 and left crank being 30. As training accumulated, they're reporting significant hip pain and their ratio actually got as high as 80-20. We started to use objective measurements to quantify our unilateral strength training approach and with the intention to create some more symmetry in her bilateral deficit scores and I cemented strength test. The athlete was then able to go to nationals and keep under a 60-40 split through the most critical race moments of the competition. They were also able to report no hip pain after that competition. And three weeks later, they went on to represent USA and the World Team and come back with hardware with medals around her neck. And then just to tie it all together, the concept of reducing common risk factors while trying to enhance common performance metrics that have been identified as critical for that athlete. The whole idea of injury prevention, athletic development or strength conditioning being one and the same. It doesn't have to be two separate roles. It doesn't have to be two separate programs. It can all just hopefully be blended together to keep the athlete's best interest at heart. Working together with other professionals, I'm lucky to work with Liz Broad here on the left. We have an example of anthropometric profiles for athletes. All that goes into consideration as well. Obviously, body composition and lean mass indexes are critical, keeping athletes healthy and safe along with looking at their performance metrics and making sure that we're hopefully producing the most potential force at the right body weight for something like cycling. And then here on the right, we have a final example of an athlete's kind of overview as we monitor to the process of their training. Here we kind of saw that the athlete was dropping below 80% of their actual prescribed training. And that allowed us to start an intervention, jump in place just in time for competition season and make sure that they were getting back to all the training sessions. Sometimes removing some work from an athlete's program because you didn't have it right as a coach is the best way to help keep them safe and healthy. Enclosing in these unique times are our new standard, our new normal. I'm reminded of Albert Hubbard's quote, don't take life too seriously, you'll never get out of it alive. I hope everybody out there is staying safe, staying healthy, and I appreciate all of your time and attention today.


I'm Jay Fiedel, and this is View from the North, where we look north to see what's going on in Canada and how it compares with what's going on in the U.S. And the question before the house is, what do Canadians think of Justin Trudeau, the prime minister? And for this discussion, I'm going to talk to a Canadian, our favorite Canadian, Ken Rogers, back to Ken Rogers, retired Canadian businessman in Kelowna, British Columbia. Welcome to the show, Ken. Hello, Jay. How much talk about him? It's nice spring in Canada, despite our stink as a prime minister. Okay. I have a feeling this is going to be a very candid discussion here. So tell us about, you know, you've lived in Canada pretty much all your life. You've seen a lot of prime ministers come and go. You've seen, you know, of course, the media will write up everything that a prime minister does. So how is Justin Trudeau doing? Well, he is the prime minister of Canada, because in the last election, he got a third of the vote. Now, that would surprise most Americans. How could you be prime minister if you only got a third of the popular vote? And in fact, the Conservative Party got about 1% more vote than he did, or than his party did. You know, in Canada, you do not vote for the prime minister separately. Like in the US, you have a presidential vote having, you know, very separate from voting for your congressional stuff in the parliamentary system that they have in Britain, Australia, Canada, etc. You know, you vote the party with the greatest number of seats, you know, gets to lead or become prime minister. Their head becomes the prime minister. Well, in Canada, we have a coalition government, much like since Israel's in the news lots, everybody knows there's a, you know, several parties together to keep Netanyahu in power. And in Canada, we have three fairly significant parties. You know, two major, let's call it liberal and conservative, and the third party is left to the liberal party, sort of in Bernie Sanders territory. Well, that third party has combined with the liberal party or Trudeau's party to become the government. And they've done nothing. I knew this was going to be a candid discussion. Well, about the only legislation that anybody could remember, I spoke to a few people and asked them what has Trudeau accomplished in, you know, almost eight years of being the prime minister. And the only one they could think of was that he legalized marijuana. So that's not much when you think of all the issues in the world, which include all the issues in Canada. So question, how do people feel about that? If he was running on a popular vote, not that he has to, but if he was running on a popular vote today, how would he do? Is he a popular leader? Yes and no. There's a certain segment of the population that, you know, absolutely thinks he's wonderful. The majority do not think he's wonderful. So really it's this, whether the two parties that now operate as a coalition will get enough votes or not, if there were an election in the very near future, it's probably likely they would get voted out, booted out. You know, the conservative party in Canada, which is a lot more moderate than the U.S. Republican Party, especially right now, you know, they have increased in popularity in the polls to a great extent because Trudeau has done nothing. You know, his method of government is he does very, very well, standing before a microphone, making speeches, you know, and he makes wonderful promises and he, I guess, looks so sincere. And I'll use an example of, you know, that he makes the promise and that's the end of it. You know, you never get a broadcast that shows what did he ever follow up on. You know, he just does not follow up on anything. But a great example is we had an atmospheric river about three years ago in British Columbia that, you know, caused havoc in the mountain passes. It just wiped out every highway that could get from Vancouver into anywhere. And, you know, you just couldn't get from the coast inland from British Columbia, this all mountain passes, you know, they just obliterated them with this atmospheric river, while one town that was kind of a crossroads of a couple of highways called Merritt, a little weed place, but it got absolutely decimated. And he was right on the news really quick. Our minds and hearts are with you. And oh, what was us and poor people and we will get right in there. The federal government's behind you. Well, about three years later, there's absolutely zero been done. You know, just zero.  You know, well, I think Canada's, you know, percentage of gross domestic products spent on defense is the lowest of the G seven. It's certainly the lowest of any of the sizable countries that make up or the NATO, the smallest in NATO. But he just makes these terrific promises. You know, one of the major platforms that he said was he was going to make, you know, reconciliation with the with the indigenous population in Canada, you know, well, United Nations ranks Canada as close to the worst in the world in the treatment of its people.  You know, but, you know, in Canada, we didn't ship people from Georgia to Oklahoma or somewhere and set the reservation on what was then thought it was close to the worst land in the United States. You know, our reservations were set up where the natives were, you know, they were just shrunken in size so that the actual reservations are pretty tiny.   Well, the people understand this. Do they know this? Does a media report on this? How does he get away with it? Well, how does Donald Trump get away with, you know, endless numbers of lies and still have people, you know, anti-democratic stuff and still get away with it? You know, is the public's not overly well informed? Like they used to be. Everybody used to get a local newspaper and you had good journalism in those days. The newspapers were pretty straight forward. Like, you know, I think of the Washington Post and LA Times that are, you know, pretty good newspapers. New York Times. We don't have much of that anymore than anybody gets. Hmm. So he's very good looking. We have a picture of him. And what's remarkable is that he looks like a teenager, but he's actually 52 years old, born in 1971.  And I can see all the, you know, young teenager people jumping up and down about him. What is, how does his looks factor into this? His youthful looks? His forever youthful looks? Well, was Bill Clinton's looks a factor in his being elected? Your answer is yes. You know, and it has been a role. I mean, he wrote in to a great extent on his father's name and his father's accomplishments. Like his father was absolutely brilliant, did some fantastic legislation, was an abrasive personality to many people. You either really liked him or really hated him. I was in the latter category. And so when just when the name popped up, I already had a negative response. But the two of them don't resemble each other at all. Like if you put photographs of them and doesn't matter how you magnify it, you could never believe that Justin Trudeau is Pierre Trudeau's son. They have nothing in looks compared to them. And in terms of brilliance, you know, Pierre Trudeau was a very brilliant individual and accomplished things the US has yet to accomplish. For example, Canada's elections really work well because of Pierre Trudeau. He's the one that brought in the legislation that took big money out of elections, shortened the election cycle, so big money didn't matter. And he, you know, Canada was a, it wasn't a colony of Britain, but it was in, you know, the, it was the dominion of Canada and it still had a bunch closer ties to Britain. And he, you know, repatriated the Constitution, created the Bill of Rights, you know, and his son Justin has done Diddly Squat in eight years in power. So you're saying that Justin, Justin had the benefit of the Trudeau name and that his looks, you know, got him into office. Well, why would some Americans be willing to vote for RFK Junior? You know, and there's a Kennedy name and it has great meaning with, and there's good reason, you know, John Kennedy and Robert Kennedy were pretty neat politicians, accomplished a lot of great things. And so somebody would think, well, if it's another one of the Kennedys, I'm in favor, you know, but that in that name recognition for Trudeau still carries a lot of weight.  You know, he's very like Justin is very well educated or let's just say I wouldn't use the well as he has tons and tons of education. If you said, what did he do from when he finished high school? Well, the next 15 years, he just went in and out of different colleges. You know, he really did nothing. Like he was 23 before he had a Bachelor of Arts degree. And that's when they gave Arts degrees only took three years that he majored in literature. Well, then, you know, he fluffed around for a little while. Then he went to University of British Columbia because they have better skiing in BC. And then he, you know, it took a, you know, a Bachelor of Education degree.  Well, then he, you know, decided, well, he'll go and back to Montreal and take some more college. And so he took engineering at a great college in Montreal, took a couple years of that or a year and a half and then packed that in, then fluffed around a little while more and then went back to the college in British Columbia and took environmental geology that I had to hesitate because the names don't tend to fit together. And then he packed up that education. Well, now by then he was about 33. Well, then he stopped doing that because when his father died, he gave a eulogy, which was heard by everybody in Canada. And it was absolutely fantastic. Just mind-droppers saying, wow, here is this guy named Trudeau.  And listen to him speak and look at how handsome he is and wow. And so he then started to get, you know, requests for this and that. Well, you know, people look, gee, he's in his early thirties, you know, or 32, almost 35 by then, having done diddly squat other than having taught some junior high school courses in British Columbia. You know, and you'd say, well, what courses? If you listen to the news, they would say, well, how could a drama teacher ever be Prime Minister?  Where really, he taught everything from soups and nuts.   Well, his Bachelor of Arts degree was in literature. He taught several things. So he's highly educated, you know, but I don't know that, but he's got terrible, terrible judgment compared to his father. Give me an example of that. Well, there was a he's been in several scandals.   He just has bad judgment or, you know, and, you know, he was born with a silver spoon.  Well, one of the reasons that I think he is, his judgment is poor, and when people are up close to him, he's not as likable as he is on TV, that he's had trouble getting other people that are high talent around him. You know, if you took his current cabinet where he's made a big fuss about, well, we want to have equal rights, and so we should have 50% of the Canadian cabinet should be women. You know, well, when you only get about a quarter of the people elected are women, and then you're going to pick from those, you have trouble. Oh, one thing Americans may not know is in Canada, the head of the cabinet, the head of each department is the person, a person who was voted in. That is, you don't hire, you know, like you do not have either whether the person is a politician or non-politician, but in the US, the president picks the cabinet, and the cabinet, each of the cabinet has a department, but in that department, there are senior people that tend to stay there, or, you know, reasonably senior. Sometimes they turn over those people to have ones that are more favorable, but while in Canada, you know, the head of every department is somebody that's been voted in. Well, it's no wonder they've done nothing when they've got, you know, third class people having been voted in and chosen to be head of some department. Well, when they had this scandal, it was a large construction company thing in Montreal, and Montreal has an image in Canada like New Jersey. You know, if there's anything been dishonest in Canada, you'd say, oh, where in Montreal did it happen? But anyhow, that'd be the first question. It's not always the case. It's certainly the image justified. So, but this scandal had two of the cabinet ministers, you know, said what Trudeau had given his speeches as the excuse for how this happened. They just said, that's bloody well not right. You know, some good, honest, straightforward Canadian politician. Both were women. And, you know, so of course, he devised a way to get them kicked out of the party and out of the parliament.  So she's taller than a lot of these international presidents. You know, if you'll see a NATO picture or something, the good looking blonde is, she's a smart one. And, you know, the one that Trump really, really didn't like named Freeland in those two, but the only two cabinet ministers that have been able, that stuck around that had any brains at all. You know, but you said before, you said before that he's been in office eight years. And you said before that his election is done by the parliament. And I suppose the parliament could vote him out any time. There could be elections. Not the parliament, the members of his party that are in parliament. Got it. So, and you mentioned also that the coalition that he has cobbled together, the left and the further left. But that there is a conservative, you know, group, you know, maybe growing the way it's growing in the U.S., that, you know, that doesn't agree with the liberals. So I guess my question is, if he is so do nothing, why is he still there? Why are the liberals still so popular that they feel they have to leave him there? Why don't they kick him out in favor of somebody who would, you know, provide a better political return for them? Eight years is a long time. It's longer than a president. Well, Canada's political balance is very different than the United States. You know, in the U.S., in the most biased of states, the losing party still gets a pretty good share of the vote.  They don't do too badly. They lose, but they don't do too badly. In Canada, you've got province like Saskatchewan or Alberta, and most of the time the liberals get zero. They get just absolutely wiped.  You know, like Toronto has more people than every province except Quebec. You know, like Toronto, British Columbia is the third most populous province, and it has less people than this metro to fall in Toronto. So you're saying that Eastern Canada keeps him in office. Eastern Canada, which is largely French, is liberal, and it keeps him in office. Is that what you're saying? Well, the Quebec doesn't really like to vote for conservatives. Now, Ontario is interesting. They like to vote for a, the rural or let's call it non-Toronto parts of Ontario vote for the conservatives in Toronto for the liberals when it's federal. The minute it's a provincial election, they'll vote for the conservatives. They like to have a different, a provincial premier that's not of the same party. That sounds like a good idea, don't you think? But anyhow, you, you, when you can run B Prime Minister with only a third of the popular vote, you know, you really have, you know, reason for some dismay among many people. Well, you know, I asked you whether his good looks played into it. Certainly his father's name plays into it. But, you know, there's another element that I would like to explore, and that is the French thing. I don't think people in the US understand, you know, how the French are concentrated in Montreal, Quebec and Eastern Canada in general. And here's his father was French. He's French. His wife Sophie was French. They're divorced now, I guess. But I wonder how French that group in the legislature is. Is it all French? How powerful are the French? How powerful is the French language in the US does not understand that most people do not understand this bifurcation in Canada. And here's a political bifurcation that is playing out in the form of this, you know, French, the second French Prime Minister in only a few years. How is French? Well, I just I don't understand. It's just maybe there are more people voting in French Canada. No, like, I'd be surprised you to say what whatever you said, Americans don't understand. You know, neither do most people in western Canada. Okay, yes. Now, actually, Canada has has more than three parties in its federal parliament. If there's, you know, there's always some pop up party showing up. Well, there is a, you know, a special Quebec party, you know, that favored that Quebec should become a separate standalone country of its own. You know, and that has always been a factor that's been sitting around since the days in particular of Charles de Gaulle, if you remember the French guy from World War two, you know, he, you know, came to Canada to visit. And there's a nice political gesture. He leaves by saying, Viva la Quebec Libre, you know, as if France, the country's in favor of Quebec separating from Canada. Now, that's always been a factor.  Well, you know, when I grew up in Alberta, which is the province that's second closest to the Pacific Ocean in Canada, kind of like Nevada or Idaho distance from the Pacific Ocean, you know, and I really just born in, in that area, you just inherit the thinking of, you know, the province or the area. And, and I can remember just begrudging, having to learn to speak French, you know, at school, but it really, because it was still such red that country, they didn't even put the French into school until you reached either grade nine or 10. They were supposed to. This is a bilingual country. Well, right. You have two official languages. In Redneck, Alberta, they had stick in your ear, you know, and, and there was such an animosity among my friends and so on. And, and at the time, you know, they had the oil discovered in Alberta. And, you know, example of high school I went to was probably 40, 40, 50% kids that were the sons of Americans that had moved to Canada to work in the oil and gas industry. Well, you know, I kept saying, look, I don't want to speak French. I live closer to Mexico. I'm far more likely to go to visit Mexico as I grow older and go on holidays. I'm never going to go to Quebec. And, and why would I ever want to go there? There's nothing there that would interest me. They can't even I can't even talk to them. You know, but and, and, you know, let me, let me add that there are a lot of people in Quebec who don't speak English. Am I right? Yes, well, when you use Quebec and Montreal simultaneously shows a little bit of an American misunderstanding. You know, Montreal used to be, you know, the, the New York of Canada, like it was the be all and center of the earth. I mean, everything evolved. It was the financial capital. It was the headquarters of all the major industries and, and it was about 50% English speaking and 50% French speaking. And if you went 10 inches outside Montreal, nobody spoke English. Wow. That is almost the case now. The difference is that, that Ottawa is technically in Ontario. Well, it's really on the border between Ontario and Quebec. Ottawa on the, on the, well, as Ottawa has grown to about 1.6 million people, you know, there's probably 150, 200,000 of it, at least on the Quebec side of the Ottawa River. You know, so metropolitan Ottawa now has lots of English speaking people, but you know, the Quebec, it's really all in, in Montreal, people that speak English, you know, for, for example, everybody else, everybody else speaks French and not English. Oh yeah, gorgeous city, you know, Quebec city, further up the, you know, let's call it further north from Montreal is almost a million people in size. And, and you could go there and, and have real trouble finding anybody that could talk to you in English. So they must love Trudeau. I would, I would guess the Trudeau and the people around him speak French. They must love Trudeau. Trudeau is bilingual, like anybody would say, how could you dream of perfect bilingualism? I mean, he is silky smooth in both languages.  When he gets angry, he's a really good public speaker. He's been in debating classes. You know, he's, he's capable, athletically, you know, example, you know, his father wanted to, he had three sons, even though he was over 50 when, let's call it Pierre Trudeau, Justin's father was over 50 when, when Justin was born. And Pierre Trudeau divorced his wife when Justin was about six years old. Now he'd always lived with lots of money and nannies and that sort of thing. But, you know, for example, before he was 20, his younger brother, both he and of which were born on Christmas day, if you can believe that. Wow. How do you, how do you organize that? You have to have a lot of clouds to do that. Justin Pierre Trudeau was very smart. He figured out how to do it. But his younger brother, you know, they were skiing in what is called the bugaboos in British Columbia to an area in the Kootenays area, north of Idaho, straight north of Idaho. But in the most wild country, well, any 20-year-old that can ski in the bugaboos has had an awful lot of skiing and has got to be very athletic. I mean, it is heaven for skiing for anybody. Well, Trudeau kids and the father could, you know, ski like whizzes. I mean, that's why the son moved to British Columbia when he was fluffing along with, you know, 15 years to go through college. I suppose if I asked you, is this unique in your lifetime, the phenomenon of Justin Trudeau? He's not like any other Prime Minister, I think, in your lifetime. And so where is it taking Canada? What can Canada expect either from a continuation of Justin Trudeau or the next Prime Minister, however, you know, from whatever power base he has selected? You know, I mean, I'm always interested in sea changes. What sea changes does Justin Trudeau represent?  You know, now Trudeau is, you know, two thirds of the way through his second term or getting close to the end of his second term. And the popularity tends to go down and like in the U.S., well, if we had party A for eight years now it's time to change. That tends to be, you know, an action where the Canadian Parliament has certainly not been historically as adversarial as the U.S. Congress is now. And, you know, we've got, we've seemed to inherit, you know, a stronger conservative movement than lately. But it's not as ugly as the American one. Pardon my bias, but that's- No, I'm in the same place. But, you know, what does this mean as we go down the track here? The conservatives are going to get more powerful? I mean, I think there's a trend certainly in this country and in Europe, you know, toward conservatism and maybe even autocracy. So the question is, where does Trudeau stand on all of that? Will he last more? I guess he could. There's no term limit on him. Or will there be a conservative prime minister next time around? Has anybody surfaced who might actually oppose him or be the next prime minister? Or does he have the feel right now? There's a lot of conjecture that the current head of the conservative party in Canada, a guy named, you know, also, who's very, very fluent in French, nice French name, Pauliev, you know, that, but he was sort of born and raised in politics and that's it. You know, I think he was a member of parliament when he was about 30 years old and he's now about 45 or 50 and, you know, has never had another job, you know. Is he better qualified than Trudeau? In my opinion, yes, but in Canada, you tend to have a substantial element of the people that are fairly conservative and will vote for the conservative party. And then you have everybody is I'll vote for anybody but a conservative. Well, when you have this group of parties, such as in Quebec, let's say they don't like Trudeau, they will vote for the Quebec separatist party before they will vote for conservative. So, so that that or they'll vote for the third party, the one let's call NDP, which is sort of Bernie Sanders level of way over on the left. Well, I don't know that they're always as far over but both the same. So they, none of those fringe parties will make a coalition with the conservatives. So the conservatives have to win 51% to become prime minister. Now, that does happen fairly often. And especially if the head of the conservative party is from Quebec, you know, there was, you know, a month or so ago, a former prime minister died guy named Brian Mulroney. Now he was from Montreal, and he was one a one of the last prime ministers that got along with every US president that he dealt with. You know, very Irish guy in his nature, but he was actually from rural Quebec and very fluent in both French and English. And he swept Canada like he got, you know, three quarters of the seats in the in the parliament just as a conservative. But that's one of the threads of our discussion. Can I, you know, Canada is different in many ways the same but different. And if Americans want to be, you know, fully informed, they really have to know what you're talking about. And not only that, but they have to follow it, because it's not static, it changes. And so I'm afraid to say that a lot of Americans don't follow. But we follow it here on Think Tech. And I sure appreciate your sharing all this. I'm looking forward to further discussions with you, Ken. Ken Rogers, retired Canadian businessman, helping us understand what's on the other side of the border, you know, view from the north, as you will. Thank you so much, Ken. Thank you. Aloha. Aloha from Canada. We want to announce that Think Tech Hawaii is moving into a new phase and will not be producing regular talk shows after April 30th. We will retain our website and YouTube channel and will accept new content on an ad hoc basis. We are also developing a legacy archive program to provide continuing public access to our content. If you can help us cover the costs of the transition and the development of our legacy archive program, please make a donation on ThinkTechAway.com. Thanks so much. Aloha.


About 10 years ago, I was sitting at the desk of my very first desk job and I was having an existential crisis because I had gotten what was supposed to be a good job at the worst part of the recession in the economy and I was feeling miserable because I felt like my life was over and I was just 22. Well that day, I asked myself a fundamental question that changed the way that I live my life going forward and I want to share that here in this video today. What's up guys? Alex Hein over at Modern Health Monk. Before we jump in, I put together a free download right below this video which is for a free journaling worksheet. If you're trying to figure out how to improve your life, how to change your life going forward, how to make it more exciting, check out the free worksheet, it'll help you redesign everything you've done so far. So let's flash back. I'm sitting at my desk. I had what was supposed to be a good job and it was. I was a high school TA at a school in New York and even though teaching wasn't my dream, it was a great job at the peak of this 2008 recession when I graduated college. Now I had everything I was supposed to want. It was not an overly demanding job. It paid well. Overall, I really liked it and compared to my friends who were working in finance, working until six, seven, eight, I was done by 245 every day. I mean, I had a lot of time to live. Now that one day though, the thing in particular that struck me was primarily the fact that I felt that I was theoretically winning but I felt spiritually bankrupt. I didn't feel like this life that was supposed to be a grand adventure was a grand adventure at all. I felt like it was literally ending because this was what at 22 of the next 45 years of my life we're going to look like until the day I retired. I felt like a worker bee, like a drone in a factory or a cog in a wheel.  And when I got home, instead of going home, I went to a cafe and I wrote down, what would it take to have a conversation worthy life?  That sounds incredibly fun, incredibly interesting and what a life that would be.  Why don't I sit down and think what would be a conversation worthy life for me? And that question opened Pandora's box. So I came with four rituals. I came up with really four habits you could say after that day with myself and those four habits I want to walk you through right here. The very first being, I would ask myself the beginning of each quarter of the year, each season, I would say, how can I make this quarter bigger and better? In other words, what challenge can I issue to myself to make my life bigger and better? One, so that I'm more excited. Two, that my life is growing. And three, that I'm living a conversation worthy life. So I'll give you an example of a couple of these things because they are really cumulative. One of them was starting a website called Milk the Pigeon, which became a book, Milk the Pigeon. After I had written for a few years, I was getting a lot of people following my content there because it inspired them. And I thought, well, why don't I create a product? I create a product and wow, I learned how to be an entrepreneur. After being an entrepreneur, my next challenge was what if you could write a book? So for one quarter, I wrote the bare-bones skeleton of a book, which became multiple books. After that, it became my next mission, which was what if I could actually go back and get a doctorate in something I'm passionate about? So I went back and I got a doctorate and then it led to a YouTube channel and another book and a move. And as you can see, this becomes cumulative. Because if your identity is every 100 days, I'm issuing myself a new challenge for how to make my life bigger and better. And the fundamental point of it is that it requires you to grow. Then not only are you braver every 100 days because every new challenge is something you're ready for, but number two, you come back with a story. So for me, it ranges from career goals to personal goals to I went to do a shark dive in Fiji because I was really pretty scared of the ocean. Ultimately, on the other line of that, you're living a hell of a lot more interesting life and you've grown. The second ritual is this habit of adventure capital. I remember once talking to a friend, I met in an adventure, a travel somewhere.  He had a lot of friends in the start of business scene and a lot of them were, you know, basically venture capitalists. And he said, well, I like this idea of being an adventure capitalist. So I stole that idea from him. And the way it shows up in my life is that I have a bank account that just pulls basically $150 every month and it goes into a separate account. And it was just for a travel. But I orient that travel around some kind of distinct adventure that I want to go on, you know, it's going to the Amazon, but it's going to the Amazon to study with shamans. I'm going to India, but I'm going to India to observe the last living wild tigers in the world. I'm going to Philippines, but I'm going to the Philippines because I want to dive with whale sharks. You know, I'm going to a specific place for a mission or for an adventure. So saving a couple hundred bucks a month, that's increased a lot since. But having a fund that is for adventure capital literally is pre-framing in your mind like a placebo effect.  And I'm going to go do something cool and it's going to be memorable. The third ritual was jumping off of this idea of more travels was really basing more of my trips around adventures. So again, historically, I've always been someone who loved travel.  And if you're an American, you get like 12 days off a year. That's not even enough time for the one solid trip. If you plan on going away for Christmas as well. So I decided I'm going to become self-employed. And what I want to work up to is two weeks off once per season. So that's fine. I started off by going to Paris and Spain and all the generic European spots. But after that I thought, well, if I go to a certain place, where could I go that would be an amazing story or an amazing adventure? So some of the trips coming up are I'm going to Japan to study with blind acupuncturists. And I'm going to certain parts of Europe to go look at the medieval medicinal herb gardens and study with traditional healers there and indigenous healers. So I'm still traveling, but now my travels are for a mission. And missions are basically, you want a mission, you come back with a story, right? So everything is oriented around what's my adventure. And the fourth ritual I started doing was asking myself, you know, who do I actually admire most? I think for a lot of young men, it's like there's a James Bond kind of archetype that men admire because he mixes the masculine with the desirability with the violence with the status stuff. But really, who do you admire the most? If you're a more artistic type, maybe you admire some great artists.  For me, my passions were always around adventures and medicine and traditional medicine and shamans. So a lot of the people that I wanted to emulate, basically, were a specific kind of person. But for you, think of who you admire the most. You know, I think I can think back to one of my extended family members, my aunt, who's always been a writer. She was always impacted by these stories of these old writers in the 18 and 1900s who'd go to Paris, Sydney's cafes and write books. So guess what? That's what she started doing half of the year. She would go to Paris and she'd work on her books. So who do you admire the most? That gives you clues for how to make your life more interesting. Because whether it's Hemingway or Thoreau, or whoever it was in Paris, you can figure out if I emulate their life to a certain degree. Whether it's medical, martial arts, creativity, business. If I take some of those adventures on, then I'm following in the footsteps of those giants that have come before me. And that is going to be a very interesting life. So those are my four thoughts on how I injected more creativity into my own life to make it more conversation worthy. Check out the journaling worksheet I've put together along with this video. It'll help you figure out what some ideas are going forward in your life. And ponder these four steps more guys, all right? I'll see you soon.


Yeah, thanks. That is quite a crowd which is amazing Just a quick show of hands so that I know you as an audience who is here because of the nerdy part And who is here because of the coding standards part of the title? so the nerdy Okay, okay So this will be about does it does not work Okay, if I turn it on turned on it works. So the coding standards um a very shallow introduction So what is a coding standards? What are coding standards? So? basically a coding standard or the coding standards are rules and guidelines made up by someone for now for a program language or some other context It becomes a standard if this rule set has been accepted by a large group of people for example So some terminology we do have coding standards As I said now coding standards are an accepted set of rules What happens if they are not accepted? Well, then you can call them coding conventions It's just rules some people follow them You can make up your own coding conventions and if yeah a lot people think this is cool Then this will eventually become a standard um Coding conventions can be about code style, which is just the formatting so the visual looks of your code It can be about best practices So this is like lots of people tried things in different ways and this has proven to be the best way or one of the best ways It could be conventions about naming. How do you name functions? How do you name classes? How do you name variables? Files, how do you structure your code base and things like that? It could be about commenting. Do you comment or not because your code is self-explanatory. What do you comment? Is it Just yeah, the technical part is it really documentation and things like that and lots of other things so Who defines code coding standards? It could be the inventors of a program language. So for example go is a pretty new language It was introduced directly with a side a set of standards It was introduced with certain ways that you write go code for example Go is automatically tested if you do it the way they tell you how to do it It could be some company deciding for rule sets, and then yeah, they're making that standard So for example the Zend framework standards This is specific to that framework, but the company still made it up Could be a community. So for example the WordPress coding standards are a group effort of the WordPress community But actually it could be any large enough group So if you have a large enough fraction of a group in some context could be even I don't know a specific tool in one language in one technology Techfield so that could exist a coding standard just for that Now Now when you see there is something one of the questions is why is it there? And why should I care so why use coding standards? The most obvious thing is if you have something that follows standards It's easier to understand so in code code is written. You can read it more easily Why is that because it's consistent? so you have rules to follow and Yeah, if everyone who is involved in Developing the project and continuing the project and adding things follows the same set of rules then the code base is consistent Another thing is because you can easily understand that you can easily maintain it like there is a bug It's way less time spent on trying to figure out what you're reading if you're reading in the right part of your code base Or whatever because you just understand it every file is following the same set of rules is made up in a similar fashion So you really spend your time chasing down a problem finding the root of a problem the cause of a problem There are also standards in the term in terms of security So if you follow security standards your code becomes secure or more secure and also consistency and readability and Secureness and all these quality things of course. Yeah improve the overall code quality There is the same rules I meant to be broken I don't think this is right because because you can understand it like some people just make up rules So that other people can break them and will break them I think it's more like rules are there and if you make something a rule and you follow want to follow a rule It makes total sense But there should be room for exceptions. So one funny aside I'm living in a flat in a house in a house block that is all maintained by one property management Company and we have a caretaker and we have a garage under the houses and Yeah, so the caretaker one one day came to me and yeah Talk to me. So, you know, you have stuff on your parking lot and this is this is not allowed I have to warn you and you have to move it away And if not, I have to find you and so on and I was thinking about what is he talking about? And yeah, I went down with him and had a look had a look at him. So are you serious? What's the reason? Yeah, you have stuff here if a fire breaks out It could burn and so on and this was what was on the parking lot So there was this rule there has to be nothing but vehicles on the parking lot and which is not true for a six pack of water, but I Don't think this will catch fire or so, but yeah Okay, so we had coding standards in general now the context of the switch to wordpress Are there wordpress related WordPress specific coding standards? Yes, they are They live on make what was a dog? What are they about so we have php coding standards because most of the code base is php Even though we have Calypso Gutenberg and things like that php is the base of the wordpress code the software Of course, we also have JavaScript. So they are JavaScript specific coding standards Then they're still HTML because wordpress is yeah used to serve web sites Or web pages and then of course we style or web pages We have CSS specific things and also the the handbook lists accessibility Coding standards. I don't think the structure also putting these things in there as a coding standard is right Because they somehow relates to HTML other standards here relate to JavaScript They all make total sense But it's not really a standard to follow in that terms because the other things are like the standard in one Programming language or web technology, but of course they are standards And maybe it's it's it had been done this way to make more people aware of these specific things Which might be overlooked in one tiny thing as a in the HTML site or so The php coding standards, what do they include? So for example one rule of the standard is in wordpress We have to use tabs and not spaces We use else if and not else space if or We space things No, and we use underscores for example. Here's a code example Then we have JavaScript coding standard. So we Don't want to have space at the end of lines and which also means in blank lines We quote our strings in single quotes and We space things out. So we have white space around arguments around Array keys and our object keys and so on HTML coding standards. So we have HTML text. We have attributes names and they all has to have to be written in lower case always quote attributes or If we have self-closing text we Do as we put a space in here, which is follow the mantra space things out CSS coding standards. We have attribute selectors And we have quotes around values in like if you have input type whatever you have to quote that Properties we have a colon and then a space and things like that. So some of them are Formatting like the style code style specific some of them are Naming conventions some of them are just best practices for whatever reason. It's not always Justified why you should do this sometimes. It's just obvious sometimes It's just a decision and you could have done it differently and now we made this decision we follow them So we have consistent code Okay, so how do you get started? One easy thing to do is This who here knows about the editor config project of fire Wow, okay. No nobody one two, okay What is it? So basically if you have a project somewhere you can put in this file so file with a dot editor config file name and Inside you have Yeah, you can use one or more of a certain set of Rules or attributes or properties and you define for your editor or your IDE How certain things should be treated saved and whatever so Basically, this can be used with different Edisos and ideas some of them just understand it out of the box for others. There are plugins and maybe If you are using some whatever custom-made IDE or so you have to integrate it yourself so what Do we have so this is the full set of the Properties that's every IDE and editor currently out there understands So what you can do is you can say my indent style is space or is tap My indent size is for spaces So if you visually have your tap it should be for spaces if you use spaces then one indenting means for spaces Your end of line your char set you utf-8 and so on and then there's also the max line length Which is not understood by all of the editors currently This is an example editor config file The root true here means just I don't care about any other Files that you might find here in my project. This is the root. So don't bubble up and try to find something else In Brackets you have either a white card or just a string of a file name or a white card or a Pattern or whatever for and fine names and after that you have the property definitions So basically this means whatever file you have We use tabs the end of line is linux style and so on and later on you can specify different fine names or patterns again and either redo or redefine things that you defined before or Define them because yeah, it's just it just makes sense for this. So for example Jason files or the RC, which is a config file is lint RC for example or yaml files We don't indent with a tap. We use spaces and we use two spaces to indent them so in this case the indent style gets over with it was defined here as a tap and the indent size was not defined at all or Yeah, it was not and then and we have markdown files Markdown, yeah trailing spaces are needed if you want to do a simple line break without a paragraph Skip between so we don't want to trim white space on markdown files a Second thing that you can use is if you happen to use git as your versioning system for your code base You can make use of a file named git attributes git attributes is mainly about configuring or Yeah defining some kind of configuration some attributes for paths on This means just folders or files in your project, but there are Certain things that you can do which yeah have a relation or are actually part of coding standards. So How this works is again you have a pattern the first one says whatever it is I Want to treat it as a text file and then the line ending should be a linux style and then you can specify Okay, but if I happen to have JPEG or PNG files, they are binary files and then also I just included here other things so the export ignore for example Just to show there are other things that you can put in a git attributes file and to make sure if you understand Hey, this is the file I should use then maybe it makes sense to not just define the git attributes file But also inside it tell git. Hey, this is not of use to anyone who's downloading the zip file for example It's just for the development version Okay, now we come to the major part of the tools here So PHP code sniffer PHP code sniffer is a tool It's a command line tool that detects violations of the coding standards that you feed them the feed the tool Actually, it's not only working for PHP, but also for JavaScript and CSS But in the workplace context, we only using it for PHP and in my opinion, it's the most Natural thing to do because this is how it started and in my opinion There are far better tools for either JavaScript or CSS or Zas or whatever This is the main coding standards related to tool for WordPress or for PHP and The coach never understands certain set of standards So a standard as we had before is a collection of predefined rules And they are built in standards. So if you just download or however You want to take it and the things so you can clone the git repository or whatever So if you somehow manage to get the code sniffer tool, you already have some standards For example the peer standards. You have psr2. You have a Zen specific thing So this is what the Zen framework follows and some more Then there are WordPress standards There is one global God standards that basically gives you everything that's there and then there are more finer Granular things and then these things are just being used by the WordPress global standard So there are standards just for WordPress core then there is a standard for the WordPress VIP. So There go into account things like what happens if you have an enterprise high traffic large site multi-site network, whatever Specific security related things and so on and there are others for example, there is one for documentation and things like that And there are other there are lots of Codes of a standard but other standards that's in my opinion make use for our context here One is the PHP compatibility. This has been mentioned. I think once yesterday at the contributor day once today at the GDPR talk maybe There is a security related PHP PHP specific not WordPress specific standard or set of rules There is a neutron standard, which is currently new. It's by and it's created and maintained by automatic This is if you happen to write PHP 7 and beyond code. There are specific rules in there And much more so This is a very simple rule set file. So it's an XML file You define your rule set give it a name and then you can do lots of things in there So in this example, I include some file paths. So it's for a plugin So I have a source folder and I want to target everything inside there And then also I have an index PHP file because I just yeah, it's just my plug-in main plug-in file It could also be WooCommerce PHP whatever and I have an uninstalled PHP file and then I reference to rule sets The PHP compatibility and the whole WordPress thing Of course, you have to install them as dependencies of your project and then you can use them You can also include or exclude specific things. You don't have to include the whole rule set the whole standard So what you can do here is I take the WordPress standard, but I don't want the VIP This is easier for me than including the WordPress core the WordPress documentation the WordPress best practices the WordPress style or whatever Just telling hey give me everything except for the VIP part. I don't need it. I don't want it Or I can import the naming conventions valid hook name Entity it's a sniff specific thing and I can customize it So for example the built-in configuration says hey, you can only use alpha numeric characters and the Underscore so this is how WordPress says how your action and filter so the hook names have to look But what if I want to have a dot in there like I have my awesome plug-in dot and then the action name I can configure PHP Code sniffer to understand and accept that so I just say okay I take the sniff, but I want to also allow the dots as an as a word delimiter What you can also do oh this is a bit George and what you can also do is At the bottom your reference a local file So this is the rule set that we saw before so I just take whatever I have in there And then I am configure additional things. So for example, I want to cash when I use this rule set the result So PHP CS tries to see if there were any changes on the files Since the last one if not you just get served the cash result And also I want to specify some command line arguments like I want to have the full report This is just one of the available reports I want to have the full report and store it in report full txt I want to have the source specific report and I want to have a summary like I found 42 and security specific violations and I found 20 style specific violations and so on How to use it? It's a command line to you. So you use it on a command line But you can also not only use it locally, but on your CI if you have continuous integration server Travis or a circle CI or whatever You can use for reporting which is just checking for violations the PHP CS command But there's also some nice thing. It's auto-fixing. So the project itself does not only have a single binary the PHP CS But it also has the PHP. I think it's code beautifier binary which For a certain amount of the code snips is able to automatically fix them So if you have the rule set, hey, I want to have some spaces around my array keys This is a simple thing if there are no spaces or if there maybe are three spaces before the key This tool can fix that You can easily integrate this into your IDE so PHP storm for example, I'm sure Adam and sublime I don't know are able to somehow interact with that So you don't have to use it from the command line, but make make use of it in the user interface of your IDE What if you want to select or disable things here? So you have the standards and you don't want to exclude a rule completely But for specific files or for specific parts in your files, you can do that with comments So you have the PHP CS ignore, which means just the next line will not be checked You can disable the the tool so as soon as this commands or this comment gets Yeah, the as soon as the tool reads this command It doesn't report anything until the file ends or until you find the enable command again And you can just say hey ignore this file Which basically means it's shorter than disable at the top and don't enable or whatever But you can also pass either standard names or sniffs So I can say I want to ignore in the next line This is only the whole WordPress related sniffs or I want to disable just the CSRF specific sniffs as I said, we don't have only PHP We also have JavaScript and for JavaScript. There was JS hint. There was JS lint There was JS CS and yeah the future and for at least two years or so is ES lint ES lint is quite similar to PHP CS for the JavaScript Ecosystem so it's a linting utility so it Statically analyzes your code and tells you if it's it here's to your standards or not It understands JavaScript, but also JSX which is some new syntax Which was introduced with react It's highly configurable so you can configure the whole tool You can can configure certain things you can configure some parts of the tool via the command line So with flags and so on And it also comes with optional autofix capabilities The rules that are available so so this is the Set of categories for rules that come with the tool itself So you have possible errors you have best practices and so on and you can decide what categories you want to use And what individual rules you want to use This is a possible configuration file. This is a JSON file So you have some configuration at the top then you have some plugins maybe a plugins extend the functionality It could mean and they introduce new rules. It could mean they introduce new processing capabilities like Generating the outputs or something else and then you have the rules so in this example I'm importing I'm using the import plugin and I'm using the eek eek eek, which is the triple equal sign comparison And so my rule set only consists of two rules one built in in ES lint And one comes with this import plugin that I'm using So how do you use this ES lint is also a command line tool? So you just call ES lint it has lots of arguments that you can yeah Just use certain things or just run it on certain files or whatever And if you want to make it autofix The make use of its autofix functionality then you have to specify that so by default it just lints it just reports and tells you hey, this is what I found or nothing and And similar to phpcs you can disable certain things It's looking pretty similar. So you have ES lint disable you have enable you have disable for that line Which means either if it's put in the same line, then it's for the next line I think or it's really you have to put in the end of the line okay, here are I'm dedicated for next line and line and Similar to phpcs you cannot only disable the tool, but disable certain rules, which yeah Sometimes might be useful or you have to For wordpress there is a configuration So it is based on some of the things that are available in ES lint And so they the maintainers of this config Package just they picked what makes sense and maybe even added things I don't know and so you can just extend the wordpress thing and configure how you want to use it Another thing is prettier Prettier I Think you know if you know prettier you know it from the JavaScript ecosystem But I learned just this week that it can also understand CSS and other formats like jason and I don't know what else so The the project page describes this as an opinionated code formata opinionated here means You cannot configure it that well as other things. It's it's more fitting to wordpress like decisions and options PHP actually is a work in progress so the prettier project will be in some weeks month Also able to work on PHP files And is it being used in the wordpress contexts? not yet But if you tried that and failed or thought about trying that or so Reach out to these guys on Twitter. So I mean these are just three of Them of who I know who tried that And what's important here is you can use prettier together with ES lint so you can make use of certain things and prettier because it works differently and allows some things that is lent does not and is lint is able to Yeah, do some things out of the box that prettier does not and is lint is highly configurable So everything that none of the tools offers you out of the box you can make Is lint do for you and if you introduce new rules you might as well be able to implement the auto fix functionality So the lessons learned I do hope Coding standards are great if you want to use them just do if you want to adapt or customize them Just do this is what they are for you don't have to take a standard and use it. It's like all or nothing You can take a standard you can combine different standards you can just cherry pick the things that make sense for you and Maybe even yeah come up with your own coding convention And who knows they might become standards in a certain tech field Maybe you heard that there was this largest patch in the history of WordPress last year I don't know when it was October November something like that. So the WordPress coding standards actually did get Applied to the code base a lots of things were able to get auto fixed But there are lots of things that have to be fixed manually So if you have a rainy afternoon, don't know what to do Just run PHP CBF and pick one of the files with Yeah violations and fix that create a patch and uploads lots of people will be happy I think there were three thousand open issues and not issues like open violations Yeah A tiny thing Tied got also mentioned yesterday and today so tight Why is all of this important because now it's not only you who can make use of coding standards and tools that? Yeah, just tell you if you adhere to the standards or maybe automatically fix them now with tight There's some other instance that is doing this on your code So if you happen to have a plug-in or a theme on the WordPress doc directory Currently I'm mature. I think currently they get only checked for PHP compatibility But I'm sure in the near future They will also get checked against the WordPress best practices and so on and maybe even they will report the authors Like send an email. Hey, we found this and so on so if you don't know about this Maybe you know now so what you can do is Make Make use of the tools on your own or if you don't want to do this But you are following some kind of standards just create or try to create the standard file Because then tight will use that and it just makes it doesn't make sense if you decide. Hey, I want to do things these This way and then tight would tell you yeah, but you're doing things wrong because if you put a Configuration file in there then tight reads it and says okay This is what you want your code to look like and it does look like that If it does not find anything it falls back to the WordPress coding standards and yeah, you can just prevent that This was it from my side if you have any questions just ask me now or find me later Maybe at the TV or wherever Thank you for your Check Yeah So the question was yeah, the question was and there are ways to Disable certain things both for ESLint the JavaScript linter and PHP CS the pH the PHP specific one The question is where to look it up and how to use that so for the build in rules both for ESLint and pH PCF the original documentation The documentations are awesome. They are extensive They both come with lots of practical examples are not just text. So you have tiny Things addressed as text or explained as text and then addressed in some config example or code example It happens So it depends on what you want to enable or disable is it something built in then you find that in the official documentation So you will of course find the command or the technique like its ESLint dash disabled something like that And if you want to target a specific rule or sniff or code or so you have to know what this is For PHP code sniffer PHP CS you can pass I think it is S as an argument. So if you call PHP CS dash s it will include the error code So the name of the sniff in all of the reports. So then you know, okay, I want to disable this for ESLint I don't know But the official documentation is really great. Well, thank you very much for your talk. It was a pleasure