text:
Q: What design patterns are the worst or most narrowly defined? For every programming project, managers with past programming experience try to shine when they recommend some design patterns for your project. I like design patterns when they make sense or if you need a scalable solution. I've used Proxies, Observers and Command patterns in a positive way for example, and do so every day. But I'm really hesitant to use say a Factory pattern if there's only one way to create an object, as a factory might make it all easier in the future, but complicates the code and is pure overhead.
So, my question is in respect to my future career and my answer to manager types throwing random pattern-names around:
Which design patterns did you use, that threw you back overall? Which are the worst design patterns, the ones that you should consider except in the one single situation where they make sense (read: which design patterns are very narrowly defined)? (It's like I was looking for the negative reviews of an overall good product of Amazon to see what bugged people most in using design patterns.) And I'm not talking about Anti-Patterns here, but about Patterns that are usually thought of as "good" patterns.
Edit: As some answered, the problem is most often that patterns are not "bad" but "used wrong". If you know patterns, that are often misused or even difficult to use, they would also fit as an answer.

A:
If you know patterns, that are often
  misused or even difficult to use, they
  would also fit as an answer.

Following the MVVM pattern for WPF too strictly, as indicated for example by this question. Some people try to follow the guideline that no code should be put in the code behind way too strictly and come up with all kinds of exotic hacks.
And ofcourse, MVVM is difficult as hell, and just not worth it for small short term projects.
Dr. WPF did an ironic post about it in his article M-V-poo.

A: Some of the patterns in the GOF book are C++ - specific, in the sense they are less applicable in languages with reflection, e.g. the Prototype pattern is less significant in Java.
I consider the Interpreter pattern as a 'narrow' one. You have to have a general problem which
is worth developing a general problem solver. It only works for special problems for which
you can invent a language, define a grammar and write an interpreter. The problem instances should be representable as a sentence in the grammar. I don't think you come across such situations often.

A: The one i regret most often (though not most vehemently):
When I should have just created a function but I implemented an OOP solution.

A: Factory. I've seen code implement it that only creates one type. That's completely useless code IMO. It doesn't help that many of the examples online are completely contrived. Pizza factory?
Perhaps the factory is easier to test because of dependency injection. But to add that code when you ain't gonna need it is pointless to me, and the test argument disappears when you can use mock frameworks like JMockit. The simpler you can make a program, the better. Factories only really make sense with larger numbers of types (by larger, I mean at least more than 2).

A: I don't believe in bad patterns, I do believe that patterns can be badly applied !

*

*IMHO the singleton is the most abused and most wrongly applied pattern. People seem to get a singleton disease and start seeing possibilities for singletons everywhere without considering alternatives.

*IMHO visitor pattern has the most narrow use and almost never will the added complexity be justified. A nice pdf can be gotten here. Really only when you have a data structure that you know is going to be traversed while doing different operations on the data structure without knowing all the ways in advance, give the visitor pattern a fighting chance. It is pretty though :)

For this answer I only considered the GOF patterns. I don't know all possible patterns well enough to take them into consideration also.

A: Singleton
I agree with the others about Singleton. Not that you should never use them, just that it should be limited to very few cases. They are used as lazy globals a lot of the time.
Thread-safety is one issue with singletons. Exception handling is another - if the singleton fails to create properly - you don't always know if you can catch the error safely, particularly if it was one of those objects created "before main". And then there is the issue of cleaning up afterwards.
I tend to prefer to use one singleton and have all the other "wannabe" singletons "subscribe" to your one. My most common singleton use is "shout event" handling: you just "broadcast to the world" that an event has taken place and anyone listening that will handle the event does so. That way you decouple the events actually happening with what is listening to them. (Logging, signals, etc.)
Visitor
The ugly thing I find about this, apart from the fact that developers can't think of meaningful names and just call methods visit(), is that it adds extensibility in one direction whilst removing it in another, i.e. it adds extra functionality but restricts the number of objects as your visitors need to know about all the object types it may visit.
It is possible, though messy, to allow the extension in both directions but this does not totally use the visitor pattern in its regular form. The most common application for this is printing objects: you have different ways to print objects and different objects that need to be printed. You should be able to extend this in both directions. (Printing means any kind of turning objects into a stream: storing in a file / writing to a console / GUI.. etc).
(Note: you should not confuse this with document-view architecture, which is a slightly different pattern).

