• 제목/요약/키워드: Bad smells

검색결과 15건 처리시간 0.024초

A Catalog of Bad Smells in Design-by-Contract Methodologies with Java Modeling Language

  • Viana, Thiago
    • Journal of Computing Science and Engineering
    • /
    • 제7권4호
    • /
    • pp.251-262
    • /
    • 2013
  • Bad smells are usually related to program source code, arising from bad design and programming practices. Refactoring activities are often motivated by the detection of bad smells. With the increasing adoption of Design-by-Contract (DBC) methodologies in formal software development, evidence of bad design practices can similarly be found in programs that combine actual production code with interface contracts. These contracts can be written in languages, such as the Java Modeling Language (JML), an extension to the Java syntax. This paper presents a catalog of bad smells that appear during DBC practice, considering JML as the language for specifying contracts. These smells are described over JML constructs, although several can appear in other DBC languages. The catalog contains 6 DBC smells. We evaluate the recurrence of DBC smells in two ways: first by describing a small study with graduate student projects, and second by counting occurrences of smells in contracts from the JML models application programming interface (API). This API contains classes with more than 1,600 lines in contracts. Along with the documented smells, suggestions are provided for minimizing the impact or even removing a bad smell. It is believed that initiatives towards the cataloging of bad smells are useful for establishing good design practices in DBC.

Energy Bad Smells 기반 소모전력 절감을 위한 코드 리팩토링 기법 (Code Refactoring Techniques Based on Energy Bad Smells for Reducing Energy Consumption)

  • 이제욱;김두환;홍장의
    • 정보처리학회논문지:소프트웨어 및 데이터공학
    • /
    • 제5권5호
    • /
    • pp.209-220
    • /
    • 2016
  • 최근 스마트폰, 태블릿과 같은 기기의 사용량이 증가하면서, 이에 탑재되는 소프트웨어는 더욱 복잡해지고 규모가 커지고 있다. 배터리의 전력으로 구동되는 모바일 기기들은 전력 공급의 한계로 인해 운용시간을 증가시키는 것이 중요한 이슈이다. 최근에는 소프트웨어 동작이 하드웨어 구동을 통해 전력 소모를 일으킨다는 점에서, 효율적인 동작 패턴을 갖는 소프트웨어 개발에 대한 연구들이 진행되고 있다. 그러나 모바일 기기에 탑재되는 소프트웨어는 그 개발 주기가 짧은 경우가 많아 최적화와 전력 소모량을 반영하기 어려운 경우가 많다. 따라서 본 연구에서는 소모전력 절감을 위한 코드 리팩토링 기법을 제안하여, 소프트웨어 개발 및 유지보수에서 보다 용이하게 저전력 요구사항을 충족시키고자 한다. 이를 위해 전력 소모량을 감소시킬 수 있는 코드 패턴에 대하여 Energy Bad Smell을 식별하고, 이를 제거하기 위한 새로운 코드 리팩토링 기법을 제안하며, 실험을 통해 그 효용성을 검증하였다.

A Systematic Literature Survey of Software Metrics, Code Smells and Refactoring Techniques

  • Agnihotri, Mansi;Chug, Anuradha
    • Journal of Information Processing Systems
    • /
    • 제16권4호
    • /
    • pp.915-934
    • /
    • 2020
  • Software refactoring is a process to restructure an existing software code while keeping its external behavior the same. Currently, various refactoring techniques are being used to develop more readable and less complex codes by improving the non-functional attributes of software. Refactoring can further improve code maintainability by applying various techniques to the source code, which in turn preserves the behavior of code. Refactoring facilitates bug removal and extends the capabilities of the program. In this paper, an exhaustive review is conducted regarding bad smells present in source code, applications of specific refactoring methods to remove that bad smell and its effect on software quality. A total of 68 studies belonging to 32 journals, 31 conferences, and 5 other sources that were published between the years 2001 and 2019 were shortlisted. The studies were analyzed based on of bad smells identified, refactoring techniques used, and their effects on software metrics. We found that "long method", "feature envy", and "data class" bad smells were identified or corrected in the majority of studies. "Feature envy" smell was detected in 36.66% of the total shortlisted studies. Extract class refactoring approach was used in 38.77% of the total studies, followed by the move method and extract method techniques that were used in 34.69% and 30.61% of the total studies, respectively. The effects of refactoring on complexity and coupling metrics of software were also analyzed in the majority of studies, i.e., 29 studies each. Interestingly, the majority of selected studies (41%) used large open source datasets written in Java language instead of proprietary software. At the end, this study provides future guidelines for conducting research in the field of code refactoring.

