Better HN
topnewbestaskshowjobs
Log inSign up

olitech

65 karma · joined Oct 4, 2022 (4y ago) · 14 submissions

sunsetkookaburra.net
Submissions

1.

Newgrounds Wiki – RSS(newgrounds.com ↗)

2 points · by olitech · 1y ago · discuss

2.

P-99: Ninety-Nine Prolog Problems(ic.unicamp.br ↗)

2 points · by olitech · 3y ago · discuss

3.

DIY haptic input knob (2022) [video](youtube.com ↗)

1 points · by olitech · 3y ago · discuss

4.

tiny-snake.rs – A very tiny terminal snake game(github.com ↗)

1 points · by olitech · 3y ago · discuss

5.

Biodiff – Hex Diff Viewer(github.com ↗)

3 points · by olitech · 3y ago · discuss

6.

GeoTIFF Compression and Optimization with GDAL(kokoalberti.com ↗)

2 points · by olitech · 3y ago · discuss

7.

Qsort.h – Quicksort as a C macro (2019)(github.com ↗)

85 points · by olitech · 3y ago · 47 comments

comment 3y ago · link · parent

I'm thinking it might be related to Bard.

comment 3y ago · link · parent

Someone had shared the quirk with me and said they were able to find the text in news articles (though dating from 13 August 2003), which may explain the dependence on country.

10.

Google Search “define inequality” shows gibberish(google.com ↗)

28 points · by olitech · 3y ago · 9 comments

11.

DSCOVR EPIC Satellite Photo Frame [video](youtube.com ↗)

1 points · by olitech · 3y ago · discuss

comment 4y ago · link · parent

I'd disagree that its a poor decision, some help is better than no help when reading code - and if it's inline then it's intrinsically meaningful.

By no means is it perfect, the language doesn't enforce the type rules, but that the developer has the option is far better than not. As far as I can tell the proposal would pretty similar to Python; one can misleadingly or accidentally misuse type hints like the following:

  def myfn(a: int) -> str:
    return int(a)
  
  print(myfn("42"))
But when done right, it gives you a leg up when you come back to read your own code or scan over someone else's. When you're reading over other's code in group programming assignments, comments make a world of difference (a niche example).

It is a choice, but its use in code might just inspire someone to investigate further - my own introduction to types in programming came when I wondered what these oddly placed colons and arrows were in some Python I came across. If they do add these annotations to JavaScript, some future programmer browsing the source of a web page may well just stumble upon types and have a whole new world of theory opened up to them - I'm all for it.

comment 4y ago · link · parent

Typescript was my stepping stone into the world of Rust.

Even before Deno made it easy, it was straightforward enough to configure a simple tsconfig and just run tsc. Much like cargo, there is a lot to be said for "it just works" tooling - especially for beginners or even new programmers.

It is probably fair to say it is one of the most influential and impactful languages of all time. There's even the future possibility of much of its type syntax being absorbed back into JavaScript: https://github.com/tc39/proposal-type-annotations

14.

Introducing giscus (2021)(laymonage.com ↗)

1 points · by olitech · 4y ago · discuss