Monday, March 16, 2020

How to Separate the JavaScript in Your Web Page

How to Separate the JavaScript in Your Web Page When you first write a new JavaScript the easiest way to set it up is to embed the JavaScript code directly into the web page so that everything is in the one place while you test it to get it working right. Similarly, if you are inserting a pre-written script into your website the instructions may tell you to embed parts or all of the script into the web page itself. This is okay for setting up the page and getting it to work properly in the first place but once your page is working the way that you want it you will be able to improve the page by extracting the JavaScript into an external file so that your page content in the HTML isnt so cluttered with non-content items such as JavaScript. If you just copy and use JavaScripts written by other people then their instructions on how to add their script to your page may have resulted in your having one or more large sections of JavaScript actually embedded into your web page itself and their instructions dont tell you how you can move this code out of your page into a separate file and still have the JavaScript work. Dont worry though because regardless of what code the JavaScript you are using in your page you can easily move the JavaScript out of your page and set it up as a separate file (or files if you have more than one piece of JavaScript embedded in the page). The process for doing this is always the same and is best illustrated with an example. Lets look at how a piece of JavaScript might look when embedded in your page. Your actual JavaScript code will be different from that shown in the following examples but the process is the same in every case. Example One script typetext/javascript if (top.location ! self.location) top.location self.location; /script Example Two script typetext/javascript! if (top.location ! self.location) top.location self.location; // /script Example Three script typetext/javascript /* ![CDATA[ */ if (top.location ! self.location) top.location self.location; /* ]] */ /script Your embedded JavaScript should look something like one of the above three examples. Of course, your actual JavaScript code will be different from that shown but the JavaScript will probably be embedded into the page using one of the above three methods. In some cases, your code may use the outdated languagejavascript instead of typetext/javascript in which case you may want to bring your code more up to date to start with by replacing the language attribute with the type one. Before you can extract the JavaScript into its own file you first need to identify the code to be extracted. In all three of the above examples, there are two lines of actual JavaScript code to be extracted. Your script will probably have a lot more lines but can be readily identified because it will occupy the same place within your page as the two lines of JavaScript that we have highlighted in the above three examples (all three of the examples contain the same two lines of JavaScript, it is just the container around them that is slightly different). The first thing you need to do to actually extract the JavaScript into a separate file is to open a plain text editor and access the content of your web page. You then need to locate the embedded JavaScript that will be surrounded by one of the variations of code shown in the above examples.Having located the JavaScript code you need to select it and copy it to your clipboard. With the above example, the code to be selected is highlighted, you do not need to select the script tags or the optional comments that may appear around your JavaScript code.Open another copy of your plain text editor (or another tab if your editor supports opening more than one file at a time) and past the JavaScript content there.Select a descriptive filename to use for your new file and save the new content using that filename. With the example code, the purpose of the script is to break out of frames so an appropriate name could be  framebreak.js.So now we have the JavaScript in a separate file we return to the editor where we have the original page content to make the changes there to link to the external copy of the script. As we now have the script in a separate file we can remove everything between the script tags in our original content so that the /script;script tag immediately follows the script typetext/javascript tag.The final step is to add an extra attribute to the script tag identifying where it can find the external JavaScript. We do this using a  srcfilename  attribute. With our example script, we would specify srcframebreak.js.The only complication to this is if we have decided to store the external JavaScripts in a separate folder from the web pages that use them. If you do this then you need to add the path from the web page folder to the JavaScript folder in front of the filename. For example, if the JavaScripts are being stored in a  js  folder within the folder that holds our web pages we would need  srcjs/framebreak.js So what does our code look like after we have separated the JavaScript out into a separate file? In the case of our example JavaScript (assuming that the JavaScript and HTML are in the same folder) our HTML in the web page now reads: script typetext/javascript srcframebreak.js /script We also have a separate file called framebreak.js that contains: if (top.location ! self.location) top.location self.location; Your filename and file content will be a lot different from that because you will have extracted whatever JavaScript was embedded in your web page and given the file a descriptive name based on what it does. The actual process of extracting it will be the same though regardless of what lines it contains. What about those other two lines in each of examples two and three? Well, the purpose of those lines in example two is to hide the JavaScript from Netscape 1 and Internet Explorer 2, neither of which anyone uses any more and so those lines are not really needed in the first place. Placing the code in an external file hides the code from browsers that dont understand the script tag more effectively than surrounding it in an HTML comment anyway. The third example is used for XHTML pages to tell validators that the JavaScript should be treated as page content and not to validate it as HTML (if you are using an HTML doctype rather than an XHTML one then the validator already knows this and so those tags are not needed). With the JavaScript in a separate file there is no longer any JavaScript in the page to be skipped over by validators and so those lines are no longer needed. One of the most useful ways that JavaScript can be used to add functionality to a web page is to perform some sort of processing in response to an action by your visitor. The most common action that you want to respond to will be when that visitor clicks on something. The event handler that allows you to respond to visitors clicking on something is called  onclick. When most people first think about adding an  onclick  event handler to their web page they immediately think of adding it to an a tag. This gives a piece of code that often looks like: a href# onclickdosomething(); return false; This is the  wrong  way to use  onclick  unless you have an actual meaningful address in the  href  attribute so that those without JavaScript will be transferred somewhere when they click on the link. A lot of people also leave out the return false from this code and then wonder why the top of the current page always gets loaded after the script has run (which is what the href# is telling the page to do unless false is returned from all the event handlers. Of  course,  if you have something meaningful as the destination of the link then you may want to go there after running the  onclick  code and then you will not need the return false. What many people do not  realize  is that the  onclick  event handler can be added to  any  HTML tag in the web page in order to interact when your visitor clicks on that content. So if you want something to run when people click on an image you can use: img srcmyimg.gif onclickdosomething() If you want to run something when people click on some text you can use: span onclickdosomething()some text/span Of  course,  these dont give the automatic visual clue that there will be a response if your visitor clicks on them the way that a link does but you can add that visual clue easily enough yourself by styling the image or span appropriately. The other thing to note about these ways of attaching the  onclick  event handler is that they do not require the return false because there is no default action that will happen when the element is clicked on that needs to be disabled. These ways of attaching the  onclick  are a big improvement on the poor method that many people use but it is still a long way from being the best way of coding it. One problem with adding  onclick  using any of the above methods is that it is still mixing your JavaScript in with your HTML.  onclick  is  not  an HTML attribute, it is a JavaScript event handler. As such to separate our JavaScript from our HTML to make the page easier to maintain we need to get that  onclick  reference out of the HTML file into a separate JavaScript file where it belongs. The easiest way to do this is to replace the  onclick  in the HTML with an  id  that will make it easy to attach the event handler to the appropriate spot in the HTML. So our HTML might now contain one of these statements: img srcmyimg.gif idimg1 span idsp1some text/span We can then code the JavaScript in a separate JavaScript file that is either linked into the bottom of the body of the page or which is in the head of the page and where our code is inside a function that is itself called after the page finishes loading. Our JavaScript to attach the event handlers now looks like this: document.getElementById(img1).onclick dosomething; document.getElementById(sp1).onclick dosomething; One thing to note. You will notice that we have always written  onclick  entirely in lowercase. When coding the statement in their HTML you will see some people write it as onClick. This is wrong as the JavaScript event handlers names are all lowercase and there is no such handler as onClick. You can get away with it when you include the JavaScript inside your HTML tag directly since HTML is not case sensitive and the browser will map it across to the correct name for you. You cant get away with  the wrong  capitalization  in your JavaScript itself since the JavaScript is case sensitive and there is no such thing in JavaScript as onClick. This code is a huge improvement over the prior versions because we are now both attaching the event to the correct element within our HTML and we have the JavaScript completely separate from the HTML. We can improve on this even further though. The one problem that is remaining is that we can only attach one onclick event handler to a specific element. Should we at any time need to attach a different onclick event handler to the same element then the previously attached processing will no longer be attached to that element. When you are adding a variety of different scripts to your web page for different purposes there is at least a possibility that two or more of them may want to provide some processing to be performed when the same element is clicked on. The messy solution to this problem is to identify where this situation arises and to combine the processing that needs to be called together to a function that performs all of the processing. While clashes like this are less common with onclick than they are with onload, having to identify  the clashes in advance and combine them together is not the ideal solution. It is not a solution at all when the actual processing that needs to be attached to the element changes over time so that sometimes there is one thing to do, sometimes another, and sometimes both. The best solution is to stop using an event handler completely and to instead use a JavaScript event listener (along with the corresponding attachEvent for Jscript- since this is one of those situations where JavaScript and JScript  differ). We can do this most easily by first creating an addEvent function that will add either an event listener or attachment depending on which of the two that the language being run supports; function addEvent(el, eType, fn, uC) { if (el.addEventListener) { el.addEventListener(eType, fn, uC); return true; } else if (el.attachEvent) { return el.attachEvent(on eType, fn); } } We can now attach the processing that we want to have happen when our element is clicked on using: addEvent( document.getElementById(spn1), click,dosomething,false); Using this method of attaching the code to be processed when an element is clicked on means that making another addEvent call to add another function to be run when a specific element is clicked on will not replace the prior processing with the new processing but will instead allow both of the functions to be run. We have no need to know when calling an addEvent whether or not we already have a function attached to the element to run when it is clicked on, the new function will be run along with and functions that were previously attached. Should we need the ability to remove functions from what gets run when an element is clicked on then we could create a corresponding deleteEvent function that calls the appropriate function for removing an event listener or attached event? The one disadvantage of this last way of attaching the processing is those really old browsers do not support these relatively new ways of attaching event processing to a web page. There should be few enough people using such antiquated browsers by now to disregard them in what J(ava)Script we write apart from writing our code in such a way that it doesnt cause huge numbers of error messages. The above function is written so as to do nothing if neither of the ways it uses is supported. Most of these really old browsers do not support the getElementById method of referencing HTML either and so a simple  if (!document.getElementById) return false;  at the top of any of your functions which do such calls would also be appropriate. Of course, many people writing JavaScript are not so considerate of those still using antique browsers and so those users must be getting used to seeing JavaScript errors on almost every web page they visit by now. Which of these different ways do you use to attach processing into your page to be run when your visitors click on something? If the way you do it is nearer to the examples at the top of the page than to those examples at the bottom of the page then perhaps it is time you thought about improving the way you write your onclick processing to use one of the better methods presented lower down on the page. Looking at the code for the cross-browser event listener you will notice that there is a fourth parameter which we called  uC, the use of which isnt obvious from the prior description. Browsers have two different orders in which they can process events when the event is triggered. They can work from the outside inwards from the body tag in towards the tag that triggered the event or they can work from the inside out starting at the most specific tag. These two are called  capture  and  bubble  respectively and most browsers allow you to choose which order multiple processing should be run in by setting this extra parameter. uC true to process during the capture phaseuC false to process during the bubble phase. So where there are several other tags wrapped around the one that the event was triggered on the capture phase runs first starting with the outermost tag and moving in toward the one that triggered the event and then once the tag the event was attached to has been processed the bubble phase reverses the process and goes back out again. Internet Explorer and traditional event handlers always process the bubble phase and never the capture phase and so always start with the most specific tag and work outwards. So with event handlers: div onclickalert(a)div onclickalert(b)xx/div/div clicking on the  xx  would bubble out triggering the alert(b) first and the alert(a) second. If those alerts were attached using event listeners with uC true then all modern browsers except Internet Explorer would process the alert(a) first and then the alert(b).

