
★
The Stonewall Inn
will byers stan first human second
Sade Olutola

gracie abrams
🩵 avery cochrane 🩵
h
Not today Justin
sheepfilms

oozey mess
PUT YOUR BEARD IN MY MOUTH

Love Begins
ojovivo
tumblr dot com

Andulka
he wasn't even looking at me and he found me
$LAYYYTER
2025 on Tumblr: Trends That Defined the Year

seen from Kosovo
seen from United States

seen from United States

seen from United States

seen from United States
seen from United States
seen from United States

seen from United States
seen from United States
seen from United States

seen from United States
seen from Germany

seen from United States
seen from United States
seen from United States
seen from Russia
seen from United States

seen from Saudi Arabia

seen from United States
seen from United States
@atbrox

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Lua-based development kits for mobile (iOS,Android)
Lua is perhaps the way to go for scripting on mobile, here are a few toolkits for developing mobile apps (and games):
Corona SDK -Â http://www.anscamobile.com/corona/
Moai -Â http://getmoai.com/Â (opensource)
Gideros -Â http://www.giderosmobile.com/
Best regards,
Amund
http://atbrox.com/about/

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Truly Automatic Refactoring of Python - a possible recipe?
This could be a useful thing to automate:
Finding duplicate code with PMD, or even BETTER - rewrite code to use unified names of variables (think Prolog-like unification) in order to find more duplicates, e.g. def foo(name="") and def bar(zoo="") would actually be dups if they were unified to e.g. def function0(var0="") (assuming the function bodies are equal - when unified - though).
Reduce duplicate code by using truly automated refactoring, this could be done by using the Rope refactoring library and empirically trying to do extract method on dups (i.e. if it succeeds the other corresponding dup(s) could be replaced by function calls). This algorithm that tries to extract methods from variable line spans of code can measure the efficiency of the refactoring in number of lines saved (this is probably a dynamic programming problem since there can be overlaps between potential function extractions). But naming of the new functions and variables are way harder to do, any suggestions?Â
Result: a lot of dups removed?
Related - Example of method extraction with Rope:
source: https://bitbucket.org/agr/rope/src/bd22278f36bb/ropetest/refactor/extracttest.py
import unittest import rope.base.codeanalyze import rope.base.exceptions import ropetest.testutils as testutils from rope.refactor import extract from ropetest import testutils class ExtractMethodTest(unittest.TestCase): def setUp(self): super(ExtractMethodTest, self).setUp() self.project = testutils.sample_project() self.pycore = self.project.pycore def tearDown(self): testutils.remove_project(self.project) super(ExtractMethodTest, self).tearDown() def test_simple_extract_function(self): code = "def a_func():\n print('one')\n print('two')\n" start, end = self._convert_line_range_to_offset(code, 2, 2) refactored = self.do_extract_method(code, start, end, 'extracted') expected = "def a_func():\n extracted()\n print('two')\n\n" \ "def extracted():\n print('one')\n" self.assertEquals(expected, refactored)
What do you think of this (potential) approach?
Best regards,
Amund Tveit
http://atbrox.com/about/
Small advice for Test-Driven Development (in Python)
Test-Driven Development, or the more undefined Test-Heavy Development works fine, but sometimes it can be annoying jumping between code and tests (even with a nice IDE like Pycharm and testing tools like py.test or nosetest).
Two ways to avoid this (small annoyance) are:
Use doctests - which are tests in the comment beneath the function declaration, i.e. keeps code and tests in the same file. This works nicely in the beginning of a project, but tends to get very messy to maintain and clutters the look of the source file.
Write the actual code within the unit test file, and when it works - "upgrade it" it to the source file (and keep the test), this way you can edit only in one file while making the function work. If you combine this with mockito you can also test integration of the function you're creating before it is "born" (or appears in the main source file).
Best regards,
Amund Tveit (twitter.com/atveit/)
http://atbrox.com/about/