HNHacker News
TopNewBestAskShowJobs

jcubic

1,111 karma · joined April 11, 2011

Jakub T. Jankiewicz twiter: @jcubic www: http://jcubic.pl/me

I'm mostly Front-End Developer, I do Open Source and I'm also Wikipedia Editor and Blog author.

[ my public key: https://keybase.io/jcubic; my proof: https://keybase.io/jcubic/sigs/SNxeHIzd0GmaQTchY2dLDsnmgTTPHj2rDgnKTMIvRfw ]

submissionscomments
jcubic··on Ask HN: Can I see your cheatsheet?
I completely forget that I have this function in my dot files:

doc () { curl "https://cheat.sh/$1" | less }

jcubic··on Second Factor Authentication
I just needed to login to Polish Gov site to do my taxes, and the app do just that. The gov site showed QR Code that I've scanned with an app. That was password protected and it automatically let me in. Imagine all apps work like this. You login to app and scan the code. But password managers works with stuff that's already there (passwords).
jcubic··on Rant HN: Next.js and Gatsby are not static site generators
The Wikipedia articles about the subject are very poor, probably because there are no good developers that know the subject well that are also Wikipedians.

I've tried to correct the thing and added this:

https://en.wikipedia.org/wiki/Server-side_scripting#Server-s...

I've also reported the issue to some Wiki Project but there where no reply.

But it's really bad because of this: https://en.wikipedia.org/wiki/Web_template_system#Static_sit...

Instead of rant, why not fix Wikipedia and write proper articles for Server Side Generation and Server Side Rendering or whatever is needed.

jcubic··on Ask HN: Do you pull and run code as part of code review?
In my last project at the current job, I've had one team member that always pulled the code and check it locally. And that from my experience was best code review that I've ever had. He sometimes found a bug in my code, because of something that I didn't tested, even before go to dev env and tested properly by QA.

No one else in the team was doing the same including myself. I'm not exactly sure but maybe part of the reason was that he was not much familiar with the code base, and checking if it works was the way to test if the code is correct.

jcubic··on Ask HN: The book that did it for you in math and/or CS?
* The Art of Unix Programming

* Code Reading: The Open Source Perspective

* SICP

jcubic··on Ask HN: Single-person creations that have stood the test of time?
My jQuery Termial: https://terminal.jcubic.pl/ library. It started more the 10 years ago. It's written in ES5, I didn't wanted to do that, but I'm thinking about creating version 3.0 that would be a rewrite in latest JavaScript or TypeScript.
jcubic··on Ask HN: Single-person creations that have stood the test of time?
There is video version of this paper:

https://www.pldi21.org/prerecorded_hopl.11.html

jcubic··on Set up a practically free CDN
You can get literally Free CDN using GitHub repo:

https://gist.github.com/jcubic/a8b8c979d200ffde13cc08505f7a6...

jcubic··on See how DMARC, SPF, and DKIM work interactively
If you don't mind using jQuery Based Terminal[1] library. You can do almost everything (except I don't know how to create floating domain animation). You can think about jQuery Terminal as a framework. You don't need ReactJS or Angular for this, unless you need this as part of bigger application.

The library supports typing animation and changing colors. You can easily create the same interactive console.

If you're interested I can create a demo for this.

[1]: https://terminal.jcubic.pl/

jcubic··on Ask HN: Those making $500/month on side projects in 2021 – Show and tell
I would add Favicon to your main site. It seems it's missing.
jcubic··on How to rapidly improve at any programming language (2016)
I don't think it's good idea, because it will be wasted time. You can use your time to contribute to the project after reading some closed PR, try to use your knowledge to contribute.

For me it's best advice how to start with Open Source, and be sure that your PR will be accepted. And as side effect you will learn a lot, but this is with any practice like with your idea, but you will make project better. Your idea is as worthless as doing LettCode or similar.

jcubic··on How to rapidly improve at any programming language (2016)
I think you read this wrong, the performance doesn't matter. It matter that the person learned something new even that he was experienced Clojure developer. And he did this by reading closed PR.

Success Open Source project are usually created by very smart and experienced developers. And big projects have a lot of them. Their Code Reviews are much better then anyone your closed source team will have, unless you're junior developer in team of Senior developers.

Right now I'm thinking that at work we also have git (for intranet application) and we have PR, this may be very good idea for newcomers to read the PR that was done to understand how some features were implemented instead of just diving into recent code. This may be best advice I've seen in a while. But maybe it's just my own idea that came from this article, that you've understand differently.

For me this article is about advice read closed PR you will learn a lot, here for Open Source projects, because OSS projects on GitHub are biggest projects you can find.

jcubic··on How to rapidly improve at any programming language (2016)
I would not edit the post in any way, leave it as it is. But I would love to read a follow up. You can link to that new post from that old one.