Friday, February 28, 2020

Stock Analysis Research Paper Example | Topics and Well Written Essays - 1250 words - 1

Stock Analysis - Research Paper Example The earnings per share (EPS) of the company are 5.08 and the company’s internal growth rate is expected to be 14.994%. The company’s sales and revenues are expected to grow at 5.00% and 7.80% respectively. Target is the second largest retailer in United States following Walmart. For the year ending 2012, the company has reported a net profit of US$ 2.93 billion from total sales of US$ 69.865 billion. The company’s operating profit for the year ending 2012 was over US$ 4.56 billion. The total assets and equity of the company as on Jan 2013 are US$ 46.63 billion and US$ 15.82 billion respectively. The company’s stocks are currently trading at $69.59 as on June 13, 2013. For the previous fiscal, the company paid dividends at rate 0.36. The EPS of the company are 4.26 which is less than that of Walmart. The company’s sales and revenues are expected to grow at 4.90% and 2.40% respectively. Kroger is the second largest retailer of United States in terms o f revenues. For the year ending 2012, the company has reported a net profit of US$ 602 million from total sales of US$ 90.35 billion. The company’s operating profit for the year ending 2012 was over US$ 1.27 billion. The total assets and equity of the company as on Jan 2013 are US$ 23.47 billion and US$ 3.98 billion respectively. The company’s stocks are currently trading at $ 35.06 as on June 13, 2013. ... Liquidity Ratios          Current Ratio 0.89 0.88 0.83 Quick Ratio 0.21 0.2 0.2 B. Efficiency Ratios          Days Sales Outstanding 3.99 4.5 4.94 Days Inventory 40.22 41.95 43.76 Payables Period 37.05 38.21 38.67 Cash Conversion Cycle 7.16 8.24 10.03 Receivables Turnover 91.38 81.07 73.85 Inventory Turnover 9.08 8.7 8.34 Fixed Assets Turnover 4.01 4.06 4.1 C. Profitability Ratios          Tax Rate % 32.2 32.56 31.01 Net Margin % 3.89 3.51 3.62 Asset Turnover (Average) 2.4 2.39 2.37 Return on Assets % 9.33 8.39 8.57 Financial Leverage (Average) 2.64 2.71 2.66 Return on Equity % 23.53 22.45 23.02 Return on Invested Capital % 12.92 11.63 12.1 TARGET RATIOS 2011 2012 2013 A. Liquidity Ratios          Current Ratio 1.71 1.15 1.17 Quick Ratio 0.78 0.47 0.06 B. Efficiency Ratios          Days Sales Outstanding 35.53 31.56 14.76 Days Inventory 57.88 58.61 56.58 Payables Period 51.46 50.94 49.75 Cash Conversion Cycle 41.95 39.23 21.58 Receivables Turnover 10.27 11.57 24.73 Inventory Turnover 6.31 6.23 6.45 Fixed Assets Turnover 2.65 2.56 2.45 C. Profitability Ratios          Tax Rate % 35.04 34.27 34.93 Net Margin % 4.33 4.19 4.09 Asset Turnover (Average) 1.53 1.55 1.55 Return on Assets % 6.62 6.48 6.33 Financial Leverage (Average) 2.82 2.95 2.91 Return on Equity % 18.94 18.71 18.52 Return on Invested Capital % 7.66 7.42 7.53 KROGER RATIOS 2011 2012 2013 A. Liquidity Ratios          Current Ratio 0.94 0.8 0.72 Quick Ratio 0.21 0.21 0.2 B. Efficiency Ratios          Days Sales Outstanding 3.89 3.62 3.77 Days Inventory 28.17 25.73 24.36 Payables Period 23.17 21.84 21.02 Cash Conversion Cycle 8.89 7.51 7.11 Receivables Turnover 93.72 100.75 96.75 Inventory Turnover 12.96 14.19 14.98 Fixed Assets Turnover 5.85 6.32 6.6 C. Profitability Ratios   

