Better HN
topnewbestaskshowjobs
Log inSign up

BiteCode_dev

24,628 karma · joined Oct 21, 2019 (7y ago) · 5,512 submissions

I write to save you time and effort when dealing with Python:

https://www.bitecode.dev/

Email: contact at bitecode.dev

Submissions

comment 6y ago · link · parent

Spam filters often white list any emails comming from an address in your contact list.

When you send an email, said address is often automatically added to your contact list.

So if you ever a test message the other way around, it will be white listed.

comment 6y ago · link · parent

This is super cool, and you probably have a business model here: create a proxy, allow people to pay you for it, and use it transparently with htmx.

This way they can create entire products with zero backend code by simply calling 3rd party API.

This is probably also some very nice static blog engine concept to imagine around this.

And some mix with VueJS as well.

comment 6y ago · link · parent

I think all cmd should have a "tutorial", "doc", and "quickref" subcommands.

Eg:

git quickref

This will list the most commonly used git invocations and their affect

Git quickref chekcout

This will list the most common checkout invocations.

Git doc open your browser to an offline doc html doc, etc

comment 6y ago · link · parent

If you see "quantum" in a general public health product, you know it's going to be a scam, but probably a successful one.

My mother loves those kind of things and no amount of discussion with her will create any doubt in her mind.

I can't blame people falling for this though. They have been disrespected by the traditional health institutions for so long any escape seems good to them.

You can see the same effect in politics. To an extend, the current authorities have a lot of responsability in people listening to crooks.

comment 6y ago · link · parent

Yes. More value, more effect.

comment 6y ago · link · parent

I love this one: simple, light, good Python bindings, decent cross plateform support and not hard to install.

But show an app made with it to anybody below 30 and they will call you an ancient fossil.

If something doesn't have transition and gesture nowaday, you better market it to accountants because the general public won't want it.

comment 6y ago · link · parent

That's pretty much why people created ORM for, though.

E.G: Django ORM will let you define the schema, and be the single source of truth for you DB and your REST API.

comment 6y ago · link · parent

I use a toy for 5 years old, that let you construct a 3D structure with magnets, to represent the history, and I stick colored post its on it to represent references.

Important points:

- git log and checkout must be explained in details, as they are a huge source of confusion.

- don't use the famous graphs with revert arrows, they confuse the heck of students

- explain push/pull/clone as late as you can. Most of the course should be on a local repo.

- help them setup diff tools for their particular env. It's harder than you think given the diversity of them.

- you will often have to explain ssh and key management as well. It's not git, but git is close to useless without it. For windows users, you may have to spend an hour of terminal tutorial, putty or not. Use cmder or windows terminal, not cmd.exe.

- do give them a cheat sheet, but only incrementally once they understand the concepts behind them, otherwise they will copy/paste blindly.

- teach them to have a clean working copy before some key operations, and show them why.

- make a big final exercice where they all work on the same code base and push/pull/merge from each others. Twice. Once where you help them. Once to check they can do it now without your help.

- rebase, squash and cherry pick are optional. Do them only if you have plenty of time at the end, and that the rest is well understood.

comment 6y ago · link · parent

Git is not for kids, it should be learned only by people that will need to code regularly in the future.

But, if do need to learn git, it's not hard at all.

The problem is that most people teaching git suck at it.

Git has been poorly explained since the begining of time, and because it has a terrible UI, plenty of gotchas and untold prerequisite, you can't really fiddle with it and learn it by yourself without putting a lot of efforts.

It's a shame, because it really is a simple system to use... provided you understand it, which a lot of teachers don't.

comment 6y ago · link · parent

A bit of a plug, but if you wish for something that has the Postgres reliability, the taste of nosql but with strong typing and a json output a la graphql, give a try to edge db:

https://edgedb.com

The team behind it is awesome (one is a python core dev), and it's a FOSS, but they have been using it internally for some time.

comment 6y ago · link · parent

I'm pretty sure you gain points on HN

comment 6y ago · link · parent

But the same persons would be scandalized if youtube would censor US politicians propaganda.

Because I tell you, looking at Fox News as a European, I can't understand how it qualifies as "news", yet many americans are very attached to it.

I'm sure there are plenty of chinese people that feels like Fox News viewers about their own news sources. And they think they are right just as much.

And each camp will say "you can't compare us to them because...".

It's always the same story: it's not about the truth, it's about power and believes.

comment 6y ago · link · parent

How is being a welcoming host a trick?

It's like saying serving good food and making your guest feel at home is a trick for a successful diner.

comment 6y ago · link · parent

He has intriguing diverse guests and let them do most of the speaking, for an extended period of time.

It's refreshing.

There are plenty of people I would never have listened to otherwise, because they are outside my bubble or just because they would represent something against my view of the world.

But because I also saw people I view as interesting or people I already knew from somewhere else, and because they have the time and space to elaborate, I gave the others a chance.

This allowed me to be exposed to new topics, points of views, etc, in a relaxing and human format.

