Sunday, December 29, 2019

Understanding Usage of Generic Types in Delphi

Generics, a powerful addition to Delphi, were introduced in Delphi 2009 as a new language feature. Generics or generic types (also know as parametrized types), allow you to define classes that dont specifically define the type of certain data members. As an example, instead of using the TObjectList type to have a list of any object types, from Delphi 2009, the Generics. Collections unit defines a more strongly typed TObjectList. Heres a list of articles explaining generic types in Delphi with usage examples: What and Why and How on Generics in Delphi Generics with Delphi 2009 Win32 Generics are sometimes called generic parameters, a name which allows to introduce them somewhat better. Unlike a function parameter (argument), which has a value, a generic parameter is a type. And it parameterizes a class, an interface, a record, or, less frequently, a method ... With, as a bonus, anonymous routines and routine references Delphi Generics Tutorial Delphi tList, tStringList, tObjectlist or tCollection can be used to build specialized containers, but require typecasting. With Generics, casting is avoided and the compiler can spot type errors sooner. Using Generics in Delphi Once you’ve written a class using generic type parameters (generics), you can use that class with any type and the type you choose to use with any given use of that class replaces the generic types you used when you created the class. Generic Interfaces in Delphi Most of the examples I’ve seen of Generics in Delphi use classes containing a generic type. However, while working on a personal project, I decided I wanted an Interface containing a generic type. Simple Generics Type Example Heres how to define a simple generic class: typeTGenericContainerT classValue : T;end; With the following definition, heres how to use an integer and string generic container: vargenericInt : TGenericContainerinteger;genericStr : TGenericContainerstring;begingenericInt : TGenericContainerinteger.Create;genericInt.Value : 2009; //only integersgenericInt.Free;genericStr : TGenericContainerstring.Create;genericStr.Value : Delphi Generics; //only stringsgenericStr.Free;end; The above example only scratches the surface of using Generics in Delphi (does not explain anything though - but above articles have it all you want to know!). For me, generics were the reason to move from Delphi 7 / 2007 to Delphi 2009 (and newer).

Saturday, December 21, 2019

Preserving Memory The Struggle For Creating America s...

Preserving Memory: The Struggle to Create America’s Holocaust Museum was written by Edward T. Linenthal. This book was published by the Columbia University Press in New York. The book was copyrighted in 1995 and then once again in 2001. This book also has 336 pages. Preserving Memory: The Struggle to Create America’s Holocaust Museum gives the reader an extensive overview in the development of the Holocaust Memorial Museum that is located in Washington D.C. In this edition of the book, Linenthal writes a preface. In his opening preface, Linenthal discusses the importance of teaching the Holocaust. He writes about how over time, those in power saw it necessary for there to be a national memorial. Linenthal mentions how some thought that a memorial dedicated just to the Holocaust would cause people to ignore the rich history of Judaism as an entire civilization. Another argument was that funds that could be aiding Jews that are still suffering from anti-Semitism in foreign lands or to help those that were Jewish and struggled to remain Jewish in a secular culture. It was also thought that possibly remembering the Holocaust too well would muddle the relationship between Jews’ and non-Jews. The biggest argument was that the Holocaust w as a unique event. Some countered that the argument was only used to claim superiority and have supreme victim status. Another argument was that the Holocaust would be used incorrectly as a filter for modern-day political issues. One JewishShow MoreRelatedOne Significant Change That Has Occurred in the World Between 1900 and 2005. Explain the Impact This Change Has Made on Our Lives and Why It Is an Important Change.163893 Words   |  656 PagesStephen Brier, and Roy Rosenzweig Also in this series: Paula Hamilton and Linda Shopes, eds., Oral History and Public Memories Tiffany Ruby Patterson, Zora Neale Hurston and a History of Southern Life Lisa M. Fine, The Story of Reo Joe: Work, Kin, and Community in Autotown, U.S.A. Van Gosse and Richard Moser, eds., The World the Sixties Made: Politics and Culture in Recent America Joanne Meyerowitz, ed., History and September 11th John McMillian and Paul Buhle, eds., The New Left Revisited DavidRead MoreGp Essay Mainpoints24643 Words   |  99 Pages15. Others a. Cooperation b. Education c. Crime d. Liberty or Security e. Consumerism 1. Media 1a. New vs. Traditional GENERAL Intro: †¢ The first quarter of 2043 will be when the last newspapers land on front process all over America. This is the prediction the author of ‘The Vanishing Newspaper’ †¦ †¢ Advent of tech has brought a radical change in the media industry †¢ No longer confined to reading news, watching television †¢ Click of mouse, people can access instantaneousRead MoreOrganisational Theory230255 Words   |  922 Pagesmanaging, organizing and reflecting on both formal and informal structures, and in this respect you will find this book timely, interesting and valuable. Peter Holdt Christensen, Associate Professor, Copenhagen Business School, Denmark McAuley et al.’s book is thought-provoking, witty and highly relevant for understanding contemporary organizational dilemmas. The book engages in an imaginative way with a wealth of organizational concepts and theories as well as provides insightful examples from the