Wednesday, February 12, 2020

Assess the hierarchical structure of the court system in England and Essay

Assess the hierarchical structure of the court system in England and Wales. To what extent does the common law doctrine of bindi - Essay Example The court system is a hierarchical structure that begins from the bottom at the County Courts and Magistrate Courts, the High Court and Crown Court, the Court of Appeal, and the highest court which is the Supreme Court (Jones, 2011). The hierarchical structure serves two fundamental purposes. First, it enables the formation of a lineage of consistent and uniform decisions through the binding system of judicial precedent, which requires judges at lower courts to consider and follow decisions of judges at higher courts in making their judgements. Second, it enables defendants to appeal against decisions made at lower courts by forwarding their appeals to higher courts. This paper discusses the hierarchical structure of the court system in England and Wales, and the extent to which it engages with the common law doctrine of binding precedents. The Structure of the Court System in England and Wales The court system in England and Wales is hierarchical in structure (Jones, 2011). This â⠂¬Å"means that certain courts are superior to other courts† (Jones, 2011, p. 17). The lowest courts, which are the County and Magistrate Courts, try civil and criminal cases that are not too serious respectively. At the second rank are the Crown Court and the High Court. The Crown Court tries criminal cases, while the High Court tries civil cases with a limited scope over criminal cases. This rank is followed by the Court of Appeal. This court hears appeals from both civil and criminal cases that have been tried at lower levels be it at Magistrate or County Courts, Crown Court or the High Court. At the highest tier of the system is the Supreme Court. This court is the ultimate appellate court and hears appeals for both civil and criminal cases (Jones, 2011). In this structure, Magistrate and County Courts are regarded as inferior courts, while the rest of the courts are regarded as superior courts (Jones, 2011). The courts in the hierarchy follow the doctrine of binding preced ent, and this can be seen from the way cases are handled between lower and higher courts. The following diagram shows the structure of the English court system: Cited in Jones, 2011, p. 17 Magistrate Courts Magistrate Courts are located at the bottom of the hierarchy. Within England and Wales, there are about 1500 Magistrate Courts (Jones, 2011). They are a crucial component of the criminal justice system, as they deal with cases that are criminal in nature. Magistrate Courts have three lay magistrates who hear the cases brought before the court and rely on the counsel of a Clerk, who is legally qualified in providing advice on the law, to make decisions regarding procedure and sentencing (Jones, 2011). The jurisdiction of a Magistrate Court in a criminal trial depends on the nature of the offence, often its seriousness. This is the yardstick used to determine whether a case should be heard at the Magistrate Court or Crown Court. When a case before the magistrate court is too seriou s, or when the sentence that the magistrates need to impose needs to be sufficiently severe, the case is forwarded to the Crown Court. County Courts County Courts also lie at the bottom of the hierarchy. There are approximately 220 County Courts in England and Wales, which deal with cases involving civil disputes (Jones, 2011). The bench of a County Court comprises of a Circuit Judge who hears more