Just like regular media, it's full of bullshit. But I'm full of it too.

It does, however, feel way more genuine than regular media.

comment 6y ago · link · parent

Not directly related to the content of the article, but...

There are jerks everywhere, and there always will be. Like diseases, tornadoes and mosquitoes, they are part of life.

I think our energy is better spent creating an env that empowers nice people and encourage them to defend themselves. An env that calls out bad behavior.

It's way more durable.

comment 6y ago · link · parent

Anything using fossil energy also has such hidden issues.

And you have to consider the ecosystem:

- fossil fuel engines require much more maintenance than electrical engines, and now vehicules always embed heavy electronics anyway.

- fuel need to be transported at a heavy cost, which is now hidden by the massive demand. The day we use more solar than fossil, the whole fossil infra will suddenly feels very expensive

- most countries are not like the US and don't have oil on their soil. Countries don't like to be dependant on others for critical things. You may buy solar panels (or fuel engine) from a friendly country, but if things turn out badly, people can't cut sunlight from you one the initial setup is there.

Nothing is perfect of course, but I like the solar future we are hinted at.

comment 6y ago · link · parent

Assuming vanila Firefox is not good enought (it certainly is for my 64 years old tech-clueless mother), you can try epiphany. It's barebone.

comment 6y ago · link · parent

VSCode, Firefox, KDE, tilix, cmder, the latest version of blender...

comment 6y ago · link · parent

I think there is a space for an "ublock origin" type of extension that blocks bots.

It would first start with twitter, flagging "likely a bot". Then once it gets good enougth, just hide bot tweets.

If it becomes popular enough, you can extend it to reddit, imgur, insta, facebook, etc.

This will feed the system with a lot of data, espacially usernames, emails, accounts, and IP, plus a graph of all that, that we can cross reference to detect even more bots.

Now for the ultimate goal: hide comments from bots on shopping websites, starting with amazon.

It would become a killer product.

comment 6y ago · link · parent

The reason AWK is not widespread is that it's only great for one case: working on a stream of lines. It's a pretty narrow niche.

Sure you can code anything with it, but there is always another language that will be better at this other thing, and still decent at what awk does. Awk looks more like a DSL than a generalist language.

So why learn awk to save you a few minutes for the rare cases you do need it? Just learn Python/Ruby/etc, it's a better investment, and it has a better crossplateform story.

comment 6y ago · link · parent

Never talked about frameworks.

Declarative is just a paradigm, you can use any language to design a declarative API.

Nox, pydantic and sqla are examples of it.

comment 6y ago · link · parent

You can use a normal language to well design a declarative library. That's the point.

comment 6y ago · link · parent

Honestly at this point I wouldn't care. Give me a kickstarter link with a the poll author as the champion, and I would insta send money.

I can afford a few bucks to help somebody to attempt to solve the problem. I'm even ok with failure as long as it's an honest attempt.

comment 6y ago · link · parent

I answered the poll, and said I would pay $50 for this, but never received any follow up (and I think I provided my email, I usually do in polls if they give the option).

Now I just realized that there is a github sponsor link, but it's recurring. I don't want recurring. I want to send $50 once.

comment 6y ago · link · parent

Yeah, you may debug the result of your declarations if introspection is ok, but god has mercy if the error is at the runtime level.

comment 6y ago · link · parent

A lot of people are asking:

- why python?

- isn't is slow?

Remember that Python is a language spec, there are several implementations.

This project uses a particular implementation called CircuitPython ( https://en.wikipedia.org/wiki/CircuitPython), a derivative project from MicroPython ( https://fr.wikipedia.org/wiki/MicroPython), by the people at AdaFruit.

This implementation runs with a very different VM that can fit within 256k of code space and 16k of RAM.

So, while obviously you cannot expect anywhere near C level of perfs, this is way lighter than CPython.

The advantage is that you get the ease of Python to program your board, including the clean terce language, the memory management and the rich data structures. You can even have a live shell on some embeded hardwares! The whole dev process is so simple: code, copy your module, run.

Of course, some features of CPython are not available.

comment 6y ago · link · parent

Declarative is great, and I wish more people created clean declarative API with regular languages instead of writting yet another DSL.

But remember that the problem with a declarative syntax, is that it needs a runtime, which typically the end user doesn't touch. And if the runtime doesn't take into consideration one use case, the user is stuck. Don't forget to provide an escape hatch.

comment 6y ago · link · parent

Yes but this require the entire runtime to be designed that way from the start.

It cannot be applied to legacy languages.

Just like you could not add a borrow checker to C without creating 2 worlds in the C community. But you can design Rust with this in mind.

A design always has a context.

Also, make a giant coroutine has a performance price, because any line is a potiential context switching.

comment 6y ago · link · parent

Field reports are meant to replan the remaining work. That's the whole purpose of field reports.

But I understand what you mean: too many people use it to track activity, not as input for the agile loop.

1
164165166
184