scholarly journals Two N-of-1 self-trials on readability differences between anonymous inner classes (AICs) and lambda expressions (LEs) on Java code snippets

2021 ◽  
Vol 27 (2) ◽  
Author(s):  
Stefan Hanenberg ◽  
Nils Mehlhorn

AbstractIn Java, lambda expressions (LEs) were introduced at a time where the similar language construct anonymous inner class (AIC) already existed for years. But while LEs became quite popular in mainstream programming languages in general, their usability is hardly studied. From the Java perspective the need to study the relationship between LEs and AICs was and is quite obvious, because both language constructs co-exist. However, it is quite usual that new language constructs are introduced although they are not or hardly studied using scientific methods – and an often heard argument from programming language designers is that the effort or the costs for the application of the scientific method on language constructs is too high. The present paper contributes in two different ways. First, with respect to LEs in comparison to AICs, this paper presents two N-of-1 studies (i.e. randomized control trials executed on a single subject) where LEs and AICs are used as listeners in Java code. Both experiments had two similar and rather simple tasks (“count the number of parameters”, respectively “count the number of used parameters”) with the dependent variable being reaction time. The first experiment used the number of parameters, the second the number of used parameters as the controlled, independent variable (in addition to the technique LE and AIC). Other variables (LOC, etc.) were randomly generated within given boundaries. The main result of both experiments is that LEs without type annotations require less reading time (p hs .2, reduction of reaction time of at most 35%). The results are based on 9,600 observations (one N-of-1 trial with eight replications). This gives evidence that the readability of LEs without type annotations improves the readability of code. However, the effect seems to be so small, that we do not expect this to have a larger impact on daily programming. Second, we see the contribution of this paper in the application of N-of-1 trials. Such experiments require relatively low effort in the data selection but still permit to analyze results in a non-subjective way using commonly accepted analysis techniques. Additionally, they permit to increase the number of selected data points in comparison to traditional multi–subject experiments. We think that researchers should take such experiments into account before planning and executing larger experiments.

2004 ◽  
Vol 11 (37) ◽  
Author(s):  
Jørgen Iversen ◽  
Peter D. Mosses

Usually, the majority of language constructs found in a programming language can also be found in many other languages, because language design is based on reuse. This should be reflected in the way we give semantics to programming languages. It can be achieved by making a language description consist of a collection of modules, each defining a single language construct. The description of a single language construct should be language independent, so that it can be reused in other descriptions without any changes. We call a language description framework ``constructive'' when it supports independent description of individual constructs.<br /> <br />We present a case study in constructive semantic description. The case study is a description of Core ML, consisting of a mapping from it to BAS (Basic Abstract Syntax) and action semantic descriptions of the individual BAS constructs. The latter are written in ASDF (Action Semantics Definition Formalism), a formalism specially designed for writing action semantic descriptions of single language constructs. Tool support is provided by the ASF+SDF Meta-Environment and by the Action Environment, which is a new extension of the ASF+SDF Meta-Environment.


2004 ◽  
Vol 9 (1) ◽  
pp. 24-31 ◽  
Author(s):  
Sybille Rockstroh ◽  
Karl Schweizer

Effects of four retest-practice sessions separated by 2 h intervals on the relationship between general intelligence and four reaction time tasks (two memory tests: Sternberg's memory scanning, Posner's letter comparison; and two attention tests: continuous attention, attention switching) were examined in a sample of 83 male participants. Reaction times on all tasks were shortened significantly. The effects were most pronounced with respect to the Posner paradigm and smallest with respect to the Sternberg paradigm. The relationship to general intelligence changed after practice for two reaction time tasks. It increased to significance for continuous attention and decreased for the Posner paradigm. These results indicate that the relationship between psychometric intelligence and elementary cognitive tasks depends on the ability of skill acquisition. In the search for the cognitive roots of intelligence the concept of learning seems to be of importance.


2010 ◽  
Vol 31 (3) ◽  
pp. 130-137 ◽  
Author(s):  
Hagen C. Flehmig ◽  
Michael B. Steinborn ◽  
Karl Westhoff ◽  
Robert Langner

