Skip to content

Instantly share code, notes, and snippets.

View mottalrd's full-sized avatar

Alfredo Motta mottalrd

View GitHub Profile
@mottalrd
mottalrd / event_sourcing_intro.rb
Last active November 2, 2023 21:47
An introduction to event sourcing, London Ruby User Group, 9th May 2018
module Commands
module Meeting
AcceptSchema = Dry::Validation.Schema do
required(:user_id).filled
required(:status).value(eql?: :scheduled)
end
class Accept < Command
def call
return validate if validate.failure?
@mottalrd
mottalrd / ICSE_2017_bookmarks
Last active August 5, 2017 16:10
Some interesting papers from the 39th international conference on Software engineering - ICSE '17
@article{Ko2017,
abstract = {—This paper presents a three-year participant observation in which the author acted as CTO of a software startup, spanning more than 9,000 hours of direct experience. The author's emails and diary reflections were analyzed and synthesized into a set of nine claims about software engineering work. These claims help shape software engineering research, practice, and education by provoking new questions about what makes software engineering difficult.},
author = {Ko, Andrew J},
doi = {10.1109/ICSE-SEIP.2017.29},
file = {:Users/motta/Mendeley/2017 - Ko - A Three-Year Participant Observation of Software Startup Software Evolution Implications for Theory and Practice.pdf:pdf},
isbn = {978-1-5386-2717-4},
journal = {Proceedings of the 39th international conference on Software engineering - ICSE '17},
keywords = {- management,human factors,project management},
pages = {1--23},
title = {{A Three-Year Participant Observation of Software Startup Software Evolution : Implications for Theory a
@inproceedings{Oosterwaal:2016:VCC:2950290.2983929,
author = {Oosterwaal, Sebastiaan and Deursen, Arie van and Coelho, Roberta and Sawant, Anand Ashok and Bacchelli, Alberto},
title = {Visualizing Code and Coverage Changes for Code Review},
booktitle = {Proceedings of the 2016 24th ACM SIGSOFT International Symposium on Foundations of Software Engineering},
series = {FSE 2016},
year = {2016},
isbn = {978-1-4503-4218-6},
location = {Seattle, WA, USA},
pages = {1038--1041},
numpages = {4},
@mottalrd
mottalrd / gist:7ddfd45d14bc7433dec2
Last active March 29, 2022 07:38
Evan Miller source code for sample size from my blog post http://www.alfredo.motta.name/ab-testing-from-scratch/
function num_subjects(alpha, power_level, p, delta) {
var t_alpha2 = ppnd(1.0-alpha/2);
var t_beta = ppnd(power_level);
var sd1 = Math.sqrt(2 * p * (1.0 - p));
var sd2 = Math.sqrt(p * (1.0 - p) + (p + delta) * (1.0 - p - delta));
return (t_alpha2 * sd1 + t_beta * sd2) * (t_alpha2 * sd1 + t_beta * sd2) / (delta * delta);
}
@mottalrd
mottalrd / fse_2015_favourites
Created November 20, 2015 18:16
My favourite papers at ESEC/FSE 2015
Filieri, A., Hoffmann, H., & Maggio, M. (2015). Automated multi-objective control for self-adaptive software design. In Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering - ESEC/FSE 2015 (pp. 13–24). New York, New York, USA: ACM Press. doi:10.1145/2786805.2786833
Chen, F., & Kim, S. (2015). Crowd debugging. Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering - ESEC/FSE 2015, 320–332. doi:10.1145/2786805.2786819
Ernst, N. A., Bellomo, S., Ozkaya, I., Nord, R. L., & Gorton, I. (2015). Measure it? Manage it? Ignore it? software practitioners and technical debt. In Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering - ESEC/FSE 2015 (pp. 50–60). New York, New York, USA: ACM Press. doi:10.1145/2786805.2786848
Shi, A., Yung, T., Gyori, A., & Marinov, D. (2015). Comparing and Combining Test-Suite Reduction and Regression Test Selection. In Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering - ESEC/
@mottalrd
mottalrd / fse_2014_favourites
Last active August 5, 2017 16:11
Foundations of Software Engineering favourites
@inproceedings{Mazinanian2014,
author = {Mazinanian, Davood and Tsantalis, Nikolaos},
booktitle = {Proceedings of the 22nd International Symposium on Foundations of Software Engineering (FSE)},
file = {:Users/motta/Mendeley/2014 - Mazinanian, Tsantalis - Discovering Refactoring Opportunities in Cascading Style Sheets.pdf:pdf},
title = {{Discovering Refactoring Opportunities in Cascading Style Sheets}},
year = {2014}
}
@inproceedings{Filieri2014,
author = {Filieri, Antonio and Pasareanu, Corina S. and Visser, Willem and Geldenhuys, Jaco},
booktitle = {Proceedings of the 22nd International Symposium on Foundations of Software Engineering (FSE)},