실험동물 사육실에서의 Exhaust Filter Unit의 악취제거성능에 관한 실험적 연구 (An Experimental Study on the Deodorization Performance of Exhaust Filter Unit in a Laboratory Animal Breeding Facility)

  • 권순욱;홍진관
    • 설비공학논문집
    • /
    • 제25권4호
    • /
    • pp.194-200
    • /
    • 2013
  • In this study, an exhaust filter unit for removing bad smells is designed and manufactured to understand the characteristics, damages, and effects on humans and animals of bad smell substances in laboratory animal breeding facilities. Using the exhaust filter unit, a deodorization performance test using ammonia gas, as a typical bad smell in an animal breeding room, was carried out for three types of activated and impregnated charcoal filters. The experimental results showed that the pressure loss of the HEPA and carbon filter was increased with flow rate and that the average deodorization performance for the case where an impregnated carbon filter was installed was a maximum value of between 93 and 96%, with various fractional flow rates ranging from 1,500 to $3,500m^3/h$ in a laboratory animal breeding room. The experimental results will also be used for the design and manufacture of a practical and efficient exhaust filter unit to cope with bad smell problems in animal breeding facilities.

Analysis of Odor Data Based on Mixed Neural Network of CNNs and LSTM Hybrid Model

  • Sang-Bum Kim;Sang-Hyun Lee
    • International Journal of Advanced Culture Technology
    • /
    • 제11권4호
    • /
    • pp.464-469
    • /
    • 2023
  • As modern society develops, the number of diseases caused by bad smells is increasing. As it can harm people's health, it is important to predict in advance the extent to which bad smells may occur, inform the public about this, and take preventive measures. In this paper, we propose a hybrid neural network structure of CNN and LSTM that can be used to detect or predict the occurrence of odors, which are most required in manufacturing or real life, using odor complex sensors. In addition, the proposed learning model uses a complex odor sensor to receive four types of data, including hydrogen sulfide, ammonia, benzene, and toluene, in real time, and applies this data to the inference model to detect and predict the odor state. The proposed model evaluated the prediction accuracy of the training model through performance indicators based on accuracy, and the evaluation results showed an average performance of more than 94%.

선박폐수 처리공정의 개발에 관한 사례 (A Case Study on the Development of New Process for Treatment of Waste Waters from Ships)

  • 최상모;허인석;양석준
    • 해양환경안전학회지
    • /
    • 제15권1호
    • /
    • pp.71-78
    • /
    • 2009
  • 해양환경관리공단은 MARPOL 73/78에 따른 해양환경 보전을 위하여 1998년 정부로부터 전국 13개 주요 항만에 위치한 선박폐수 처리시설을 위탁받아 운영해왔다. 이 시설은 선박폐수를 처리함에 있어 단순히 해양환경관리법에서 정한 유분농도(n-H 광유류) 15ppm을 충족할 수 있도록 설계되어 운영되어 왔다. 그러나 선박폐수에는 n-H 광유류 뿐만 아니라 유기물에 의한 악취와 각종 불순물이 함유되어 있기 때문에 이들이 처리되지 않고 그대로 해양에 배출됨으로써 해양오염은 물론 주변 인가 등으로부터 민원의 대상이 되었다. 이에 따라 공단은 지난 2007년 선박폐수 처리공정 개선 작업을 시행하여 새로운 수처리 약품을 개발하여 적용하고, 오존을 이용하여 기존의 공정을 3${\sim}$4 단계 줄이면서도 배출수의 유분농도 뿐만 아니라 콜로이드물질, ABS, 인, 질소 등 난분해성 유기물질과 미생물 분해에 의한 악취를 효과적이고 혁신적으로 저감 시킬 수 있는 새로운 공정을 개발하여 현장에 적용시켰다. 새로운 공정은 각종 오염물질과 악취를 획기적으로 제거할 뿐만 아니라 공정의 단순화를 통해 시설 유지비 10% 이상 절감 등 13개 선박폐수 처리시설 운영비를 매년 1억6천만원 이상 줄일 수 있는 획기적인 공정으로 방법특허를 출원하였다.

  • PDF

광촉매 반응치 설계를 위한 기초 연구 (A Fundamental Study for a Photocatalytic Reactor Design)

  • 손건석;윤승원;고성혁;김대중;송재원;이귀영
    • 한국자동차공학회논문집
    • /
    • 제10권2호
    • /
    • pp.40-47
    • /
    • 2002
  • Because UV wavelength lights can activate photocatalysts, plasma is used as a light source of a photocatalytic reactor. Even though plasma has good intensity for photo reaction, substrate of catalyst coating was limited by the geometry of plasma generator. Usually bead type substrate was used for a pack bed type reactor. Honeycomb monolith type substrate was used with UV lamps instead plasma, due to the light penetration the honeycomb monolith length was too short to show good activity In this study a photocatalytic reactor, which is using a honeycomb monolith substrate, was investigated with plasma as an activation light source. As a parametric study the effects of 1311owing factors on plasma generation and power consumption are examined; supply voltage, substrate length, environment condition, catalyst loading and ratio. Using the test results, the practicability test was done with simulated synthetic gases representing bad smells and automotive exhaust gases.

