<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Strategies - Tag - My Notes</title><link>https://blog.emecas.net/tags/strategies/</link><description>Strategies - Tag - My Notes</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Wed, 17 Apr 2024 00:52:45 +0000</lastBuildDate><atom:link href="https://blog.emecas.net/tags/strategies/" rel="self" type="application/rss+xml"/><item><title>mementum/backtrader</title><link>https://blog.emecas.net/posts/2024-04-17-mementum-backtrader/</link><pubDate>Wed, 17 Apr 2024 00:52:45 +0000</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2024-04-17-mementum-backtrader/</guid><description><![CDATA[<p>mementum/backtrader<br>
Python Backtesting library for trading strategies<br>
Python repository by mementum, created in 2015, with 23,714 stars and 5,324 forks. License: GPL-3.0. Starred on 2024-04-17.<br>
Homepage: <a href="https://www.backtrader.com" target="_blank" rel="noopener noreffer ">https://www.backtrader.com</a><br>
<a href="https://github.com/mementum/backtrader" target="_blank" rel="noopener noreffer ">https://github.com/mementum/backtrader</a></p>
<hr>
<p><em>Source: starred on GitHub on 2024-04-17: <a href="https://github.com/mementum/backtrader" target="_blank" rel="noopener noreffer ">mementum/backtrader</a>.</em></p>]]></description></item><item><title>Community Outreach References</title><link>https://blog.emecas.net/posts/2022-07-23-community-outreach-references/</link><pubDate>Sat, 23 Jul 2022 23:33:48 +0000</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2022-07-23-community-outreach-references/</guid><description><![CDATA[<p>Community Outreach References<br>
References:</p>
<p>1.  Guide to Devising Great Community Outreach Strategies That Win Big<br>
<a href="https://callhub.io/community-outreach-strategies/" target="_blank" rel="noopener noreffer ">https://callhub.io/community-outreach-strategies/</a></p>
<p>2. Using Metrics to Track Community Outreach Progress<br>
<a href="https://www.d.umn.edu/~rdavis/courses/che3791/Green/notes/Community%20Outreach.pdf" target="_blank" rel="noopener noreffer ">https://www.d.umn.edu/~rdavis/courses/che3791/Green/notes/Community%20Outreach.pdf</a></p>
<p>3. Evaluating Community Outreach Efforts: A Framework and Approach Based on a National Mental Health Demonstration Project<br>
<a href="https://easacommunity.org/files/Evaluating_Community_Outreach_Efforts.pdf" target="_blank" rel="noopener noreffer ">https://easacommunity.org/files/Evaluating_Community_Outreach_Efforts.pdf</a><br>
<a href="http://www.jmde.com/" target="_blank" rel="noopener noreffer ">http://www.jmde.com/</a> Articles<br>
Journal of MultiDisciplinary Evaluation, Volume 8, Number 17<br>
ISSN 1556-8180<br>
January 2012<br>
46</p>
<p>4. 10 ways to measure your community engagement<br>
<a href="https://engagementhub.com.au/community-engagement/10-ways-measure-community-engagement/" target="_blank" rel="noopener noreffer ">https://engagementhub.com.au/community-engagement/10-ways-measure-community-engagement/</a></p>]]></description></item><item><title>7 Popular Unit Test Naming Conventions</title><link>https://blog.emecas.net/posts/2020-04-29-7-popular-unit-test-naming-conventions/</link><pubDate>Wed, 29 Apr 2020 18:54:24 -0400</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2020-04-29-7-popular-unit-test-naming-conventions/</guid><description><![CDATA[<p>7 Popular Unit Test Naming Conventions<br>
<a href="https://dzone.com/articles/7-popular-unit-test-naming" target="_blank" rel="noopener noreffer ">https://dzone.com/articles/7-popular-unit-test-naming</a></p>
<p>1. MethodName_StateUnderTest_ExpectedBehavior: There are arguments against this strategy that if method names change as part of code refactoring 	than test name like this should also change or it becomes difficult to comprehend at a later stage. Following are some of the example:<br>
isAdult_AgeLessThan18_False<br>
withdrawMoney_InvalidAccount_ExceptionThrown<br>
admitStudent_MissingMandatoryFields_FailToAdmit<br>
2. MethodName_ExpectedBehavior_StateUnderTest: Slightly tweeked from above, but a section of developers also recommend using this naming technique. This technique also has disadvantage that if method names get changed, it becomes difficult to comprehend at a later stage. Following is how tests in first example would read like if named using this technique:<br>
isAdult_False_AgeLessThan18<br>
withdrawMoney_ThrowsException_IfAccountIsInvalid<br>
admitStudent_FailToAdmit_IfMandatoryFieldsAreMissing<br>
3. test[Feature being tested]: This one makes it easy to read the test as the feature to be tested is written as part of test name. Although, there are arguments that the “test” prefix is redundant. However, some sections of developer love to use this technique. Following is how the above tests would read like if named using this technique:<br>
testIsNotAnAdultIfAgeLessThan18<br>
testFailToWithdrawMoneyIfAccountIsInvalid<br>
testStudentIsNotAdmittedIfMandatoryFieldsAreMissing<br>
4. Feature to be tested: Many suggests that it is better to simply write the feature to be tested because one is anyway using annotations to identify method as test methods. It is also recommended for the reason that it makes unit tests as alternate form of documentation and avoid code smells. Following is how tests in first example would read like if named using this technique:<br>
IsNotAnAdultIfAgeLessThan18<br>
FailToWithdrawMoneyIfAccountIsInvalid<br>
StudentIsNotAdmittedIfMandatoryFieldsAreMissing<br>
5. Should_ExpectedBehavior_When_StateUnderTest: This technique is also used by many as it makes it easy to read the tests. Following is how tests in first example would read like if named using this technique:<br>
Should_ThrowException_When_AgeLessThan18<br>
Should_FailToWithdrawMoney_ForInvalidAccount<br>
Should_FailToAdmit_IfMandatoryFieldsAreMissing<br>
6. When_StateUnderTest_Expect_ExpectedBehavior: Following is how tests in first example would read like if named using this technique:<br>
When_AgeLessThan18_Expect_isAdultAsFalse<br>
When_InvalidAccount_Expect_WithdrawMoneyToFail<br>
When_MandatoryFieldsAreMissing_Expect_StudentAdmissionToFail<br>
7. Given_Preconditions_When_StateUnderTest_Then_ExpectedBehavior: This approach is based on naming convention developed as part of Behavior-Driven Development (BDD). The idea is to break down the tests into three part such that one could come up with preconditions, state under test and expected behavior to be written in above format. Following is how tests in first example would read like if named using this technique:<br>
Given_UserIsAuthenticated_When_InvalidAccountNumberIsUsedToWithdrawMoney_Then_TransactionsWillFail</p>]]></description></item></channel></rss>