News for hackers. Stuff that matters.

puzz

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

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

Disclaimer, I'm the author ^^

Re:Half a million lines of Go on Monday May 17, 2021 @12:52AM (#27180155)
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.

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

Re:Show HN: Gita – a CLI tool to manage multiple Git repos on Monday February 04, 2019 @04:47AM (#19075060)
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).
Re:Train Your Brain Like a Memory Champion on Tuesday January 15, 2019 @02:56AM (#18909469)
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.
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.

Re:UK votes to leave EU on Friday June 24, 2016 @03:40AM (#11967563)
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.

Hm, I tried now with:

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

...and it gives me:

version=go1.6 (appengine-1.9.36)

Water 1m below the sea surface is drawn like 4m deep. Land 1m above the seal level is drawn like it is 2m high.
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).

Re:Visual Studio Code for Go on Friday March 04, 2016 @12:57AM (#11222286)
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", ...

Re:An app for practicing language listening skills on Wednesday February 17, 2016 @04:09AM (#11116414)
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.

Re:AWS Java documentation is fucked on Saturday February 13, 2016 @03:30AM (#11093240)
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 :).

Re:Listen to Wikipedia on Thursday July 30, 2015 @03:56AM (#9973642)
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.
Re:Greatest: C unit testing library in one file on Wednesday January 08, 2014 @02:59AM (#7022320)
Yet another very simple single-file in 65 lines of code here: https://github.com/tkrajina/yactest
Re:Vim 7.4a ready for beta testing on Sunday July 07, 2013 @01:23AM (#6001142)
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.

Re:Vim 7.4a ready for beta testing on Saturday July 06, 2013 @03:12PM (#5999723)
> 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.

Re:Ask HN: Non Americans: Do you care about SOPA? on Wednesday January 11, 2012 @12:13AM (#3450545)
"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...

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.

Ask YC: Review my app (trackprofiler)

http://www.trackprofiler.com/

This is my hobby project (not a weekend one). I know it sounds similar to other sites for GPS tracks sharing; I tried them many but didn't found options I needed for my mountaineering tracks (with lots of GPS errors because of bad satellite visibility). So I tried... :)The result is this app: an online GPS track and route editor. It can join/split tracks/segments, waypoints, images, remove...

( Read More... | no comments | 2 points | on HN )
Re:The relationship between Readability and Instapaper on Thursday November 17, 2011 @02:44AM (#3246822)
+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?

Re:The worst program I ever worked on on Wednesday March 16, 2011 @04:15PM (#2333687)
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>

Re:Ask YC: Review my app (Panoye) on Sunday September 28, 2008 @01:04PM (#317673)
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.
Re:Ask YC: Review my app (Panoye) on Sunday September 28, 2008 @12:58PM (#317666)
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.

Re:Ask YC: Review my app (Panoye) on Saturday September 27, 2008 @11:05AM (#316932)
"People like much more to put useless photos of their cats on flickr."

Right :) In fact this is why it is an "app", not a "startup". I have no idea on how to bring it the masses and/or how to make some money from it.

It is still a hobby project and it will probably remain so.

Re:Ask YC: Review my app (Panoye) on Saturday September 27, 2008 @11:02AM (#316931)
You're right, I should make it more visible... There is a google custom search field on the homepage (at the bottom of the right column). Or on the menus: Panoye -> Search.

Older »