흑염소불고기의 조리법의 표준화에 관한 연구 (The Recipe Standardization and Nutrient Analysis of Broiled Black Goat Meat)

  • 김상애
    • 한국식생활문화학회지
    • /
    • 제16권4호
    • /
    • pp.269-275
    • /
    • 2001
  • The present research was designed to collect recipe of set up a standard recipe and analyze the nutrients of broiled black goat meat (a kind of native local foods in Busan and south province). The results of the study are summarized as follows. The recipe for goat(lamb) meat was recorded in Sanlimkyounggae and Jungbosanlimkyounggae between 1715 and 1827. The goat meat was explained as food for health, rejuvenation and recuperation Since late 1800, it has been utilized for such use. The flavor of broiled black goat meat is influenced by seasonings, fruit juice, heating treatment and cooker. And it also could be affected by the method of slaughter and the sex of the goat. There are lot of element in seasoning. Red pepper paste, garlic and ginger holdback the bad smell and make the taste better. Onion help to retain the water and improve the flavor. Starch syrup, sugar and sesame oil make the meat smoother, glossier and more tasty. The meat is usually roasted on grill over charcoal. It helps to remove or suppress the bad smell and make the taste better. Softness and scent of the meat depend largely on the way to butcher. Female goat meat tastes smoother and smells better. Fruit juice also improve the softness of the meat. Energy per 100g of the 'broiled black goat meat' is 170kcal. There are protein (23g), fat(2.4g), Ca(159mg), Fe(1.1mg) and so on. Amino acid is mainly comprised of essential amino acid such as cystine, lysine, leucine, and arginine. Fatty acid consists primarily of unsaturated fatty acid like oleic acid, linoleic acid.

  • PDF

대도시 서민 주거지 환경실태와 주민의식 - 대구시 일부 지역을 대상으로 - (Residents' Perception on Living Environment in Metropolitan Area - The Case of Daegu Metropolitan City -)

  • 김한수;장몽현
    • 한국주거학회논문집
    • /
    • 제22권4호
    • /
    • pp.113-120
    • /
    • 2011
  • The primary purpose of this study is to suggest policy directions for redevelopment project based on analysis of residents' perception on needs and reasons of redevelopment, and development type in old settlements in Daegu Metropolitan City. The main findings are follows. First, the study area is short of public space such as road and parks, occupied by old single detached houses with small parcel. The living environment of the area consist with many 20 years or older two story houses is very poor. Second, most of residents (58.5%) consider economic factors or cheaper rent more serious than other factors such as convenience, amenity, and education facilities. Third, residents want new housing construction even though explanatory power of trash collection, bad smells, privacy is very high in residents' satisfaction. Fourth, most of residents (88.8%) agree redevelopment and show strong preference to high-density apartment construction through demolish-and-development type of redevelopment approach. They are willing to agree the parcellevel redevelopment if governments provides economic supports and temporary settlements. This finding suggests very important policy implications for current government efforts to improve living environment.

성남 지역 일부 초등학생의 청국장 섭취 실태 및 기호도 조사 (The Study on the Consumption and the Preference of Chungkukjang among Elementary School Children in Seongnam Area)

  • 목은경;박신인
    • 한국식품영양학회지
    • /
    • 제21권2호
    • /
    • pp.218-226
    • /
    • 2008
  • This study examined the preference and consumption of chungkukjang among elementary school children in Seongnam, Korea. The subjects included 583 students(male 300, female 283) who were asked to fill out a questionnaire. The collected data were analyzed using the SAS package. The results showed that 91.9% of the female students, 91.6% of children from nuclear families, and 90.7% of children with stay-at-home mothers, consumed chungkukjang. Among the children who had eaten chungkukjang previously, most had consumed it at home, and 65.5% of the students responded that chungkukjang was tasty. The data also revealed that female students, children from nuclear families, and those with stay-at-home mothers had greater preference for chungkukjang than male students, children from extended families, and those with working mothers. When asked why they dislike chungkukjang, both male and female students who had eaten it responded because 'it smells bad' and that 'it is not tasty'. However, among the students who had never eaten it, the male students replied because 'it is not tasty'(33.3%) and that 'it is not eaten at home'(27.8%), and the primary responses of the female students were 'it is not eaten at home'(65.2%) and 'it is not tasty'(21.7%). However, the subjects who had tried chungkukjang previously answered that in the future they would like to have it more frequently, as compared to the subjects who had never eaten chungkukjang. Therefore, to increase knowledge and improve perceptions of chungkukjang foods, families should give children many opportunities to try them, and in return, children will consume chungkukjang foods with pride. Furthermore, it is important that society as well as mass media, which have great influence on children, show concern and offer support in promoting chungkukjang.