1,787 karma · joined Oct 29, 2013 (13y ago) · 405 submissions
author: The Tao of tmux (https://leanpub.com/the-tao-of-tmux) available to read for free online at https://leanpub.com/the-tao-of-tmux/free
software libraries: cihai, unihan-etl, tmuxp, libtmux, vcspull, libvcs
tony (at) git-pull.com
https://www.git-pull.com
(If what I say isn't helpful to you, disregard it. Spread the good will and good tidings!)
comment 8y ago · link · parent
Created new design for all my open source projects: https://www.git-pull.com (see sidebar at left, e.g. https://libtmux.git-pull.com)
Rebooted CJK (Chinese, Japanese, Korean) language project, cihai: https://cihai.git-pull.com (see also: https://unihan-etl.git-pull.com). Needs funding.
New docutils based website started, https://devel.tech. Example: https://devel.tech/features/django-vs-flask/
I catalog open source contributions I make while working on the website at https://devel.tech/site/open-source
Updates to https://www.hskflashcards.com. Switching from Bootstrap 4 to Bulma
comment 8y ago · link · parent
Checkout the pipeline operator: https://github.com/babel/proposals/issues/29 (https://github.com/tc39/proposal-pipeline-operator)
That's some cutting-edge stuff. I wouldn't want to use it until it was official, but it's cool to have the opportunity to try TC39 (https://github.com/tc39) proposals via babel. In addition to the normal compiler usage for the latest standards.
> We received a $1k/month donation from Facebook Open Source!
> This the highest monthly donation we have gotten since the start (next highest is $100/month).
When I read this, I kind of mumbled to myself, "that's all?"
It goes to show how poorly funded open source projects are. We rely on these tools, file issues, and want them to work, yet there isn't enough to even pay someone to work on it full time.
https://twitter.com/ShiyaLuo/status/931230821976907776
> Engineer: There's a thing we need in babel, can I spent 2 days with a PR for it
> Company: lol no it's their job
Yep, the problem is cultural. The whole system of reciprocity is out of whack. The system would work more smoothly if more people took on responsibilities, QA'd, contributed patches. Give engineers a % of time to contribute back to the libraries they use.
And yea, contributing back upstream to libraries isn't always glorious as releasing your own stuff, but it's part of what open source is. These big companies (not naming names) would rather make totally new projects than pitch in maintaining current ones. I admit it, it's not fun to do, but it's necessary.
> TL;DR: use babel-preset-env
This is convenient.
comment 8y ago · link · parent
The author of the article also made this: https://pixelart.academy/
YouTube: https://www.youtube.com/user/Retronator48k/videos
Just impressive. I anticipate good things happening in the author's future.
comment 8y ago · link · parent
Building large software centered around web requests and responses make immutability and type checking more of a hindrance than a help. Stuff needs to be tweaked and changed, and in many frameworks there are request and response objects that are inherently mutable from the ground up. As a feature, not a bug (e.g. request middleware, template context middleware, so on).
There's kind of a pipeline going on with the request/response process. So in my experience doesn't fit well with the typesafe / immutable nature of web apps. Type safety always feels like it's effective, but I've found it's only piece of mind sometimes.
That said, if it's something you insist on, I hear great things about golang. Web apps I played with compiled as fast as it takes a Django web server to start.
Test coverage in duck typed languages goes pretty far. And I understand the cognitive dissonance early on. But these web-specific languages are really handy if you're just doing a website.
This is just my opinion, but I think something more like PHP, Ruby, and Python gives you more velocity and better tooling. Even on Windows. If you use the Python Support for Visual Studio plugin, there's even a template for Django: https://docs.microsoft.com/en-us/visualstudio/python/templat...
Even though Python has stuff like mypy (type safety annotations), I don't think they're worth it for web apps. It's hard to meet the case unless you have >25k lines of code. And it's harder than it looks to get that big with a duck-typed language with solid frameworks.
The other benefit with Python is it's a generalist language that's pretty popular outside of web development.
Oh, and one more thing: No compile times. It's nice to have a nearly instantaneous feedback loop when you're working on a website.
comment 8y ago · link · parent
Here are some clickables of SunSed:
- https://www.sunsed.com/pricing
- https://www.sunsed.com/tags/s A list of builtin tags for Sundown
I am fine with a new markup if it's quick and to the point. I believe that we need to give the markdown/reStructuredText things a fresh look. At the very least, we may come up with ideas to improve existing languages.
Are you planning on opening the source to Sundown? What's the current implementation running in? (golang, python, c, etc?)
Some of the other commenters are mentioning markdown being fast. This is probably true. Since there are processors for markdown in C. Actually, when I first glanced the title, I thought it was https://github.com/vmg/sundown.
In any event, that's just a naming issue. The bigger point is, I think the overall project at SunSed looks pretty cool. Simple markup turns into a nice website. Congratulations on having the website up!
comment 8y ago · link · parent
That means, now I have to divert time to maintaining my own fork.
The funny thing is I'm the person doing the heavy lifting. I make the fixes, write the tests, make sure CI passes and older versions don't break, even update the change log. Everything to assure stuff is in order. All they have to do is accept the pull request and publish the package.
In my specific situation though, I was able to merge the PR to master. But had no PyPI access to publish the package.
comment 8y ago · link · parent
If you're a startup, it's tempting for many founders to go in headfirst with a Vue or React. In my opinion, it's rarely necessary, and in the end a lot of the stuff has to be thrown out if underlying foundations change. I see it as web development's version of premature optimization.
On the other hand, when I kept all my work in django templates, erb, blade, etc. and just script JS by hand, there's less of a penalty when the data flow changes. When I was using a JS framework, the refactoring was so painful I seriously considered throwing the whole thing out and starting from scratch. Heh, I'd have been better off not buying in so early on.
As a stop-gap, I'm using pjax. (https://github.com/defunkt/jquery-pjax)
My plan is after stuff is solid and in production and the product/service/business is moving forward, taking an incremental approach to moving to vue/react/etc.
P.S. kudos to react for removing the patent stuff in v16.
comment 8y ago · link · parent
See also: https://github.com/jonathanslenders/ptpython, https://github.com/jonathanslenders/pymux, https://github.com/jonathanslenders/pyvim
comment 8y ago · link · parent
And there was more optimism toward the concept of creating a widget toolkit and a webview mobile app. And while to an extent - we embrace that now in some form - it didn't work so well the first go around [1]. Media queries becoming a normal practice and CSS frameworks made jQuery Mobile feel clunky. Heavy duty mobile apps went native - and I can't know where they are now.
For jQuery UI, over time, the theming got a bit old. And stuff like "Buttons" (https://jqueryui.com/button/), you can already get via CSS. Most CSS frameworks, for that matter, do a lot of the widgets with far less JS, if any at all.
I'll miss them. They were a stepping stone in getting us to where we are now.
[1] https://techcrunch.com/2012/09/11/mark-zuckerberg-our-bigges...
comment 8y ago · link · parent
Django, a highly competitive web framework. With great extensions like Django REST Framework. Assets with django-webpack-loader. So on. It may not be as good as Laravel or Rails, but they're all really active.
But the thing that makes Python best is the web framework is where it begins, not where it ends:
Want text analysis? NLTK or spaCy
Data? Pandas, numpy, pytables
Want more analysis? scikit-learn, tensorflow, theano.
Solid language standards? PEP8 and PEP257 makes most python code you see in open source very conformant
Test framework? pytest. And its plugins. tox for testing against a matrix of python versions/settings (kinda like Travis).
Handling environments + packages easily? pipenv
Multiple python versions? pyenv
Editor integration? Jedi + python-mode for VIM, VSCode, Atom, Python
Images / Graphics? pillow
Super-powered REPL? ptpython
Deployment? Fabric, Ansible, Saltstack
Documentation? Sphinx, Docutils
Want C/C++ integration/performance? pybind11, cython, CFFI, swig
Mobile dev? kivy (though I wouldn't say it's the best yet, when I tried it, setup was easier than react-native)
And that's just scratching the surface. Python has high quality, permissively-licensed libraries, with solid documentation. A lot of the plugins I mentioned above for handling data use C-level speedups. Of these, tensorflow, and Theano can use GPU speedups.
Rails is fantastic. I like guard and the asset pipeline. But I just learned to use GNU Make's "$ make -j task1 task2" and django-webpack-loader. I also hear good things about Laravel in PHP.
comment 8y ago · link · parent
Solarian programmer seems to be a talented C++ coder.
Thanks for the projects.
The Docker post was a niche thing. There's other posts for getting a system running with Clang 5 on other platforms: https://solarianprogrammer.com/2017/12/13/linux-wsl-install-.... Another cool post about C++17 and raspberry pi a few days earlier: https://solarianprogrammer.com/2017/12/08/raspberry-pi-raspb...
Sure, I wouldn't use Clang in a Docker container (heh). But there are some points. If building from LLVM+Clang from source, installing files/headers and such can mess up systems royally. One docker container could theoretically test drive clang everywhere without mucking up a system.
comment 8y ago · link · parent
> The Lambda free tier includes 1M free requests per month and 400,000 GB-seconds of compute time per month.
> The Lambda free tier does not automatically expire at the end of your 12 month AWS Free Tier term, but is available to both existing and new AWS customers indefinitely.
(emphasis added)
That is awesome. Providing you could get your application compatible with lambda. This application may help for WSGI-based (python) applications: https://github.com/Miserlou/Zappa
More on AWS Lambda: https://aws.amazon.com/lambda/
comment 8y ago · link · parent
It lets you run a local stripe API on your machine. I've got high hopes in it. This could be the cure to building resilient stripe tests on local machines.
The maintainer @brandur seems to know his stuff in regards to rest apis.
comment 8y ago · link · parent
In practice, you'll be so busy seeing the forest for the trees, tackling the business case at hand, you'll rarely be fussing over textbook definitions.
Often, when I see someone focusing too much on book smarts and interviewing in itself it's a sign they may need to put their reading and memorization into practice more. This is why I'm skeptical of job interviews - these things cater toward those who memorize them (likely fresh out of college), not devs on the field of battle shipping stuff for a few years.
Memorizing arbitrary stuff out of a text book when you have libraries already there and deadlines? Come on. In the rare event you need to write your own thing, you'll ask the manager for time to clear up airspace and study not from the textbook, but other's successful implementations, at a time when it actually matters.
Here's how I'd improve it: find implementations of linked lists, queues, stacks, graphs, and whatever in programming languages, their standard libraries, and community frameworks. Show people the utility, have them conceptualize it internally, rather than memorize it.
Here are some off the top of my head:
Something broad and standardized, templated containers of data structures, like C++'s stdlib and its vector, map, and so on. Last time I checked chromium's source tree, std:: was everywhere: https://cs.chromium.org/search/?q=std::+package:chromium&sq=...
Something low-level and cool, like Python's timsort: https://svn.python.org/projects/python/trunk/Objects/listsor.... (Java actually ended up borrowing that: https://github.com/openjdk-mirror/jdk7u-jdk/blob/master/src/...)
Something high-level, for instance, django-treebeard's approaches toward handling hierarchies in Django. In this package, adjacency lists (https://en.wikipedia.org/wiki/Adjacency_list) are carried over not just to relational databases, but an ORM system. (https://django-treebeard.readthedocs.io)
comment 8y ago · link · parent
There is a fork with Python 3 support: https://github.com/mathiasertl/fabric/
If you use fabtools, I maintain a fork of it for fabric3: https://github.com/develtech/fabtools/tree/fabric3
comment 8y ago · link · parent
Bootstrapping solo-founder, open source programmer, and author seeking supplemental income to keep the lights on :)
Remote: Yes
Willing to relocate: No
Technologies: Django, Python, Linux, Javascript (ES5+6), Backbone, webpack, sass, spaCy, DRF, reStructuredText, AWS, Postgres, SQLAlchemy, handlebars/mustache, jinja2, Some C++.
Email: See GH/portfolio
CV: https://stackoverflow.com/story/tony
Portfolio: https://www.git-pull.com
Github: https://github.com/tony
Publications: https://leanpub.com/the-tao-of-tmux
Sample sites: https://devel.tech, https://www.hskflashcards.com
Sample projects: https://cihai.git-pull.com, https://tmuxp.git-pull.com, https://unihan-etl.git-pull.com
comment 8y ago · link · parent
Remote: Yes
Willing to relocate: No
Technologies: Django, Python, Linux, Javascript (ES5+6), Backbone, webpack, sass, spaCy, DRF, reStructuredText, AWS, Postgres, SQLAlchemy, handlebars/mustache, jinja2, Some C++.
Email: See GH/portfolio
CV: https://stackoverflow.com/story/tony
Portfolio: https://www.git-pull.com
Github: https://github.com/tony
Publications: https://leanpub.com/the-tao-of-tmux
Sample sites: https://devel.tech, https://www.hskflashcards.com
Sample projects: https://cihai.git-pull.com, https://tmuxp.git-pull.com, https://unihan-etl.git-pull.com
139.
The Power of Tmux Hooks(devel.tech ↗)
125 points · by tony · 8y ago · 29 comments