Friday, May 22, 2020
How and Why to Comment in Your PHP Code
A comment in PHP code is a line that is not read as part of the program. Its only purpose is to be read by someone who is editing the code. So why use comments? To let others know what youre doing. If you are working with a group of people or plan on anyone else ever using your script, the comments tell the other programmers what you were doing in each step. This makes it much easier for them to work with and to edit your code if needed.To remind yourself what you did. Although you may just be writing a quick script for yourself and dont see the need for comments, go ahead and add them in anyway. Most programmers have experienced coming back to edit their own work a year or two later and having to figure out what they did. Comments can remind you of your thoughts when you wrote the code. There are several ways to add a comment in PHP code. The first is by using // to comment out a line. This one-line comment style only comments to the end of the line or the current code block, whichever comes first. Here is an example: ?php echo hello; //this is a comment echo there; ? If you have a single line comment, another option is to use a # sign. Here is an example of this method: ?php echo hello; #this is a comment echo there; ? If you have a longer, multi-line comment, the best way to comment is with /* andà */ before and after a lengthy comment. You can contain several lines of commenting inside a block. Here is an example: ?php echo hello; /* Using this method you can create a larger block of text and it will all be commented out */ echo there; ? Dont Mix Comments Although you can nest comments within comments in PHP, do so carefully. Not all of them nest equally well. PHP supports C, C and Unix shell-style comments. C style comments end at the first */ they encounter, so dont nest C style comments.à If you are working with PHP and HTML, be aware that HTML comments mean nothing to the PHP parser. They wont work as intended and are likely to execute some function. So, stay away from:à !--Comment--
Friday, May 8, 2020
Thomas Jefferson and Slavery - 1131 Words
Thomas Jefferson and Slavery Of slavery, the third President of the United States and co-writer of the Declaration of Independence as well as the Constitution of the United States wrote: But, as it is, we have the wolf by the ear, and we can neither hold him, nor safely let him go. Justice is in one scale, and self-preservation in the other. This quote illustrates the role that slavery played in the western world at the end of the eighteenth century. In The Declaration of Independence, Jefferson wrote that: We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness (Jefferson 1776). According to this document, all human beings should be considered equal, but this does not take into account Africans who were not treated as equals and were not even treated as human beings at this time in history. Many people, including Jefferson desired that an end to slavery be wri tten into the Constitution, a move that was decided against when the delegates realized that the southern states would never ratify the document if it contained that demand. The conflict between abolitionists and anti-abolitionists was an issue which would not be resolved until nearly a century after Jeffersons writings, but it is clear from this statement that he and others felt the issue keenly and were trying to find a way to deal with it, but wereShow MoreRelatedEssay Thomas Jefferson and Slavery994 Words à |à 4 PagesThomas Jefferson is a man who really needs no introduction. He was recognized as a luminous writer who was appointed to draft the Declaration of Independence. Congress formally approved the Declaration of Independence on July 4, 1776. Jefferson owned many slaves that worked for him. He would often even sell his slaves to buy others. Why then would he write in the Declaration of Independence, ââ¬Å"all men are created equalâ⬠? Is it possible that Thomas Jef ferson was a hypocrite and only wrote what theRead MoreThomas Jefferson and Slavery in Virginia1035 Words à |à 5 PagesThomas Jefferson and Slavery in Virginia At the bottom it was slavery that divided Virginia along the Blue Ridge Mountains. Most members of the convention have agreed with the opinion of the distinguishing delegate, James Monroe, that ââ¬Å"if no such thing as slavery existed.. the people of our Atlantic border, would meet their brethren of the west, upon the basis of a majority, of the free white population.â⬠But slavery existed, largely as an eastern institution; and it demanded protection from mereRead MoreEssay On Slavery Vs Thomas Jefferson769 Words à |à 4 Pagescommonly believe that Thomas Jefferson is a hypocrite, due to one of his most famous quotes is ââ¬Å"all men are created equalâ⬠, he owned slaves and never released them. The topic over slavery and Thomas Jefferson is extremely controversial today in America. In each excerpt, each author clearly addressed the issue of presentism. In Wilsonââ¬â¢s excerpt he addressed the issue of presentism by, considering the time eras and the dilemmas that Jefferson had. He wrote that Jefferson knew that slavery was wrong, but freeingRead MoreBenjamin Bannekers Rhetorical Appeals to End Slavery in his Letter to Thomas Jefferson539 Words à |à 2 Pagessaid that slavery is a stain on our countryââ¬â¢s past. The topic of slavery was and still is a controversy in which equality is a struggle to obtain. However, what occurred in the past created the nation that lives on today. Benjamin Banneker was one man who stood out in the efforts to end slavery. He did so in writing a strongly worded letter to Thomas Jefferson that exclaimed his opinions and feelings. Banneker used an appeal to pathos, repetition, and religious appeals to argue against slavery. Read MoreA Conversation Between Thomas Jefferson and Daniel Coker Concerning a Vast Array of Issues Surrounding Slavery2737 Words à |à 11 Pagesï » ¿A Conversation Between Thomas Jefferson and Daniel Coker Concerning a Vast Array of Issues Surrounding Slavery It is easy for those of us living in the modern world to look back to the time of slavery and say it was wrong. It is also easy for us to see nothing wrong with intermarriage between races, though there are still pockets of people who feel it to be very wrong and will even disown family members for marrying outside their race. However, in the late 18th and early 19th centuries, thereRead MoreRhetorical Analysis Of Benjamin Banneker928 Words à |à 4 Pageswrites to Thomas Jefferson in 1791 in an effort to denounce slavery in the United States. His letter was written in an era during a time which slavery was commonly practiced in the United States. In his appeals, Benjamin touches on topics of the cruel way blacks were treated and attempts to persuade Thomas Jefferson to reconsider his tolerance of such a heartless system. In his letter, Banneker utilizes ethos, pathos, logos, textual citation, and textual citation to relate to Jefferson about pastRead MoreThomas Jefferson s Influ ence On Modern Day Democracy1616 Words à |à 7 PagesThomas Jeffersonââ¬â¢s Influence on Modern Day Democracy and Racism Thomas Jefferson created two facades when it came to racism and slavery. Thomas Jefferson had a personal history with slavery and owning a plantation, but in certain instances he appeared to support equality like in his letter to Benjamin Banneker. Different texts like Notes on the State of Virginia by Thomas Jefferson with the related documents edited by David Waldstreicher, and Banneker and Jefferson Letter Exchange are examples ofRead MoreShould Americans Focus On Slavery868 Words à |à 4 PagesShould Americans focus on slavery or focus on equality? There are always two different opinions and two different sides. For years and generations people have argued which is the right thing to do. Treat every citizen equal or bring back slaves? On some level, bringing back slaves should be put back on the table. For a fact, many people take their freedom for granted and take advantage of what they have. Bringing back slavery would make those ungrateful people appreciate what they had. Pe ople willRead MoreOver The Course Of Evaluating Americaââ¬â¢S History, Much Time1624 Words à |à 7 PagesOver the course of evaluating Americaââ¬â¢s history, much time has been spent deliberating Thomas Jeffersonââ¬â¢s motives and actions in regards to slavery and its possible abolition. This topic has become a very polarized subject as some feel he was a clear abolitionist obstructed by a time during which popular opinion was distinctly in favor of slavery; others believe his claim to be a humane philanthropist was just a front as his actions so evidently played into supporting the system which he claimedRead MoreRhetorical Analysis Of Benjamin Bannekers Letter To Thomas Jefferson958 Words à |à 4 Pagesgates of slavery, Banneker expresses how those with freedom take it for granted and donââ¬â¢t realize what a blessing it truly is. He wants all slaves or people who are treated poorly to enjoy life of freedom and happiness that others get to savor. Thomas Jefferson was a United States Secretary of State and the former of the Declaration of Independence. He wrote words that have left a lasting impact in the Americas. Jefferson however did not follow by those words. In Bannekers letter to Thomas Jefferson
Wednesday, May 6, 2020
A Place That Gets Worst From Time To Time Free Essays
There is a country in South East Asia known as the Philippines. It is composed of 7.100 islands and has its roots dating back to Spanish occupation. We will write a custom essay sample on A Place That Gets Worst From Time To Time or any similar topic only for you Order Now The country has a long history of being an occupied nation. Spanish slavery by the Americans only to be occupied by the Japanese during World War II. The Americans once again liberated it and eventually gave the country independence. The country has never stood a chance to develop and become a player in the emerging economies of the world due to poor political leadership. It was under a dictatorship spanning twenty years begging in the 70ââ¬â¢s. The dictator president, Ferdinand Marcos was ousted in a bloodless revolution known as People power only to have the new leaders hounded by countless military uprisings that continue into the present leadership of the country. It is this political turmoil that has caused regression in the country. It has been getting worse since the Americans left because the people do not know how to govern themselves. They could be the Asian equivalent of Nigeria in the future most specially with their national elections, known for its violence, being underway with the opening of the campaign season this January. In the end, it seems like bad leadership and selfishness is causing an already bad situation to get worse in a country that seems to be getting into even worse situations with each passing day. In this situation that seems to have no solution, only the ordinary citizens of the country come out at the losers because they do not have the voice to be heard and the conviction to fight for what is due to them. à How to cite A Place That Gets Worst From Time To Time, Essays
Subscribe to:
Comments (Atom)