A: I think the problem with some of the more complex patterns is that there are so many variations on them that they lose much of their value as a communication device.
The worst offender I can think of in this category is the MVC pattern. Even if we ignore MVP, there are so many variations in the roles of each of these items that you have to spend an hour in each new framework figuring out where the boundaries lie.

A: Apart from Singleton and Visitor already mentioned by the other answerers, I don't know of "notorious" design patterns. IMHO the biggest problems do not stem from a specific design pattern being "wrong", but rather from developers applying patterns too eagerly.
Almost everyone goes through the "pattern fever" phase when getting acquainted with patterns. Thinking that patterns are the best thing since sliced bread, initially one tries to apply them whenever (s)he sees a possibility. This results in the code getting buried under patterns, where the patterns themselves do not help anymore, just make the code harder to understand and maintain in the long run.
Eventually, most of us gets over this phase and starts to learn how to use the patterns to solve real problems, not for their own sake. Patterns have their price, which is added complexity, and applying any specific pattern is only justified when it pays back for the added complexity by helping to simplify some other part of the system, thus making the code/configuration overall easier to understand and maintain. If this is not the case, it is often better to stay away from patterns, sticking with the simplest solution which could possibly work.

A: I'm going to go out on a limb here and suggest over-use of inheritance. Definitely most applicable in languages without solid compile-time polymorphism support, like Java. Run-time inheritance is a tool, not some kind of one-feature-fits-all wonder.
Other people have already expressed similar to my personal hatred of Singletons, so I'm not going to expand on that here.

A: Singleton. It is on of the GOF patterns which is now more often called as anti-pattern. One of the reasons for that is that Singleton makes code more difficult to test.

A: There are no bad patterns only bad people.
I'd much rather inherit easily readable code that does something clear but is a little verbose or not(queue evil villian music) re-usable(gasp!) than some mish mash of InheritAbstractTemplateFaucetSink<Kitchen>.
Re-usable code is great! Chances are you are not writing code that will be re-used or re-writing similiar logic for another application would take you less time than some insane attempt to re-use some other application's code.
For further reading crack open some of the C code in the sane implementations of the posix headers or the clibs and play spot the pattern. This code was written by some of the smartest and most dedicated programmers in the world. Do you know how many Abstract Factory Patterns you're going to see? ... NONE!. Even better chances are if you understand the other parts of whats going on, you'll find the logic very easy to understand and trace.
My point is this most of the "patterns" were not created to make code better they were created to sell books and modelling software. If you are good at programming you will probably eschew most of these and write clear,concise, and cleverly designed code that solves your problem. When you have another problem you will write clear, concise, cleverly designed code to solve that problem. If your goal is to write less code than I would think your not cut out to be a programmer. I love writing code and want to write it as much as possible. When I re-write something I've already written I do it tens times as fast and get to get rid of all the things I wasn't happy with the first time I did. As a bonus I get to do it with none of the limitations of the first problem set because its a new problem(I probably have 15 scripts in 5 different languages that start tomcat floating about).
With that I will leave you with probably the best(relevant) quote in computer science.
"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult."

*

*Tony Hoare(inventor of the quicksort, father of modern OS design, creator of Hoare logic, and Turing award recipient)

A: I definitely agree that there is a time for most patterns, and that you can abuse many patterns. I know the one I've abused the most in the past is the Abstract Template pattern. Taken to it's full extent it is known as ASP.NET webforms.


text:
Q: Crystal Reports Calculate Summary I have 2 fields ITEMID and QTYSOLD, I need to get a total for each ITEMID from the QTYSOLD.
However when running this query it shows each and every ITEMID and QTY sold. For example
ITEMID QTYSOLD
QEE123             3

QEE123            10

                  **13**

HEE123             3

HEE123            20

                  **23**

I need it to show
QEE123 13
HEE    23

I have tried to supress the ITEMID and QTYSOLD if theres a duplicate however it then only calculates the first entry.

A: *

*Group by ITEMID and place QTYSOLD in detail part.

*Now you take the summary of QTYSOLD in group footer of ITEMID and supress detail part. and place ITEMID to the extreme left of group footer.

redpajama_set_name: RedPajamaStackExchange