For me your article is a revelation, didn't realized that I can just read old PR to check how to contribute to Open Source project. I've never read this advice in any guide that show how to contribute to FLOSS and I'm working on Open Source for more than 10 years (I'm sometimes read about how to get started, when I was starting with OSS, there were no guides like this).

I would give this advice to anyone that that want to contribute, it's even more important than looking for good-first-issue or help-wanted. This should be first thing the person do when trying to contribute. Look at old PR.

For me learning new language is side effect. You always learn when you're practicing with real project and work with more experienced developers. It doesn't matter if you work on closed source program in your own team at work or on Open Source. But with Open Source there may be more people, and big project are usually created by very smart people.

jcubic··on How to rapidly improve at any programming language (2016)
I've published this because I was reading your more recent post (GitHub Actions Limitations and Gotchas), found in newsletter Programmer Weekly, and found this post that was 10x more interesting.
jcubic··on How to rapidly improve at any programming language (2016)
If you find some project that do this right and use tools you need, just ask the author to publish his knowledge. It will be beneficial to everyone not only you. Most people like to share their knowledge, and if you find that other person, just try to find another one.

A year ago I've read article about the person that self-published a book (printed and ebook), here wrote an article how he do that and how he created it in markdown (very well written book about TypeScript in Polish), I've asked an year ago (when read that article) if can publish the code, he said that he was thinking about this. Recently he published how own blog system online on GitHub and wrote another article this time with link to GitHub. I still waiting for the book code.

jcubic··on Ask HN: How do you take notes throughout your work day?
I've written few years ago text based application created in AngularJS to keep all my notes. It was inspired by builtin MacOS app. I'm trying to keep all my notes there. Before I've had this app, I've used topic based files with extension NOTES like javascript.NOTES etc. The application is running on my shared hosting, the code is Open Source but yesterday I wanted to add new feature (global full text search) and I have a problem to run the application locally, a lot of things has changed since it was created. I've spent few hours updating all dependencies including WebPack. After done it doesn't work 100% correctly. I also have on my TODO list to create mobile version, so I can read and take notes while on my phone.

The code is on GitHub: https://github.com/jcubic/notes

The app is simple on left there are notes, in the middle there is simple text and on the right are navigation into sections, that are created using special markers. This type of makers I always use in source code and text files as separators.

jcubic··on Ask HN: Tools you have made for yourself?
I've created Python Script for adding GPS coordinates to my photos. First version was using Google Takeout JSON file. Then later I've added Android App support (GPS Logger) and recently I've added support for hardware GPS watch that I've purchased on AliExpress. The code was little bit of a mess, I've improved it a bit after someone asked if can see the code. I've also added a License and README.

* https://github.com/jcubic/gps.py

I've also once wrote a tool that downloaded files from shared hosting sites. It was long ago when RapidShare was main site of this type. It was working with all the sites that was available back then and it was waiting before download the file. It was before captcha was invented. I was using router and dynamic IP and I've even added a function that was disconnecting/connecting the router to change IP when download the files.

The code is in Ruby and on GitHub I think this was one of my first project there https://github.com/jcubic/Downloader

jcubic··on Ask HN: What is your current side-project?
My side projects are mainly Open Source JavaScript libraries

* LIPS: https://lips.js.org/ Powerful Scheme-based Lisp interpreter in JavaScript

* jQuery Terminal: https://terminal.jcubic.pl/ for building CLI applications in Browser

* Sysend.js: https://github.com/jcubic/sysend.js for sending messages to other tabs/windows in same browser

* Favloader: https://github.com/jcubic/favloader Favicon animation library

jcubic··on Ask HN: What are some tools / libraries you built yourself?
I've created [jQuery Terminal][0] in about 2010 I think it was first library that allow to create CLI applications in Browser. I've started it because I wanted to have SSH like experience on my shared hosting that didn't provide SSH access. I've build application using my Terminal, called [Leash][1]. I don't use it anymore because my current shared hosting have SSH.

I've also build [sysend.js][2] (random name with send at the end). It's for sending messages between Open Tabs, It have nice API and it works in all modern browsers and even some older ones like IE11. I didn't know any existing library that did the same, that's why I've created one.

Another library of mine is [Tagger][3], because there where no Vanilla JavaScript library like this. I needed it for StackOverflow Q&A site that I've started, but abandoned and it was inspired by StackOverflow tag editor.

Yet another library is [LIPS][4], Powerful Scheme based lisp in JavaScript. LIPS is acronym LIPS Is Pretty Simple (at least it was when I started the project on [Codepen][5]). It started as lisp in JavaScript, but later I decided that I want fully working Scheme (compliant with R5RS and R7RS). I'm still working on Beta 1.0 version, that is like completely new project. I'm also still working on new website that will showcase beta version better.

