Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sasa_buklijas
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
31.
▲
by
sasa_buklijas
9y ago
agree, but it also depends on programing language. I do not see how 1K of C and Python lines are same.
32.
▲
Should you learn C/C++ in 2018?
(buklijas.info)
1 points
by
sasa_buklijas
9y ago
|
0 comments
33.
▲
How to Install Printer Samsung-ML-1520 on OS X 10.12 Mac OS Sierra
(buklijas.info)
1 points
by
sasa_buklijas
9y ago
|
0 comments
34.
▲
by
sasa_buklijas
9y ago
Correct, I (author) am from Croatia, and in the Croatian language, there are no definite or indefinite articles. I have noticed that I do not even see that I drop most of the articles. Only when I use some grammatical spell checker than 90
35.
▲
by
sasa_buklijas
9y ago
Thank for mentioning http://netaddr.readthedocs.io/en/latest/ , I did not know about it.
36.
▲
by
sasa_buklijas
9y ago
> IMHO, this statement represents one of the biggest design smells in programming. It's usually a bad idea to write software you may need in the future. Circumstances change. Writing code is expensive and coding in anticipation of w
37.
▲
by
sasa_buklijas
9y ago
valid argument :-), accepted
38.
▲
by
sasa_buklijas
9y ago
I had to distribute my Python program as EXE because Windows PC where the program needs to be executed did not have Python installed. That is why using Python as configuration file was not possible. Hope that I have explained it well.
39.
▲
by
sasa_buklijas
9y ago
I was on windows. But OK, there is batch script also. I had to call program will all IP addresses, one by one would just not work. Your idea is fine, but it was just acceptable in my use case.
40.
▲
by
sasa_buklijas
9y ago
I was distributing my Python code as EXE, so use of Python code as configuration was not possible. Altho, I think that Python code as the configuration is a good solution if you are executing source code, and only developer (not average use
41.
▲
by
sasa_buklijas
9y ago
I meant data inside the text file. Anyway, this is more question of preference :-)
42.
▲
by
sasa_buklijas
9y ago
I agree but I wanted to avoid this: ... writing 34 IP addresses as CLI parameter, that is around 373 letters, is not a nice solution.
43.
▲
by
sasa_buklijas
9y ago
Now I use https://github.com/pasztorpisti/json-cfg for storing configuration as JSON. json-cfg has the ability to add comments to JSON file.
44.
▲
by
sasa_buklijas
9y ago
You are correct, that is the simplest way. What did I not disclose in the article is that I also wanted somehow to name data. I wanted this because I also know that in the configuration file, expect IP addressed I will also need to store sl
45.
▲
by
sasa_buklijas
9y ago
You are correct, that is the simplest way. What did I not disclose in the article is that I also wanted somehow to name data. I wanted this because I also know that in the configuration file, expect IP addressed I will also need to store sl
46.
▲
Always start with simple solution
(buklijas.info)
67 points
by
sasa_buklijas
9y ago
|
59 comments
47.
▲
Automatic Backup of Git Repositories to Dropbox with Python
(buklijas.info)
1 points
by
sasa_buklijas
9y ago
|
0 comments
48.
▲
by
sasa_buklijas
9y ago
Python http://buklijas.info/blog/2017/02/01/automate-the-boring-stu...
49.
▲
Ask HN: Is my understanding of AI correct?
2 points
by
sasa_buklijas
9y ago
|
0 comments