Better HN
topnewbestaskshowjobs
Log inSign up

puzz

91 karma · joined Feb 19, 2008 (18y ago) · 37 submissions

http://github.com/tkrajina
Submissions

comment 9mo ago · link · parent

Or git-old-branches/git-recent from git-plus

https://github.com/tkrajina/git-plus

Disclaimer, I'm the author ^^

comment 5y ago · link · parent

Look at any piece of Java code and try to guess the cyclomatic complexity of it. It's not simple. Because every line, and every function call can fail. And that failure is one more place where the execution tree of your code branches. You can't see it unless you check every method call in your code.

In Go -- every error is obvious, and you get a sense of a cyclomatic complexity of any piece of code by just going through it quickly.

So, that's it for me. The complexity of the code is visible.

comment 6y ago · link · parent

That's a cool idea. I once made a similar site but for a completely different purpose -- language learning. Unfortunately I never finished it but it's still in my TODO list.

The workflow was:

- you read the sentence

- the sentence disappears

- then you type from memory

- every time you mistype something -- the next couple of words appears for a few seconds and you keep typing

That way you not only learn to type that foreign language. But you also memorise the sentence in your short-time memory and you get a feel for sentences are created (order of words, phrases, etc.).

PS. Didn't finish the site, but I did made a simplified version as an Android app: https://github.com/tkrajina/10000sentences

comment 7y ago · link · parent

I wrote a similar tool (along with some other git helpers) a while ago: https://github.com/tkrajina/git-plus. Note that there is another (more popular) git-plus repository used in Atom. My own has nothing to do with it (but it's older).

comment 7y ago · link · parent

Right, spaced repetition isn't good at memorising things quickly. Where it shines is that it lets you decide the things you want to keep in your long term memory.

comment 9y ago · link · parent

I have never been in the US, but I always thought it's the personnel in embassies who are educated/qualified to check and (in)validate my visa documentation. Once on a border, they will only check that I'm not carrying anything illegal, and that's it.

But the idea that my education/knowledge/experience will be checked again, that's weird to me.

7.

Show HN: 10,0000 sentences, a language learning android app(play.google.com ↗)

1 points · by puzz · 9y ago · discuss

comment 10y ago · link · parent

Tax reasons or not, people are actually moving there. A lot of my former colleagues moved to Ireland (from Croatia).

Now Ireland has both: human capital and tax reasons.

comment 10y ago · link · parent

Hm, I tried now with:

l.Infof("version=%s", runtime.Version())

...and it gives me:

version=go1.6 (appengine-1.9.36)

comment 10y ago · link · parent

Water 1m below the sea surface is drawn like 4m deep. Land 1m above the seal level is drawn like it is 2m high.

comment 10y ago · link · parent

This is a small side-project I'm working in my free time, for the last 2 months. The idea is that users will (hopefully:) share/exchange short voice recordings in their native language (and use existing recordings to practice language comprehension with other languages). Recordings are uploaded with text, translation and they are "synchronised" with the audio.

Here's an example: https://lisn2.me/exercise/1458307740540341002 . You can listen to the recording in various speeds (normal/slow), with/without text/translation.

Then, you can also practice listening and writing: https://lisn2.me/exercise/1458307740540341002/quizes/dictate (listen to a couple of words and then you need to write them down, if it's correct it's shown in green, otherwise it's red, Type ? for help).

12.

Show HN: Lisn2.me – Practice language listening skills(lisn2.me ↗)

3 points · by puzz · 10y ago · 1 comment

comment 10y ago · link · parent

A lot of people complains about Go because they expect a better Java/C++/C#. If you expect a "better Java", then you are going to be disappointed.

For me Go is more like C with garbage collection and some features of a scripting language -- and that's exactly how it feels programming in Go for me. At the moment it's my language of choice for all side-projects; from web applications, microservices, shell "scripts", ...

14.

Ftmpl: Fast and typesafe golang templating(github.com ↗)

2 points · by puzz · 10y ago · discuss