I've also created [Favloader][7] - favicon animation library. [LILY][8] - Zero dependency, simple version of YARGS for parsing command line arguments.

[0]: https://terminal.jcubic.pl/

[1]: https://leash.jcubic.pl/

[2]: https://github.com/jcubic/sysend.js

[3]: https://github.com/jcubic/tagger

[4]: https://github.com/jcubic/lips

[5]: https://codepen.io/jcubic/pen/gvvzdp

[6]: https://lips.js.org/

[7]: https://github.com/jcubic/favloader

[8]: https://github.com/jcubic/lily

jcubic··on Defining a new HTTP method: HTTP SEARCH
When I've seen this method for the first time I immediately thought about GraphQL. For this usage SEARCH is good name.

Also SEARCH was suppose to be case when you don't mutate data, so SQL insert and update is not good usage of it. You should use POST for that.

jcubic··on Show HN: My personal website is a shell
It's really hard to use I would say. No completion, no history. You need to click directly over the input. It's nice exercise to create Terminal from scratch, but I don't understand why people don't use jQuery Terminal. Maybe they are afraid that it have jQuery in the name.

Here is advanced example that use real like commands with Pipe operator (from Bash). With figlet, lolcat and cowsay commands that can be mixed: https://codepen.io/jcubic/pen/vYLvvXx

You can glue pretty advanced website just collecting examples from https://terminal.jcubic.pl/examples.php

With jQuery terminal you only need to care about the commands. Note that the library is more like a framework.

jcubic··on Ask HN: What are you working on?
I'm working on my Scheme based lips interpreter in JavaScript. With great integration with JavaScript, literal regular expression, auto async/await (with option to quote the promise), self documented like ELisp. I'm working on compatibility with R7RS, recently implemented rest of the functions from R5RS. Big part of the standard library is written in Scheme (small LIPS core) and I'm also working right now on Rollup plugin that will allow to created one bundle for all the Scheme code is I no longer need to load them with Ajax.

What's missing are continuations and proper tail calls. And syntax-rules macros need to be heavy refactored (I need to add proper expansion time).

If you want to take a look make sure to check out 1.0 Beta version, that is completely different than what's suppose to be stable version.

Website: https://lips.js.org/ GitHub: https://github.com/jcubic/lips

The most up to date documentation is on the wiki: https://github.com/jcubic/lips/wiki/v1.0-draft

jcubic··on Ask HN: I want to start learning Lisp. Where do I begin?
I would start with Scheme or Racket that is based on Scheme. I would start with any Scheme interpreter like Kawa or Guile. If I would recommend any book it would be Sketchy Scheme by Nils M Holm (that I've read recently) https://www.t3x.org/sketchy/ it start with basics but it have lot of details and advanced stuff about Scheme and how it works. It also as title suggest intro to functional programming.

If you would like to learn on line (maybe using pdf book) you can try my Scheme REPL bookmarklet https://lips.js.org/#bookmark so you don't need to install anything on your computer, you can do that later.

jcubic··on Ask HN: I want to start learning Lisp. Where do I begin?
I would not start with OnLips it's pretty advanced book on Common Lisp. It's very good book but not for those that just staring out.
jcubic··on Ask HN: What did you purchase that measurably improved your quality of life?
I'm using same JBL bluetooth speaker for my laptop for everything, I use it all the time, now when on Linux BL sometimes stops working automagically, I can't believe that I was using laptop builtin speakers, before I've got that JBL speaker.
jcubic··on Eslisp – An S-expression syntax for ECMAScript/JavaScript, with Lisp-like macros
This inspired me to use same AST library to generate JavaScript from Scheme in my Scheme based lips called LIPS. I was planing on writing compiler (first reading more about compilers) maybe it would be simpler than I thought.

But still I think that `((. console log) "hello")` is not as nice as `(console.log "hello")` as in LIPS. My old code was using the same syntax but I've changed the interpreter and you now can use dot notation on any JavaScript objects.

jcubic··on Ask HN: What is your favorite motto?
Not sure where it came from or who said that:

"Now Go Create"

jcubic··on Ask HN: What projects are you working on now?
I'm working on my scheme/lisp interpreter in JavaScript, it's getting closer to real Scheme. Right now I'm reading R5RS spec and adding new functions. It have pretty nice interop with JavaScript and work in browser and Node.js.

https://jcubic.github.io/lips/

There is lot of features in devel branch I need to release soon version 0.21.0, but first I need to write unit tests.

jcubic··on Ask HN: What are the best Sci-Fi books you've ever read?
My Favorite Sci-Fi book is Neuromancer by William Gibson. Also Philip K. Dick books like Ubik or his short stories are awesome.
jcubic··on Clarity Icons: open source icons
Shit, they stole my name. I think that my GTK+ theme https://www.gnome-look.org/content/show.php?content=135654

was first

← PreviousPage 2 of 3Next →