Previous research suggests a relationship between neuroticism (N) and the speed-accuracy tradeoff in speeded performance: High-N individuals were observed performing less efficiently than low-N individuals and compensatorily overemphasizing response speed at the expense of accuracy. This study examined N-related performance differences in the serial mental addition and comparison task (SMACT) in 99 individuals, comparing several performance measures (i.e., response speed, accuracy, and variability), retest reliability, and practice effects. N was negatively correlated with mean reaction time but positively correlated with error percentage, indicating that high-N individuals tended to be faster but less accurate in their performance than low-N individuals. The strengthening of the relationship after practice demonstrated the reliability of the findings. There was, however, no relationship between N and distractibility (assessed via measures of reaction time variability). Our main findings are in line with the processing efficiency theory, extending the relationship between N and working style to sustained self-paced speeded mental addition.


2016 ◽  
Vol 2 (1) ◽  
pp. 1
Author(s):  
Noorlaila Yunus ◽  
Cairul Azwa Azimi

Organizational Citizenship Behaviour (OCB) has been widely studied across the boarders especially in the western countries. This workplace voluntary behaviour is associated with many predictors that may bring whether major, minor or negative influence towards the engagement of employees’ OCB. Basically, this study is focusing on motivation as the predictor or independent variable that influence employees’ engagement on the OCB (altruism, conscientiousness, courtesy, civic virtue and sportsmanship) behaviour. Herzberg’s motivator factor (achievement, advancement, recognition and growth) has been chosen as the independent variable. A total of 150 questionnaires were distributed conveniently to respondents. With 125 questionnaires returned, researcher was able to analyze the data based on the research questions and hypotheses developed. The findings showed moderate and weak, significant relationship between the variable excluding the relationship between independent variable and civic virtue and sportsmanship. Thus, Herzberg’s motivator factor was not a predictor to civic virtue and sportsmanship behaviour. However for the strongest predictor; achievement, growth and growth are strongly predicts the altruism, conscientiousness and courtesy behaviour respectively. However, with the absence of relationship between independent variable and civic virtue as well as sportsmanship, therefore the strongest predictor cannot be determined as the value recorded was below the criterion.


2019 ◽  
Author(s):  
Liwei Cao ◽  
Danilo Russo ◽  
Vassilios S. Vassiliadis ◽  
Alexei Lapkin

<p>A mixed-integer nonlinear programming (MINLP) formulation for symbolic regression was proposed to identify physical models from noisy experimental data. The formulation was tested using numerical models and was found to be more efficient than the previous literature example with respect to the number of predictor variables and training data points. The globally optimal search was extended to identify physical models and to cope with noise in the experimental data predictor variable. The methodology was coupled with the collection of experimental data in an automated fashion, and was proven to be successful in identifying the correct physical models describing the relationship between the shear stress and shear rate for both Newtonian and non-Newtonian fluids, and simple kinetic laws of reactions. Future work will focus on addressing the limitations of the formulation presented in this work, by extending it to be able to address larger complex physical models.</p><p><br></p>


2018 ◽  
Vol 2 (2) ◽  
pp. 137
Author(s):  
Muhammad Abi Berkah Nadi

Radin Inten II Airport is a national flight in Lampung Province. In this study using the technical analysis stated preference which is the approach by conveying the choice statement in the form of hypotheses to be assessed by the respondent. By using these techniques the researcher can fully control the hypothesized factors. To determine utility function for model forecasting in fulfilling request of traveler is used regression analysis with SPSS program. The analysis results obtained that the passengers of the dominant airport in the selection of modes of cost attributes than on other attributes. From the result of regression analysis, the influence of independent variable to the highest dependent variable is when the five attributes are used together with the R square value of 8.8%. The relationship between cost, time, headway, time acces and service with the selection of modes, the provision that states whether or not there is a decision. The significance of α = 0.05 with chi-square. And the result of Crame's V test average of 0.298 is around the middle, then the relationship is moderate enough.


Nutrients ◽  
2021 ◽  
Vol 13 (3) ◽  
pp. 868
Author(s):  
Jorge Lorenzo Calvo ◽  
Xueyin Fei ◽  
Raúl Domínguez ◽  
Helios Pareja-Galeano