Friday, January 31, 2020

Consider the application of a business model to mental health services Dissertation

Consider the application of a business model to mental health services - Dissertation Example Simply ask What, Where, How, and Why in a business model. Holistic views wellness of the entire body without the intervention of drugs and costly high tech treatments first. It focuses on the self-healing processes, one’s entire body, mind, emotions, and spiritual life. Holistic also incorporates new and old methods of healing to naturally benefit the body. It also addresses a person’s symptoms, but the person as a whole; what is the current situation in the patient’s life, and how it can be managed effectively. Holistic also offers an active role to the patient in his own healing process through mind, body and spirit. Focusing on a natural diet, herbal support when necessary, and exercises that benefit the entire body and mind. Basically, being in tune with your own body, listening to what it is trying to convey to you. Is there pain? If so, there is a need to change the regimen of healing and focus on what will alleviate that pain with a natural whole body eval uation. Focusing on the part of the body that needs repair and maintenance, and giving that area specific attention in relief of the symptoms but with natural remedies. Addressing the question: Is a business model incompatible with the holistic model? One must first answer these questions. What, Where, How, and Why? If you can answer these four questions in regard to mental health services, then you have your answer. Let’s address them. What? What are you offering? Applied to Mental Health, what are you offering your market? You are offering a full package, how to manage symptoms, pain, and illness in a natural holistic way that creates a better life and longevity to your patient. You are offering this without drugs or costly highly technical innovations that can be detrimental to the bodies natural healing processes and symptom detection. Since you are dealing with the entire body processes, you are also offering a reading on the body symptoms. You are offering a solution ta ilored to specific individual needs, and suggested therapies to correct the problem. You are offering a continued maintenance of these therapies, lifestyle assessment, and natural therapies using medicine as a co-agent alternative. You are also offering an alternative to drugs that give low risk and conservative options. You are also offering a solution and end result of restoration, regeneration and transformation. You are emphasizing natural healing through listening to the bodies’ senses. What is the process you offer? Where? Where will your market be? Will you be targeting local individual markets? If so, will you be using referrals? Will you be advertising? Will you be using the Internet? And will social media be another outlet for your market? Where do you want to position yourself in the current market after you decide what you are offering? Where should you position yourself according to the market you want to target? Do you want to position yourself in a clinical atm osphere within a hospital? Do you want to position yourself in a private practice? Or, you may want to position yourself with a group medical practice? Where will you be performing your services? This question applies to where you will position yourself within the market you intend to enter. Do you want to target only one

Thursday, January 23, 2020

Difficulties in Formulating Macroeconomic Policy :: Economics Policy Making Essays