text:
Tag Archives: Billion Dollar Composer
Tyler Bates, Billion Dollar Composer
If you left Guardians of the Galaxy Vol. 2 unexpectedly moved by the finale, you can thank composer Tyler Bates, whose symphonic and choral work was perhaps his most accomplished yet in films. Bates, a former rock guitarist who still goes out on the road with Marilyn Manson from time to time, has not only built an entirely new career composing for films and television, he has built a very loyal clientele. As director David Leitch (the soon-in-theaters Atomic Blonde) told me for this latest Billion Dollar Composer section in Variety: "I don't want to do a movie without Tyler Bates." And as Guardians director James Gunn put it in a second story: Bates is "the most undervalued part of both Guardians films. They aren't the Guardians of the Galaxy without Tyler Bates."
This entry was posted in Composers, Film Music, Interviews, Television Music and tagged Atomic Blonde, Billion Dollar Composer, David Leitch, Guardians of the Galaxy, James Gunn, Tyler Bates, Variety on July 20, 2017 by Jon Burlingame.
Henry Jackman profile for Variety
The latest in Variety's series of Billion Dollar Composers (so-called because the aggregate box-office of all their movies exceeds $1 billion) is Englishman Henry Jackman, whose music you may know from the last two Captain America movies — but who may be an awards contender for his music for the upcoming The Birth of a Nation. Jackman is a unique blend of highly trained classical composer and former pop/rock producer, and his thoughts on film music in the 21st century are fascinating. During preparation of the main story and this sidebar on eight of his most interesting scores, I also interviewed Captain America directors Anthony and Joe Russo, Birth of a Nation director Nate Parker, Jack Reacher director Ed Zwick and The Interview co-director Seth Rogen (who, predictably, offered the funniest line in either story).
This entry was posted in Composers, Film Music, Interviews and tagged Anthony Russo, Billion Dollar Composer, Captain America: Civil War, Captain America: The Winter Soldier, Ed Zwick, Henry Jackman, Joe Russo, Nate Parker, Seth Rogen, The Birth of a Nation, Variety on September 29, 2016 by Jon Burlingame.
Alexandre Desplat, Billion Dollar Composer
This was immense fun to put together. I was initially charmed by Alexandre's score for Girl With a Pearl Earring and wowed by at least a dozen more since then. I have interviewed him many times, including a memorable piece for The New York Times (you'll find that in "From the Files") and done several live Q&As with him. Variety asked me to profile him as part of its "Billion Dollar Composer" series, just as awards season is getting underway — so the sidebar story looks at his music for two potential Oscar nominees, The Imitation Game and Unbroken. (And George Clooney thought highly enough of his favorite composer that he interrupted his honeymoon to give me a great quote.)
This entry was posted in Composers, Film Music, Interviews and tagged Alexandre Desplat, Billion Dollar Composer, Girl With a Pearl Earring, The Imitation Game, Unbroken, Variety on November 5, 2014 by Jon Burlingame.
Hans Zimmer: $20 Billion Composer!
Variety started a series several years ago — most of which I've written — called "Billion Dollar Composer," a way of acknowledging how successful some of today's top film scorers have been. For our Hans Zimmer section, out today, the editors were so bowled over by the numbers they retitled it "20 Billion Dollar Composer." Can't say as I blame them.
The section consists of a main story, that looks at his recent work and includes interviews with Hans and such filmmaking luminaries as Jerry Bruckheimer and Christopher Nolan, as well as former proteges Harry Gregson-Williams and John Powell; his newly revealed plans to return to live performing; his own thoughts (accompanied by colorful images) on six classic scores; and a look at his Remote Control studios, home not only to Zimmer but to more than a dozen composing colleagues.
This entry was posted in Composers, Film Music, Interviews and tagged Billion Dollar Composer, Christopher Nolan, Hans Zimmer, Harry Gregson-Williams, Jerry Bruckheimer, John Powell, Mark Webb, Remote Control, Variety on May 7, 2014 by Jon Burlingame.
Harry Gregson-Williams for Variety
This was another in our ongoing series (dubbed "Billion Dollar Composers," a reference to how much money their movies have made). Interviewing Harry was a fascinating experience. He had a fabulous studio in Venice, Calif., at the time, and shared something of his work process while I bugged him about his life, his music and a few of his favorite scores. The main story is mostly about his creative side. The sidebars include one about his animated projects; an on-the-scene report about scoring The Wolverine at Fox; and a look at five career highlights.
This entry was posted in Composers, Film Music, From the Files and tagged Billion Dollar Composer, Gavin Hood, Hans Zimmer, Harry Gregson-Williams, Shrek, The Taking of Pelham 1-2-3, The Wolverine, Variety on April 22, 2009 by Jon Burlingame.