comment 10y ago · link · parent

Hi all,

This site is born out of my frustration when trying to learn a new language. It is a "language learning application", but you won't learn a language by using it. I made it to practice one specific (and I think important) thing - the skill of listening a new language.

The idea is simple, the site contains short user-uploaded voice recordings with transcription and translation.

Here's an example in Spanish: http://lisn2.me/exercise/1455534102678176880 . Users who learn Spanish can then listen to it (with/without transcription and translation).

After that you can exercise listening to chunks of the recording and then guess the text and translation: http://lisn2.me/exercise/1455534102678176880/quizes/guesschu...

The second exercise is to listen and type (in the original language): http://lisn2.me/exercise/1455534102678176880/quizes/dictate The app will show (in green or red) when you got the transcription right.

This is still a proof-of-concept, the site html is very simple (but to be sincere, I like simple html websites:) and there are some bugs.

Now, I'm looking for feedback/suggestions/questions before deciding how (if) to proceed with this project.

16.

An app for practicing language listening skills(lisn2.me ↗)

3 points · by puzz · 10y ago · 2 comments

comment 10y ago · link · parent

My latest Java project is cca 70,000 lines of code. 1 XML file (because the first developer didn't know about spring annotations). No need for eclipse plugins, in IntelliJ I install only two: vim-plugin and lombook.

I'm not saying the Java world isn't too complicated (it is) but if you know all the possible problems -- you can keep it sane.

Nowadays, I'm moving slowly to golang. But I don't think I will stop programming in Java. I still think it is a nice language, but if you inherit a project from a "enterprise Java developer" who thinks in EJBs, then just run away :).

comment 11y ago · link · parent

Very nice, I think I'll use this as my background music when programming. Reminds me of a similar (real life!) thing: The Sea Organon in Zadar, Croatia: https://www.youtube.com/watch?v=mtDYTeB5J-8 Skip to 5:00 to listen.

comment 12y ago · link · parent

Yet another very simple single-file in 65 lines of code here: https://github.com/tkrajina/yactest

comment 13y ago · link · parent

I use http://www.viplugin.com/index.htm . It costs 19$ and it is worth it. When it lacks some vim feature -- there is an easy way to invoke the real vim, do some editing there, and then swith to eclipse back.

I tried eclim but it lacked too many eclipse features. It is maybe that I didn't try it enough, but I was (and still am) happy with viplugin to really try something else.

comment 13y ago · link · parent

> Does anyone even use Vim without plugins anymore?

I use vim for almost 20 years for everything except when I'm developing in java (but even then I use eclipse with a vi plugin).

And no plugins at all.

comment 14y ago · link · parent

"For non US entrepreneurs this law is potentially great news"

That would be true if other countries wouldn't use USA as a role model. The way it is now, I think this is a big problem for the world...

comment 14y ago · link · parent

What's the big difference between this one and other RSS readers. Why should I use your instead of google reader? I think you should answer to this question on the first page.

24.

Ask YC: Review my app (trackprofiler)(trackprofiler.com ↗)

2 points · by puzz · 14y ago · discuss

comment 15y ago · link · parent

+1 for open sourcing it (from another ViewText user who also happened to need good open source text extractor).

BTW, what programming language you used for ViewText?

comment 15y ago · link · parent

I'll never forget when I saw a code in a production java app with lots of JSP, SQL, jdbc, html and javascript in the same file. One of the lines was something like:

<a href=# onclick="document.getElementById('field').innerHTML+=parseInt(this.parentNode.parentNode.parentNode.parentNode.parentNode.parenNode.childNodes[7].childNodes[13].split('|')[3])">...</a>

comment 18y ago · link · parent

Thank you all for your comments/suggestions/criticism. I added all suggestions in my TO-DO list, and will look to implement them as soon as possible.

comment 18y ago · link · parent

I tried it once when starting with gmaps API. But, I probably did something wrong then.

Thank you (both) for pointing out that I was wrong. I'll look at the javascript API again and see what can be done.

12