Difficulties in Formulating Macroeconomic Policy Policy makers try to influence the behaviour of broad economic aggregates in order to improve the performance of the economy. The main macroeconomic objectives of policy are: a high and relatively stable level of employment; a stable general price level; a growing level of real income (economic growth); balance of payments equilibrium, and certain distributional aims. This essay will go through what these difficulties are and examine how these difficulties affect the policy maker when they attempt to formulate macroeconomic policy. It is difficult to provide a single decisive factor for policy evaluation as a change in political and/or economic circumstances may result in declared objectives being changed or reversed. Economists can give advice on the feasibility and desirability of policies designed to attain the ultimate targets, however, the ultimate responsibility lies with the policy maker. Policy makers are continually trying to formulate policies that will help the economy achieve these objectives. However, there are numerous difficulties which policy makers are faced with. In a democratic society like the UK, the macroeconomic objectives are not under the sole control of the Government. For example, the level of employment depends on the decisions not only of the government (e.g. for employment in the public sector) but also of private firms as to how many workers they wish to employ. Also, membership to international organisations (i.e. WTO or EU etc.) means that the international regulations and directives must be adhered to and cannot be altered. Therefore, the freedom of action of the policy maker is restricted, as the new policy must function along side existing international policies. Most policies are designed against the background of a theoretical model. However, there is no ‘true’ model and so different policy makers and economists may have different views to certain economic variables. Therefore, each policy maker will formulate different policies based on their views in order to achieve the same objective. For example, Keynesians view that consumption expenditure depends upon current disposable income. Whereas Milton Friedman argued that consumption is related to permanent rather than current income. He was therefore more sceptical about he usefulness of a tax change for stabilisation purposes than one who believes that consumption depends on current disposable income. Policy makers usually use Fiscal policy to alter the level, timing or composition of government expenditure and/or the level, timing or structure of tax payments. And they use Monetary policy to alter the supply of money and/or credit and also to alter interest rates. But some policies are not always successful; a good example was the decision to use monetary policy to solve the liquidity trap. This policy aimed to reduce interest rates and stimulate investment

Wednesday, January 15, 2020

Canadian same sex marriage Litigation Individual Rights Community Strategy Essay