redpajama_set_name: RedPajamaCommonCrawl


Crime dramas are undoubtedly very popular on TV and when watching one, you are bound to come across the term "arrest warrants". So, have you ever wondered if there is an active warrant from Atkinson County, Georgia against you or a person you know? No, a person does not always have to be a seasoned criminal to have arrest warrants in his name.
A simple case of mistaken identity can also get you in trouble with the law. The only option to prevent such an untoward scenario is to ensure regularly that there are no outstanding warrants against you. This can be done by using the online tool provided by the sheriff's office of Atkinson County for a warrant search. For further details go to the sheriff office site.
You will also be able to find an online entry of the most wanted list for Atkinson on this website. You can try the online option if you only want information about the criminal past of a person you know.
However, if it is a detailed background report that you are after, try visiting these agency offices in person.
The police and the magistrate's court will charge a small fee to provide a crime history report. On the other hand, the county clerk's office which acts as the keeper of the Atkinson court dockets database allows applicants to browse the repository for free by using the public service terminals at the justice center.
Atkinson County, Georgia witnesses no more than 100 crimes on an annual basis. However, the situation seemed grim in 2001; through the eight years from thereon, police have managed to bring down the rate of violent crime by nearly 1000% and overall reported incidents by almost 700%.


At 3S we have our own computer controlled embroidery machines and can ensure that you have your logo quickly, efficiently and accurately embroidered onto your workwear garments. Once your logo is digitised, it is saved on our system for any future orders.
All our T-Shirt printing is done on site and we are also stockists of Uneek, Fruit of the Loom, Result, Jerzees, Kustom Kit, Guildan, Regatta, and many more all available to view in our online catalogue.
At 3S Signs you will find all you need to promote and advertise your Company, Club, School, University, or Society.
From small businesses to large corporations, we have the knowledge and expertise to help.
Whether you need a single sign for your new business or are looking to re-brand a large corporate business we have both the expertise and staff to cope. From initial logo design to advice on material and substrate to use for a specific application we have the knowledge and expertise to help.
Everything we produce is all done in-house with our own Screen-printing Department, Full Colour Digital Print Department, Embroidery Machines, Balloon Printing Machines, Laminators, Carousel Tee-shirt Printing Machine, and Heat Transfer Machines.
Please browse our site and see what we offer we are always available on the telephone to answer any questions you have. Call us on 01952 677506.
For over 20 years, 3S have been supplying quality signs and graphics to local businesses around Shropshire and The Midlands.
Our factory is situated in Telford. We are ideally located to supply the whole of the United Kingdom.
Start promoting your business today. Contact us for a custom quote.


Ex-Credit Suisse banker Kilsby named as new Shire chairman | City A.M.
FORMER Credit Suisse banker Susan Kilsby will become the second female chairman of a FTSE 100 company, after drug manufacturer Shire unveiled her appointment yesterday.
Kilsby, who is currently chairman of Shire's audit, compliance and risk committee, will take over from Matthew Emmens, effective from 29 April. She worked at the Swiss investment bank for over 30 years, holding senior roles including chairman of mergers and acquisitions for the EMEA region.
"[Kilsby's] appointment demonstrates the continued momentum behind appointing women on merit and without the need for quotas," said Helena Morrissey, chief executive of Newton Investment Management and founder of the 30% Club.
Shire's shares closed 0.6 per cent lower yesterday.


Yesterday we reported that there was going to be a release of the classic Star Trek Enterprise, as well as a Mirror, Mirror Enterprise. Come July, we will also see the release of an Enterprise based on its appearance in classic film Star Trek 2: Wrath of Khan.
This superb U.S.S. Enterprise measures 16-inches long and features light and sound effects. From the popular Star Trek: The Wrath of Khan movie, this impressive plastic version of the Enterprise sports an all-new paint scheme, too. This legendary vessel is now ready to leave dry dock and explore your collection. Make it so!
What is the differance between this one and the one released last year for ST 2?


