News for hackers. Stuff that matters.
Re:A Modern App Developer and an Old-Timer System Developer ... by kogepathic on Sunday February 14, 2016 @05:01PM (#11100186)
Why wouldn't you want to use an SQL database with an index to store this data? Just have a column for the ports and a boolean flag for the status of the port?

Honestly, I'd probably use bash/nmap/ping and psql to insert data. Want to query? psql and grep.

These examples seem like a great way to re-invent the wheel with modern buzzwords.

Re:A Modern App Developer and an Old-Timer System Developer ... by Spoom on Sunday February 14, 2016 @05:24PM (#11100280)
I was thinking this as well. This is a problem with a well-defined schema. Why would you use a schemaless NoSQL database? Additionally, many of the bitwise operations used by the old school dev have analogous abstractions in SQL, which are probably easier to understand.
Re:A Modern App Developer and an Old-Timer System Developer ... by snaky on Sunday February 14, 2016 @05:45PM (#11100359)
If there's not so many data, awk and sed will do the job.

Taking the story to extreme, modern day developer should take a Hadoop (despite the fact it would be 235x time slower than awk - http://aadrake.com/command-line-tools-can-be-235x-faster-tha...) and old timer should take some APL descendant like Q with kdb+.

Re:A Modern App Developer and an Old-Timer System Developer ... by hackercomplex on Sunday February 14, 2016 @05:41PM (#11100347)
Why not SQLite ?
Re:A Modern App Developer and an Old-Timer System Developer ... by Sanddancer on Sunday February 14, 2016 @07:06PM (#11100679)
I'd just take that as favorite tool for the job, SQLite's pretty interchangeable. Also, if you've already gotten a database engine running, it's probably best to just keep everything there. Otherwise, you get into the situation I was in at a previous job in which certain page loads from an app written before I started there required a sun jsp app for the main part of the page, which made requests to pull some data from an Oracle database, some data from an apache mod_perl app that queried from a mysql database, some data from an apache mod_jk app that pulled from a c++ app with its own database format, and some data from an apache mod_jk app that stored and retrieved from a postgresql instance. Everything was nice and well-documented, but mein gott was that a lot of moving parts.
Re:A Modern App Developer and an Old-Timer System Developer ... by skrause on Monday February 15, 2016 @12:43AM (#11101704)
In PostgreSQL you could use a native type to store your IP addresses and subnets (even for IPv6): http://www.postgresql.org/docs/9.5/static/datatype-net-types...
Re:A Modern App Developer and an Old-Timer System Developer ... by hendler on Sunday February 14, 2016 @07:06PM (#11100678)
or redis