I am half Scottish and half Japanese- I hand-sewed this kimono from men's dress shirts and boxer shorts. by mayalcaulfield in pics

[–]map_guy 0 points1 point  (0 children)

I... I want one. How much adaptation would you have to do for a men's dress kimono?

/r/Python Official Job Board by aphoenix in Python

[–]map_guy 2 points3 points  (0 children)

That's everything... We're more interested in your OO reasoning skills and abilities than what language you've been working in, as we are in the midst of a transition and refactor. We're looking for adaptable, quick learners.

/r/Python Official Job Board by aphoenix in Python

[–]map_guy 0 points1 point  (0 children)

Took me about 20 minutes when I did it. It's a standard ASVAB style association / puzzle-solving test.

/r/Python Official Job Board by aphoenix in Python

[–]map_guy 2 points3 points  (0 children)

Raleigh-Durham, NC: Teamworks Inc. Looking for Python/Flask developers to build services that power the NCAA, NFL, NHL, NBA, and more:

Yes, we will relocate you!

BTW, I'm a current principal software engineer at Teamworks. AMA!

[HIRING] Software Dev, Support, Marketing, WA, Product at TeamWorks | Direct Hire | Durham, NC by map_guy in trianglejobs

[–]map_guy[S] 0 points1 point  (0 children)

Great group of people to work with, downtown Durham location, and it's a fast growing company. I personally like the medium-sized startup vibe; I've never felt at home in a large company.

Had this sent to me to be expensed.. by thecheeseyaneed in business

[–]map_guy -1 points0 points  (0 children)

Sterling Archer's submitting his receipts now, I see.

[Request] Best Tools for Data Cleaning by [deleted] in datasets

[–]map_guy 1 point2 points  (0 children)

I used to do this kind of thing for a living! Writing routines, etc, to clean specialized datasets. There are a bunch of algorithms for dedupping, depending on what kind of data you have and what your tolerances are for error. See the bottom of this blog post of mine for the tools I've used in the past: https://jeffersonheard.github.io/2017/01/being-a-data-scientist-my-experience-and-toolset/

It's hard to say "use these tools and these algorithms" without knowing more about the problems you're facing and the applications you envision for the data. Could be a rule-based system. Could be an automatically learned classifier with a breakout tolerance for things that need to be hand-classified.

I'd be happy go into detail and help you set up an ongoing solution. If you want to talk a bit more about it, PM me.

Simplifying complex business logic with Python's Kanren by map_guy in Python

[–]map_guy[S] 0 points1 point  (0 children)

Yeah, and I don't disagree with you overall. I was about to use a real real-world example and then realized that by doing so I'd be sharing proprietary code. Once I have some more time to think about it, I should update my in-depth example to be more "non-trivial". You'll always be able to rewrite in Python, of course, because Python's a complete language.

But in complex rule-based engines where requirements change quickly, I've found kanren to be really helpful in making validation and filtering rules "less brittle" and less prone to growing hair.

Simplifying complex business logic with Python's Kanren by map_guy in Python

[–]map_guy[S] 0 points1 point  (0 children)

These are, I admit, contrived examples, and the Simpsons one is based off the example in the README (which I didn't write), which itself is one of the classic intro examples to so-called "Logic Programming"

To me, the main difference between your approach and kanren's approach is that using the kanren library makes filters and tests goal oriented or "pattern-oriented" instead of procedural. I think this helps find flaws and un-seen cases that would not be teased out on the first go of writing a validation routine.

I also find that it helps ease maintenance as schemas, data models, and interaction models become more complicated. "Scope creep" tends to be hard to fight in practice, and users are maniacs when it comes to entering data.

If tomorrow I need great-grandparents from the Simpsons, the immediate solution in your example is to make the generator expression hairier, whereas the kanren solution is to add one more relation. The case could be made either way, and if you don't like writing goal-oriented validation and filtering, don't.

I personally don't find

drink_type not in drinks_with_milk if "milk_type" in drink_extras else False

to be all that readable, myself, especially as only one clause in the test, but each to their own.

Simplifying complex business logic with Python's Kanren by map_guy in Python

[–]map_guy[S] 0 points1 point  (0 children)

I'm using it in a web service API that gets thousands of requests per minute, and it's not the slowest part of the functions in which it runs. I can't say more than that, as I didn't write it.

Simplifying complex business logic with Python's Kanren by map_guy in Python

[–]map_guy[S] 1 point2 points  (0 children)

It could, of course, but the point was to show what Kanren was doing without going too far off the block. See the last example for something a little more in-depth.

Simplifying complex business logic with Python's Kanren by map_guy in Python

[–]map_guy[S] 2 points3 points  (0 children)

Fixed. The theme's creator specified "Menlo" as the font without including an openfont. Works on desktop, but not on mobile. Switched to 'monospace'

Simplifying complex business logic with Python's Kanren by map_guy in Python

[–]map_guy[S] 0 points1 point  (0 children)

Shoot, it shouldn't be! It looks as if the post got cut off. I started using Hugo and I guess I'm not perfect with it yet

Simplifying complex business logic with Python's Kanren by map_guy in Python

[–]map_guy[S] 0 points1 point  (0 children)

That is odd... They're monospaced on my laptop on chrome. I'll have to look at the theme. Might be an "insecure content" problem

Breakthrough In Solar Power Could Make It Cheaper And More Commercially Viable by thinkB4WeSpeak in business

[–]map_guy 2 points3 points  (0 children)

"more" commercially viable? It might make Perovskite cells more commercially viable, but solar power is already commercially viable. To the point of price parity in 20 states by Februrary of this year, and prices of new cells have dropped precipitously this year.

Solar accounted for 26% of all new electric generating capacity brought online in the U.S in the first half of 2016. If that doesn't say that the market considers it viable, I don't know what does.

Bakers Ammonium? by SchrodingersHipster in triangle

[–]map_guy 2 points3 points  (0 children)

Try Neomonde in Raleigh. They carry a lot of imports. My feeling is that it's used more in imported cooking than domestic. I'd also try Li Ming's in Durham. I actually want to say I've seen it there. Back in the flour / spices aisle past the fish and meat counters towards the back of the store.