This essay summarises and analysis a literature material in the form of an article namely â€Å"Canadian Same-Sex Marriage Litigation: Individual Rights, Community strategy written by Christine Davies.’ The author Christine Davies is a Student of Law at Sack Goldblatt Mitchell LLP in Toronto. With the assistance and guidance of Professor Lorraine of the University of Toronto in the Faculty of Law, Douglas Elliott and Cynthia Petersen, Christine is able to come up with the article and published it in 2008. This essay addresses the issue of marriage, the legal status and definition of marriage. It goes further clearly to outline the historical overview of the same-sex marriage litigation in Canada also bringing to light further future expected developments on the same (Davies, 2008. P. 32). The relationship or correlation between the law and the social change is quite close, a constitution can be well described as ‘mirror’ reflecting the nation socially and therefo re it needs to protect and recognize the values of the society at large. The constitution is also as a living tree and thus it must grow or evolve in a manner consistent with the evolving social attitudes and policies. The author of the article ‘Canadian same-sex marriage litigation’ seeks to explore the relationship that exists between the law and social change as it is evidenced in the changing judicial, political and also social approaches to the exciting issue of the same-sex marriage in Canada. The article surveys in details the litigation history of same-sex marriage in the common law within the jurisdictions of Canada. Cases involving the same were pursued over a span of thirty years before litigants finally succeeded in the year 2003 (Davies, 2008: P.2). These cases were well chosen, well strategized, coordinated and applied. The most recent cases just before the litigants won involved use of a multi-pronged approach to them utilizing both the common law and the Charter arguments and thus increasing chances of reaching the best possible results. Humanizing the issue and also contextualizing the legal phenomenon by mostly relying on the plaintiff`s feelings and words combined wi th the use of social science evidence put the litigants a notch higher in their struggle. The lessons brought to the surface by this article in terms of a flexible, Outcome-focused strategies and the much emphasis on unearthing the true nature of LGBT identities and nature will be very key in the future cases on LGBT rights litigation (Davies, 2008. P. 23). The institution of marriage both a social and a legal concept which has mostly been based upon traditionally religious views and opinions based on heterosexuality. With the current changes of certain social values and emergence of groups such as, the LGBT community, over time this concept has been actively debated and has been subject to much controversy and contention. The controversy and contention surrounding this subject originates from the conflict which is evident between long-established traditional or religious beliefs which in turn have helped to shape the country, against the now growing heterogeneous environment which does not conform to these views. The paper presents the deeply rooted tension and controversy regarding the institution of marriage versus the equality rights of the same sex couples or the gay and lesbian couples. This paper goes further to outline the key issues surrounding the recent social changes towards the same-sex marriages and its relationship with equality rights and the social role and function of the institution of marriage. The question of whether legal rules regarding marriage does, in a way, achieve the right balance between equality rights and the social role and function of this institution of marriage (Davies, 2008. P. 10). This contentious and controversial issue is worthy of examination since with time marriage has become a polarizing and complicated entity which in many key ways consequently affects the lives of many people in the country and world at large. The legislative framework and approach to same-sex marriage in Canada addresses the merits and demerits of legalizing same-sex marriage in Canada and also the issue of civil unions for same-sex couples. In addition, the article determines the best option for balancing equality rights while at the same time not compromising the social role and function of the institution of marriage. Several scholarly articles and both past and current jurisprudence, existing legislation, and a few other secondary materials such as, surveys and public opinion polls are used in the analysis of this article. In accordance with the Constitution Act of 1867, the federal government of Canada has exclusive control over â€Å"marriage and divorce,† while the provinces or provincial governments have control over the â€Å"solemnization of marriage† implying that the power to enact laws concerning marriage is within their jurisdiction. Despite the fact, this responsibility concerning marriage was quite clear there was still no proper or distinct legislative document or law that properly defined marriage. The only one piece of legislation that came close to defining it came from an interpretation of a particular clause found in the referred to as Modernization of Benefits and Obligations Act which states that â€Å"For greater certainty, the amendments done by this Act do not affect the interpretation and meaning of the word marriage which is, the lawful union between one man and only one woman to the exclusion of all others.† It was clearly held that â€Å"Marriage is clearly understood throughout time and different cultures as an institution well designed to meet the unique and specific needs, capacities or abilities and circumstances of opposite sex couples and their children and thus regarded as an institution that brings together or unites the two complementary sexes thus providing a supportive and proper environment for the procreation and rearing of successive and future generations† (Davies, 2008. P. 14). The above state of affairs in regard to marriage meant that gay couples seeking to be legally united were propelled to take their claims to the courts of law. Christine Davies article clearly brings out the issue of the legalization of same-sex marriage, first by giving out a well laid out surveyed out litigation of same-sex marriages within the common law jurisdictions of Canada. It has in an exemplary manner assessed the developments and the shifts in the litigation strategies from the trial-level strategies, which were quite multi-prolonged and both utilized common law and Charter arguments narrowing much thinner to emphasis on the violations of Charter rights (Davies, 2008. P. 2). The article clearly outlines to us how the claims or strategies are selected and applied in order to achieve the maximum best possible results. This article is different from the one adopted and advanced by Nicholas Balla in his article, â€Å"Controversy over couples in Canada, the evolution of marriage and together with other adult interdependent relationships in that Balla surveys the evolution of the current debate concerning four types of intimate adult relationships that fall outside the known traditional definition of marriage that is common-law marriage, polygamy, same-sex partnerships, and non-conjugal interdependent relationships while Christine concentrates on the developments in the litigation process (Balla, 2014. Para. 2). The above mentioned articles together with â€Å"Losing the Feminist Voice article by Claire Young and Susan Boyd. All the three articles provide a good platform for proper studying and understanding the relationship between law of any country and the social change with the Christine David`s article amplifying this the more as shown below.The first leading claim or case regarding same-sex m arriage was: North v Matheson also referred to as First Wave                      In this case or claim, it was expected that the courts could rely on the judgments arising from Hyde v. Hyde & Woodmansee that happened in 1866 to arrive at the conclusion that, for the known Christian religious reasons, any union between two gay men is obviously unlawful and that marriage is an exclusive legal union between one man and one woman (Davies, 2008. P. 9). Corbett v Corbett also referred to as second wave                      The second leading claim which, in a way, added on to the common law was in regard to the definition of marriage as was with clarity established in North v Matheson. The case of Corbett was a case that brought a challenged in regard to the issues around the marriage of a transgender individual (Davies, 2008. P. 11). In this case, the judge had a conclusion that when it comes to defining marriage the issue of building a family is a very essential component and, therefore, natural heterosexual intercourse is of importance and a key requirement in regard to the institution of marriage. Layland v Ontario also referred to as the third wave                      The third case regarding same-sex marriage was that of Layland v Ontario and the argument was against the common law definition of marriage. The argument or claim was successfully acknowledged accepted by at least one judge out of three which was a very timely achievement for those in support of same-sex marriage (Davies, 2008. P. 2). In Layland v Ontario case although the majority judgment still alluded to and supported the decisions made in North and Corbett, the dissenting opinion had a conclusion that the current jurisprudence regarding same-sex marriage is outdated or rather not fashionable in regard to the changing social values, and, therefore, as judges of the common law it is their prime duty to expand the definition of marriage so that it can meet the society`s changing and expanding needs or so as to reflect and mirror the values of the society and what is taking place by that time in the society. In addition to the case above there was also a dissenting assertion as a direct resultant of the enactment of the Charter of Human Rights and freedoms. This made a change thus to be a necessity so as to conform to the Charters of Rights and Freedoms demands and requirements and that pursuant to s.15 of the Charter. The common law`s definition of marriage was, therefore, insufficient, unreasonably and unequal or discriminatory in its treatment towards gay and lesbian couples. Halpern v Canada also known as the fourth wave                      The fourth case was known as Halpern v Canada which brought about the current approach towards same-sex marriage in Canada and thus bringing to a halt the debate to whether gay and lesbian couples were allowed to unite legally or to marry. The verdict or decision from this fourth case concluded that the current common law in the place definition of marriage was to a great extent unconstitutional given the fact that it violated an individual’s inalienable fundamental right to equal treatment without discrimination. As a result of this realization or decision, the federal government thus proposed a bill to that effect to the Supreme Court of Canada. The bill, Bill C- 38, became the center of the debate and thorough discussion for the case referencing to or in regard to Same-Sex Marriage (Davies, 2008. P. 15). The verdict or ruling in that decision led or prompted the federal government to come up with a new piece of legislation referred to as t he Civil Marriage Act. This Act is the current legislative authority governing the institution of marriage in Canada. This act broadens or expands the definition of marriage to also include gay and lesbian couples by stating that â€Å"Marriage, for civil reasons, is the lawful union of only two persons to the or thus exclusion of all others.† This removed the part that the union had to be between one man and one woman to the exclusion of all others. Given the fact that the enactment of the Civil Marriage Act, and the social developments and changes which fostered the considerations of the advantages, as well as the demerits in which this act brought about or created is worth highlighting and noting. As was elaborated by the Law Commission of Canada, who support same sex marriage, it felt that an individual right to marry is a fundamental inalienable personal choice in which each Canadian citizen should enjoy and thus denying them their rightful access to be allowed to marry was an outright rejection in recognizing their personhood as human beings and of their personal aspirations. This argument that was greatly advanced by same-sex marriage supporters clearly demonstrated a direct form of human rights and freedoms violation through unequal treatment, which in turn points or allude towards possible consequences in which this outright denial of key rights could lead (Davies, 2008. P. 26). A good example of such a consequence in re gard to continue this unequal treatment is that it could promote or lead to a very strong justifiable critiques towards the very obvious legitimacy of our most sacred law in the Constitution namely the Charter of Rights and Freedoms document, To be more specific the section regarding our very fundamental right to equality. Further in support of those supporting same-sex marriages came the article. Losing the feminist Voice, debates and deliberates on the legal recognition or realization of same sex Partnerships in Canada that argued in support of the same that denying homosexuals and lesbians the right to marry would in turn add more weight and greatly reinforce the ongoing justification behind the existing disadvantages towards the minority groups, and thus create further future justification in the denial of other fundamental rights for these same minority groups. The article goes further on to note that broadening or extending the definition of marriage to solve the contentious issues and do away with the underlying controversy to allow same-sex couples to marry will, in fact, strengthen the institution of marriage and family by bringing down the burden of the state. The most prevalent arguments of all in relation to the demerits of same-sex marriage mostly focused on to a large extent, the perceived presumptions and misconceptions towards the gay and lesbian lifestyles, as well as the resultant effects in which the same will have both directly and indirectly on marriage. The opponents of same-sex marriage further focused on the importance of clearly maintaining the nature of marriage, as well as combating the future risks in which changing the definition of marriage was likely to bring on board. An opponent of same-sex marriage namely Gwen Landolt, strongly believed and held a very strong comment for the gay and lesbian lifestyle, stating with clarity that infidelity, separation and divorce are more prevalent in same-sex unions given that â€Å"their skill compatibilities are different†, and thus they cannot complement one another. Drug use is thus a very serious and recurring matter for such as these individuals. The above comments allude through suggestion that that allowing homosexual couples to unite legally and marry could pose as a threat and an insult on the sacred institution of marriage. In addition to the above claims, Landolt also insisted that marriage should not just be treated as mere social construct and that it will be detrimental to simply change in an endeavor to respond to the changing society needs and values. She held firmly to the assertion that a marriage is a concept which has remained consistent through and through thousands of years, through many different cultures and hence its value in society at large is deeply rooted. These arguments regarding the future implication in which changing the definition of marriage could foster and bring on board, the opposition or those opposing same-sex marriages argued that the inalienable fundamental equality right, in which the gay and lesbian groups have relied upon to in furtherance of their claim, has been interpreted so broadly or beyond the necessary extent according to s.15 of the Charter and could by implication create a very slippery slope for the sacred institution of marriage. This will in turn lead to a polygamous and probably to incestuous relationships being made legal in the country (Russell, 2008. 38). Conclusion                      As a wrap up this essay has clearly analysed the article ‘Canadian same-sex marriage litigation’ highlighting the key points in the article such as the social developments in regard to same-sex marriages, how the issue of same-sex marriages relate with the equality of human rights and freedoms while at the same time being keen not to affect the social role of the marriage institution negatively. The same-sex marriage litigation needs to be assessed in terms of their impact and sustenance of the LGBT rights in regard to equality ensuring that they are not discriminated (Balla, 2014. Para. 4). This litigation from the analysis of the article can be termed as quite successful although this does not imply that legal cases involving LGBT in days to come will necessarily be successful. It is therefore true that the constitution or the law is like a living tree that grows in accordance to changes in the society and should reflect the social values, practices and attitudes of the society. These kinds of alternative forms of relationship have been recognized by the laws of different countries in the world success in the cases in the Canada litigation can to an extent be attributed to this trend although other countries still continue to strictly oppose them. References Controversy Over Couples in Canada: The Evolution of Marriage and Other Adult Interdependent Relationships. (n.d.). by Nicholas Bala. Retrieved June 13, 2014, from http://papers.ssrn.com/sol3/papers.cfm?abstract_id=481003 Davies, C. (2008). Canadian Same-Sex Marriage Litigation: Individual Rights, Community Strategy. Canada: Crc Press. Russell, P. H. (2008). The Court and the Constitution: leading cases. Toronto: Emond Montgomery Publications. Source document

