3,113 research outputs found

    Exploring the eradication of code smells: An empirical and theoretical perspective

    Get PDF
    This article has been made available through the Brunel Open Access Publishing Fund - Copyright @ 2010 Hindawi Publishing CorporationCode smells reflect code decay, and, as such, developers should seek to eradicate such smells through application of “deodorant” in the form of one or more refactorings. However, a relative lack of studies exploring code smells either theoretically or empirically when compared with literature on refactoring suggests that there are reasons why smell eradication is neither being applied in anger, nor the subject of significant research. In this paper, we present three studies as supporting evidence for this stance. The first is an analysis of a set of five, open-source Java systems in which we show very little tendency for smells to be eradicated by developers; the second is an empirical study of a subsystem of a proprietary, C# web-based application where practical problems arise in smell identification and the third, a theoretical enumeration of smell-related refactorings to suggest why smells may be left alone from an effort perspective. Key findings of the study were that first, smells requiring application of simple refactorings were eradicated in favour of smells requiring more complex refactorings; second, a wide range of conflicts and anomalies soon emerged when trying to identify smelly code; an interesting result with respect to comment lines was also observed. Finally, perceived (estimated) effort to eradicate a smell may be a key factor in explaining why smell eradication is avoided by developers. The study thus highlights the need for a clearer research strategy on the issue of code smells and all aspects of their identification and measurement.The research in this paper was supported by a grant from the UK Engineering and Physical Sciences Research Council (EPSRC) (Grant no: EP/G031126/1

    Attachment of composite porous supra-particles to air–water and oil–water interfaces: theory and experiment

    Get PDF
    We developed and tested a theoretical model for the attachment of fluid-infused porous supra-particles to a fluid–liquid interface. We considered the wetting behaviour of agglomerated clusters of particles, typical of powdered materials dispersed in a liquid, as well as of the adsorption of liquid-infused colloidosomes at the liquid–fluid interface. The free energy of attachment of a composite spherical porous supra-particle made from much smaller aggregated spherical particles to the oil–water interface was calculated. Two cases were considered: (i) a water-filled porous supra-particle adsorbed at the oil–water interface from the water phase, and, (ii) an oil-filled porous supra-particle adsorbed at the oil–water interface from the oil-phase. We derived equations relating the three-phase contact angle of the smaller “building block” particles and the contact angle of the liquid-infused porous supra-particles. The theory predicts that the porous supra-particle contact angle attached at the liquid interface strongly depends on the type of fluid infused in the particle pores and the fluid phase from which it approaches the liquid interface. We tested the theory by using millimetre-sized porous supra-particles fabricated by evaporation of droplets of polystyrene latex suspension on a pre-heated super-hydrophobic surface, followed by thermal annealing at the glass transition temperature. Such porous particles were initially infused with water or oil and approached to the oil–water interface from the infusing phase. The experiment showed that when attaching at the hexadecane–water interface, the porous supra-particles behaved as hydrophilic when they were pre-filled with water and hydrophobic when they were pre-filled with hexadecane. The results agree with the theoretically predicted contact angles for the porous composite supra-particles based on the values of the contact angles of their building block latex particles measured with the Gel Trapping Technique. The experimental data for the attachment of porous supra particles to the air–water interface from both air and water also agree with the theoretical model. This study gives important insights about how porous particles and particle aggregates attach to the oil–water interface in Pickering emulsions and the air–water surface in particle-stabilised aqueous foams relevant in ore flotation and a range of cosmetic, pharmaceutical, food, home and personal care formulations

    Preparation and attachment of liquid-infused porous supra-particles to liquid interfaces

    Get PDF
    © 2016 The Royal Society of Chemistry. We prepared model porous composite supra-particles and investigated the effect of the initial infused fluid phase on their attachment at the liquid-fluid interface. We used a simple method for fabrication of millimetre-sized spherical porous supra-particles from much smaller monodisperse latex microparticles as building blocks by evaporation of a polystyrene sulphate latex suspension on a hot super-hydrophobic surface. We annealed the dried supra-particles at the polymer's glass transition temperature to fuse partially their latex particle building blocks. Spherical porous supra-particles were produced above 40 wt% initial concentration of the latex particles in the suspension, which had a rough surface, with a porous and amorphous structure. We controlled the supra-particle size by varying the initial volume of the latex suspension drop, the latex particle concentration and the drop evaporation temperature. This preparation technique allowed limited control over the porosity of the supra-particles by varying the initial concentration of the latex particle suspension, the rate of evaporation and the annealing temperature. We characterised the surface morphology and the inner structure of supra-particles by SEM imaging. We report for the first time results of an MRI study of supra-particles attached to an air-water or an oil-water interface, which indicated that only the surface layer of the building block particles attaches to the liquid interface while the pore fluid was not displaced by the outer fluid. We observed that supra-particles infused with water had different wettability and attachment positions at the oil-water interface compared with the same particles infused with oil. Similarly, the infusion of the porous supra-particles with water led to a different attachment at the air-water interface compared to the attachment of the same supra-particle when dry. The fundamental importance of this result is that the porous particles (or colloid particle agglomerates) may give an oil-in-water or water-in-oil Pickering emulsion depending on whether they are initially impregnated with oil or water. The results of this study are relevant for particle-stabilised emulsions and foams in a range of pharmaceutical, food and cosmetic formulations as well as ore flotation

    Adsorption of carboxylic modified latex particles at liquid interfaces studied by the gel trapping technique

    Get PDF
    We have studied how carboxylic modified latex (CML) microparticles adsorb at liquid surfaces and the preferred type of emulsion they can stabilise depending on the particle size and the surface density of carboxylic groups. We measured the particle contact angle by using the gel trapping technique (GTT) for CML particles adsorbed at air–water and oil–water interfaces. Using this method we obtained scanning electron microscopy (SEM) micrographs of polydimethylsiloxane (PDMS) replicas of the liquid interface with the particles, where the PDMS replicates the non-polar phase and measured the particle contact angle. We discovered that the particle wettability correlates well with the surface density of the carboxylic groups but is not very sensitive to the presence of electrolyte in the aqueous phase and the value of the particle zeta potential. We demonstrated that CML microparticles with a high surface density of COOH groups stabilise oil-in-water (O/W) emulsions while those with the lowest coverage of COOH groups favour the formation of water-in-oil (W/O) emulsions. We found that this corresponds to a change of the CML particle contact angle from lower than 90° to higher than 90° upon decrease of the surface density of COOH groups. The findings confirm that the surface density of polar groups has a much bigger effect on the particle wettability and the preferred emulsion than the particle surface charge and zeta potential. Our results on the type of stabilised Pickering emulsion agree with other experimental studies with different particle materials. We propose an alternative explanation for the link between the particle contact angle and the type of stabilised Pickering emulsion

    Optical Wireless Data Center Networks

    Get PDF
    Bandwidth and computation-intensive Big Data applications in disciplines like social media, bio- and nano-informatics, Internet-of-Things (IoT), and real-time analytics, are pushing existing access and core (backbone) networks as well as Data Center Networks (DCNs) to their limits. Next generation DCNs must support continuously increasing network traffic while satisfying minimum performance requirements of latency, reliability, flexibility and scalability. Therefore, a larger number of cables (i.e., copper-cables and fiber optics) may be required in conventional wired DCNs. In addition to limiting the possible topologies, large number of cables may result into design and development problems related to wire ducting and maintenance, heat dissipation, and power consumption. To address the cabling complexity in wired DCNs, we propose OWCells, a class of optical wireless cellular data center network architectures in which fixed line of sight (LOS) optical wireless communication (OWC) links are used to connect the racks arranged in regular polygonal topologies. We present the OWCell DCN architecture, develop its theoretical underpinnings, and investigate routing protocols and OWC transceiver design. To realize a fully wireless DCN, servers in racks must also be connected using OWC links. There is, however, a difficulty of connecting multiple adjacent network components, such as servers in a rack, using point-to-point LOS links. To overcome this problem, we propose and validate the feasibility of an FSO-Bus to connect multiple adjacent network components using NLOS point-to-point OWC links. Finally, to complete the design of the OWC transceiver, we develop a new class of strictly and rearrangeably non-blocking multicast optical switches in which multicast is performed efficiently at the physical optical (lower) layer rather than upper layers (e.g., application layer). Advisors: Jitender S. Deogun and Dennis R. Alexande

    Comparative Study of Performance of Particle Swarm Optimization and Fast Independent Component Analysis method in Cocktail Party Problem

    Get PDF
    هنالك الكثير من الطرق التي تستخدم لحل مشكلة فصل المصدر المحجوب، مثل طريقة تحليل المكونات المستقلة والتي اصبحت من اكثر الطرق استخداما. طريقة تحليل المكونات المستقلة تعتمد على واحدة من اثنتين من الخصائص: استقلالية العينة او non-Gaussianity. في هذا البحث استخدمت طريقة فصل المكونات المستقلة لحل مشكلة حفلة الكوكتيل. حيث تمت دراسة انجازية طريقتين: طريقة فصل المكونات السريعة وطريقة تحسين سرب الطيور ومقارنة النتائج بالاعتماد على بعض مقاييس الانجازية مثل (الموضوعي مثل  SNR و SDR (  و (ذاتي مثل single plotting  و playing ) . حيث طبقت الخوارزميتين على مصادر ذوي اشارتين وثلاث اشارات. وكنتيجة لعملية التقييم فأن خوازمية فصل المكونات السريعة اعطت نتائج اكثر دقة من خوارزمية تحسين سرب الطيور. حيث استخدمت اشارات للكلام بتردد 8 كيلو هرتز والتي حققت شروط كل من ال  i.i.d و well-condition والتي اختبرت على احاديث مختلفة لرجال ونساء وكذلك الموسيقى.     There are many methods used for solving the Blind Source Separation problem, such as Independent Component Analysis which became the most commonly used method. ICA methods depend on one of two properties: sample dependency or non-Gaussianity. In our study, the cocktail-party problem processed using ICA method. In this work, we studied the performance of two techniques with the independent component analysis is standard FastICA, and PSO; and compare the results of each algorithm with others according to some evaluation metrics (objective such as SNR and SDR ) and (subjective such as signals plotting and playing). The implement of these algorithms was to be made with two source signals and three source signals. As in the evaluation process, the PSO gives more accurate results than FastICA. Many input speech signals of 8 KHz sampling frequency, that achieve i.i.d. condition and well-condition were tested for different speeches for men and/or women, also music

    Commutativity theorems for rings with constraints on commutators

    Get PDF
    In this paper, we generalize some well-known commutativity theorems for associative rings as follows: Let n>1, m, s, and t be fixed non-negative integers such that s≠m−1, or t≠n−1, and let R be a ring with unity 1 satisfying the polynomial identity ys[xn,y]=[x,ym]xt for all y∈R. Suppose that (i) R has Q(n) (that is n[x,y]=0 implies [x,y]=0); (ii) the set of all nilpotent elements of R is central for t>0, and (iii) the set of all zero-divisors of R is also central for t>0. Then R is commutative. If Q(n) is replaced by m and n are relatively prime positive integers, then R is commutative if extra constraint is given. Other related commutativity results are also obtained
    corecore