Rose's Sugar Shack began over 23 years ago, with Rose, Christina, and the help of some close family members. Rose and her family immediately went to work to create an "at home" atmosphere with great food for all to enjoy.
Today, you'll find the many delectable dishes created by Rose.


A partnership between the Employee Wellness Committee and a University anthropology class resulted in the planting of a community garden on campus as part of Earth Day 2015 on Wednesday, April 22.
A faculty member and students in the Emergency Management Program are looking at ways to help farmers address debris management in the aftermath of tornado disasters.
Tuesday, April 21 was "Draft Day" for the 23 artists selected to create the next collection of Rocky on Parade bulldog statues to be permanently displayed around campus and around Macomb.
A Memorandum of Understanding (MOU) was signed April 20 by Kathleen Neumann, WIU associate provost and College of Business and Technology dean, and Qingyu Fan, vice president of China Jiliang University.
Many times, as a natural extension of academic and philanthropic programming, students, faculty, staff and alumni at WIU are deeply involved in helping the community.
A cutout of Col. Rock III (aka Rocky) will continue to move from office to office when employees make a contribution to the Civil Service Employees Council Scholarship Fund.
"Get in the Game. Save a Life"
Because of one Leatherneck Football player signing up during the inaugural "Get in the Game. Save a Life" bone marrow drive on the WIU campus last spring, an infant will get the lifesaving transplant he needs.
The presentations provide the campus communities with a progress report of the University's master plan, and allows University leadership to share division accomplishments and goals, including fiscal savings suggestions, for the upcoming year.
The annual Spring Gala Dance Concert will offer an evening of dance, choreographed by students and instructors from the University Dance Theatre.
The Western Illinois University Concert Choir and University Singers will present a program of choral works for organ at 7:30 p.m. Saturday, May 2 at the First Presbyterian Church, 400 E. Carroll St., in Macomb.
The WIU Steel Band will celebrate its 30th anniversary with a concert at 7:30 p.m. Saturday, May 2, in the College of Fine Arts and Communication (COFAC) Recital Hall.
The second annual Kline Professorship Lecture, delivered by Assistant Professor Daniel H. Brown, will be presented at 4 p.m. Thursday, May 7 in Morgan Hall, room 310.
Western Illinois University-Macomb employees who passed away between March 2014 and March 2015 will be remembered at 10:30 a.m. Monday, May 11 during a brief ceremony at the Memorial Tree Grove, located on the southeast section of campus by University Village, near the Pierce Street entrance.
The documentary film based on the life of actress Jean Seberg has been nominated for a documentary film award in Iowa.
WIU Admissions Counselor Named "Rising Star"
D'Angelo Taylor, a regional admissions counselor serving the St. Louis metro region for WIU, received the Rising Star Award at the recent Missouri Association for College Admissions Counseling (MOACAC) 2015 Annual Conference.
A retirement reception for Professor and Co-director of the University Dance Theatre Candace Winters-March will be held from 4:30-6 p.m. Friday, May 1 in the Hainline Theatre lobby.
A retirement reception will be held for School of Law Enforcement and Justice Administration (SLEJA) Director Terry Mors, SLEJA Professor Barry Anderson and SLEJA Office Manager Judy Thompson from 2-4 p.m. Monday, May 4 in Horrabin Hall 1.
Scott Brouette, assistant director of student affairs at WIU-QC, recently received The Governor's Volunteer Service Award in recognition of his efforts to enhance early childhood literacy in the region.
Three faculty members were recognized last week at the Faculty Research and Creative Activities Awards event hosted by the WIU Center for Innovation in Teaching and Research (CITR).
The Council of Academic Advisor (COAA) Awards and Recognition Committee named Andria Potter the March Academic Advisor of the Month.
Department of Human Resources has released the names of the Civil Service recognition and service award winners for 2015.
Department of Chemistry Assistant Professor Brian Bellott was presented with the Award of Excellence in Mentoring during the Centennial Honor College's 2015 Thomas E. Helm Undergraduate Research Day, held April 15.
University Technology seeks a full-time Microsoft Server, Desktop, and Security Specialist.
Computer science professor Jayne Schiek, 90, of Macomb, passed away Thursday, April 9 at her home.