Tuesday, January 7, 2020

The Wealth Of Nations By Adam Smith - 1521 Words

In Adam Smith’s famous work, The Wealth of Nations, he references the idea of the â€Å"invisible hand† and its influence on the individual. An excerpt from Smith’s renown book reads, â€Å"[E]very individual necessarily labours to render the annual revenue of society as great as he can. He generally, indeed, neither intends to promote the public interest, nor knows how much he is promoting it . . . he intends only his own gain, and he is in this, as in many other cases, led by an invisible hand to promote an end which was no part of his intention† (Harrison, 2011). A simple interpretation of Smith’s â€Å"invisible hand† concept is that the buying influence of the general consumer is unrecognized by the consumer them self. The consumer’s buying power not only controls were the money in the community is spent, but can also influence what is bought and sold. Lack of recognition of these two basic buying powers creates a market that is u ninhibited by consumer ideals and morals. Lately, the reach of market values has started encompass aspects of life that it once did not. Michael Sandel wrote in his essay, Markets and Morals, â€Å"The more money can buy, the more affluence matters† (Morals and Markets 43 ¬).The â€Å"invisible hand† of the market has always gripped the throats of the poor and now with an expansion of market values the grip is becoming tighter. In the essay â€Å"Markets and Morals†, Michael Sandel calls for attention to be directed at the spread of markets into other spheres of lifeShow MoreRelatedThe Wealth Of Nations By Adam Smith1659 Words   |  7 PagesAdam Smith, the author of â€Å"The Wealth of Nations†, was a Scottish moral philosopher during the Industrial Revolution who was inspired by his surroundings to write about the field of economics. Being a man of intellect on various types of philosophical views, Smith was able to portray his passionate feelings ab out political thought through his well-written works. While publishing his book, Smith became known as the â€Å"father of modern economics†. He was given this honorary title due to his strong determinationRead MoreWealth Of Nations By Adam Smith1574 Words   |  7 PagesIn his book, Wealth of Nations, Adam Smith makes arguments to support free-trade. These arguments range from having to do with war, all the way to the structure of social classes. In order to assess the morality of these arguments, David Hume’s definition of morality and Kant’s definition of morality can be used. These definitions, ultimately, serve as context for Smith’s arguments, so that there is a clearer idea of whether they are moral or not. From this, modern readers of Smith’s book can betterRead MoreThe Wealth Of Nations By Adam Smith Essay1772 Words   |  8 Pages In the Wealth of Nations, Adam Smith talks about international trade and subsequent government policies which became increasingly significant throughout modern history. Protectionism is the term for economic policies of restraining trade between countries when they want to protect their domestic industries from foreign competition. Trades nowadays have different forms and methods and involve more businessmen as well as consumers, which is why trade diplomats are looking to regional agreements. TheRead MoreThe Wealth Of Nations By Adam Smith1774 Words   |  8 PagesAdam Smith’s masterpiece writing, The Wealth of Nations, attempts to create a different understanding of the economy from his age. The focus mainly remains on mercantilism the most prevalent economic system for Western Society at this time. Smith’s simple and in-depth explanations of even the most basic economic concepts allow for someone with little to no prior knowledge of economics to easily grasp his mea ning, and coupling these explanations with real life examples provides even more teachingRead MoreThe Wealth Of Nations By Adam Smith1384 Words   |  6 PagesSome books, such as the Bible, have influenced Christians. Common Sense by Thomas Paine encouraged Americans to join the fight against the British. Other books, however, do more than simply encourage; they introduce a new philosophy. The Wealth of Nations by Adam Smith is claimed to aid the philosophy of what would one day become modern economics. One author wrote two books that would change the course of history. These books would lay foundations to communism and influence leaders like Lenin and Tse-TungRead MoreWealth Of Nations By Adam Smith Summary818 Words   |  4 Pagespolitical economist even though he began studying economics after reading â€Å"The Wealth of Nations† by Adam Smith. Ricardo is most known for his theory of rent and his theory of comparative advantage. Some of his ideas are still relevant today including his comparative advantage theory. Finally, Ricardo was the first political economist to focus on distribution rather than production. 3. After beginning this paper with Adam Smith, it seemed fitting to end it will him as well, since he is one of the mostRead MoreAdam Smith s The Wealth Of Nations916 Words   |  4 PagesAdam Smith’s ‘The Wealth of Nations’ in 1776 is usually considered to mark the beginning of classical economics (Smith, 1776). He was the first to articulate that international trade was not a zero-sum game and it was counterproductive to have a single-minded reliance on exports. He proposed the theory that a country should specialize in manufacturing goods that it can make with the fewest resources, therefore giving it an advantage in the production of that good. This allows for global out to beRead MoreAdam Smith s The Wealth Of Nations Essay1194 Words   |  5 PagesAdam Smith’s The Wealth of Nations (Hofstadter, v. 2 pp. 43-46) and Tom Paine’s Common Sense (Hofstadter, v. 2 pp. 53-62) were both published in 1776. However, that is not there only similarities. They both talk about the mother country’s ability to rule its colonies. They also talk about what they believe should and could lead to the political separation of the mother country and its colonies. Adam Smith’s The Wealth of Nations looked to the fact that it is impractical to control the benefits ofRead MoreAdam Smith s Wealth Of Nations1057 Words   |  5 PagesThuy Hua PHIL 225 First Exegetical/Critical Paper Professor Michael Schleeter October 5, 2015 Adam Smith’s Wealth of Nations For Smith, the value of all commodities that the market is supposed to promote is not come from the money price, but come from the amount of labor required to purchase them because nobody wants to purchase a good that is created with less effort. Therefore, the real value that the market needs to promote is the labor that is invested in the product. For example, in real lifeRead MoreSummary Of The Wealth Of Nations By Adam Smith805 Words   |  4 Pagesthe passage given, Adam Smith examines the different methods that can increase the production of land and labour. He discusses that production can be raised by using the methods of, division of labour and capital accumulation. Smith also provides evidence throughout The Wealth of Nations, proving that his method of labour division is the best way to develop the economy. The key behind Smith’s writing is to prove how division of labour will improve economic progress. Initially, Smith proposes the idea