Cognitive functions are essential in any form of exercise. Recently, interest has mounted in addressing the relationship between caffeine intake and cognitive performance during sports practice. This review examines this relationship through a structured search of the databases Medline/PubMed and Web of Science for relevant articles published in English from August 1999 to March 2020. The study followed PRISMA guidelines. Inclusion criteria were defined according to the PICOS model. The identified records reported on randomized cross-over studies in which caffeine intake (as drinks, capsules, energy bars, or gum) was compared to an identical placebo situation. There were no filters on participants’ training level, gender, or age. For the systematic review, 13 studies examining the impacts of caffeine on objective measures of cognitive performance or self-reported cognitive performance were selected. Five of these studies were also subjected to meta-analysis. After pooling data in the meta-analysis, the significant impacts of caffeine only emerged on attention, accuracy, and speed. The results of the 13 studies, nevertheless, suggest that the intake of a low/moderate dose of caffeine before and/or during exercise can improve self-reported energy, mood, and cognitive functions, such as attention; it may also improve simple reaction time, choice reaction time, memory, or fatigue, however, this may depend on the research protocols.


Author(s):  
Yuichi Suzuki

Abstract A subtest of the LLAMA test battery (LLAMA_D) has been proposed as a potential test of implicit learning aptitude. To improve its construct validity, in the present study, the original LLAMA_D (a) instructions for incidental learning were modified, and (b) confidence ratings of test responses and (c) reaction time (RT) measurements were added. This revised LLAMA_D was administered along with the other LLAMA subtests (LLAMA-B, -E, and -F). Unconscious knowledge that may (not) result from the exposure was assessed through the relationship between the accuracy/RT and confidence ratings. The results suggest that LLAMA_D accuracy largely reflects conscious retrieval of previously heard sound sequences. However, an index derived from the LLAMA_D RT measure (coefficient of variance) was associated with an aspect of oral fluency, which is presumably dependent on proceduralization. Several recommendations are proposed to redesign and extend LLAMA_D as a potential aptitude test for proceduralization.


2014 ◽  
Vol 4 (3) ◽  
pp. 368 ◽  
Author(s):  
Roshana Gul

Though a lot of studies have been done to conclude customer loyalty as dependent variable but still there is a vast margin of researches to be conducted in future in different spheres of this construct. On the other hand the truth of the importance of customer loyalty as an enduring asset cannot be falsified. It is fundamental for organizations to build up long term and mutual beneficial associations with the customers. The purpose of this research paper is to show the inter relationship of reputation, customer satisfaction and trust on customer loyalty. According to the observations reputation is the major independent variable that has significant relationship with customer satisfaction, customer loyalty, and trust. Data for this research study was taken from the Islamia University, Quaid-e-Azam Medical College, and different banks located at various geographic locations of Bahawalpur region of Pakistan. Data was collected through self administered questionnaire and analyzed by using regression through SPSS. The results have been drawn from 150 users of NISHAT LINEN and it was found that there is positive and significant relationship among reputation, customer satisfaction, trust and customer loyalty. Hence the studies give the positive sign that with the increment of reputation, customer satisfaction and trust the customer loyalty enhances.  


1963 ◽  
Vol 61 (1) ◽  
pp. 33-43 ◽  
Author(s):  
G. W. Arnold ◽  
M. L. Dudzinski

Data from thirty-five digestibility trials with sheep in metabolism cages were used to investigate statistically the relationships between organic matter intake (I), faecal organic matter output (F), and the nitrogen concentration in faecal organic matter (N).The data fell easily into groups due to botanical or seasonal differences in the feed. These groups of data were homogeneous and provided highly significant linear equations of the forms I = bF + cFN and I = a + cFN. When compared these groups of data sometimes showed differences in slope, position or both. A quadratic expressionI = bF + cFN + dFN2was found to accommodate a majority of the data but to be less precise than I = a + cFN.A further expression incorporating N as an independent variable was also examined,I = a + cFN2 + eN.This expression, although far from being universally adequate, proved to be generally better than existing formulae. When applied to the data of Greenhalgh et. al. (1960), it substantially reduced heterogeneity between data for spring and data for summer pastures.Causes of variation in the relationship between organic-matter intake and nitrogen in faeces, and some of the hazards of extrapolation from empirical regression relations, are discussed.


Sign in / Sign up

Export Citation Format

Share Document