Friday, December 13, 2019

Different Parenting Styles Free Essays

There are many different ways of parenting children. Some are more favorable than others and some can even damage one’s emotional future, causing problems such as anxiety, unhappiness, and other low self-esteem issues. Although there are four distinct parenting styles, many parents are often somewhere in between a couple on the scale. We will write a custom essay sample on Different Parenting Styles or any similar topic only for you Order Now My parents often took to the authoritative style, which is known currently as the most successful approach. The authoritative parent is involved in their child’s life and is accepting as well as sensitive to their needs. Sometimes, I could see my parents as being authoritarian, which is common because many parents find a kind of medium between these two styles. Unlike authoritative, the authoritarian parenting style is highly ineffective. However, there is a contrast of the severity of the authoritarian style. Authoritarian parents are portrayed as criticizing and bitter, often yelling, threatening, and habitually resorting to punishment instead of the warm guiding ways of the authoritative parent. The authoritarian side of my upbringing was often used by my father.Although spanking is commonly frowned upon, my dad used spanking as a way to show me right from wrong, and I believe that he used the punishment in the best way it could possibly be used. I was spanked when I brought bad grades home from school, when I showed bad behavior, and especially when I lied. This punishment was used, I think, in a way of encouragement to better myself. On the other hand, my mother was the one who used the authoritative style. She began using the technique when I got older and more mature, I believe, because I could understand another’s point of view.When I did something wrong against another person, my mom would sit me down and tell me why I was wrong and how the situation appeared to the other person. The effects of different parenting styles vary from family to family, but they are often very similar. As a child, I showed a lot of the characteristics of a child of authoritarian parents, such as low self-esteem, shyness, and anger. However, as I matured, I began showing more characteristics of a child of authoritative parents. I became more social, got a higher self-esteem, and realized that my problem solving skills have increased. My best friend growing up was Allison. Her parents were a constant conversation topic for us, as they were not the best parents in the world. I guess you would call them extreme authoritarians. They utilized extreme control, insisted on absolute obedience, and constantly criticized her. Eventually, this threw her into an all-time low self-esteem, which is something that commonly occurs to children of authoritarian parents.Furthermore, she had become anxious and withdrawn. Because authoritarian parents often take on a type of psychological control, which includes behaviors that intrude on and manipulate children’s verbal expression, individuality, and attachments to parents, Ally became defiant and angry as well. Her parents wanted to decide practically everything for her, and in the process, put down her ideas and decisions and made clear that they disapproved of her friends. Authoritarian parents often withdraw their love from their children.Ally’s parents were one of these parents. An example is how her parents had supported her decision to go to her dream college. Once she got the acceptance letter, they withdrew their blessing, along with the financial help they had promised her. She no longer has an opportunity to go to college. Another example, and major distress to her, Ally’s parents kicked her out of their house before she turned seventeen, and she has been bouncing from house to house ever since. Unlike me, because Ally’s parents were extremely authoritarian, Ally did not turn out as well.Don’t get me wrong, she was a nice, sociable girl growing up. But as she matured, she sought out love and attention in guys. I figure that because her father never gave her the proper love or attention, she turned to various guys to find the â€Å"love† and attention she craved. As far as my relationships go, I believe that my parents did a good job with the way they acted around me. What I mean is, seeing the way my parents treated each other as equals definitely influenced my outlook on relationships in a positive way. They are a huge influence on me but I don’t exactly â€Å"hear† their voices when I am doing something they would consider unfavorable. Once in a while when I am in those situations, I do feel a bit of remorse towards what I am doing. I figure that it is from the autonomy granting and problem solving qualities of authoritative parenting. Before taking this class, I had thought very little of how I would parent my future children. I did not even know that there were different styles of parenting.When I learned about the distinct styles of child rearing, I began to think of which style my parents had used. I also started considering what style I might use. I decided that I like the way my parents raised me, contrary to my prior beliefs. I like how they balanced their parenting between authoritative and authoritarian, leaning more to the authoritative side, of course. There are a few exceptions to their style, though, that I would like to change into my own parenting style. For instance, I would like to use even more of an authoritative style than an authoritarian one, than my parents had. How to cite Different Parenting Styles, Papers