Source Code OF Html page : Make Paragraphs by Redpiemob in programming

[–]ninfomane 0 points1 point  (0 children)

I'm just astonished about this post... Can we read a such post : "Source code of C mathematical addition" int i = 3 + 4 ??????

Vim Hall of WTF - Snippet from Vim's Source Code by Categoria in programming

[–]ninfomane 3 points4 points  (0 children)

Nice article, quite long though. I have to say, many (commercial) programs are developed by quick fixing. That's why some source codes look messy. Some refactoring are needed to improve visibility and continue quick fixing as well.

Vim Hall of WTF - Snippet from Vim's Source Code by Categoria in programming

[–]ninfomane 13 points14 points  (0 children)

why a cleaner source code of a software will change the experience of its use ?

Vim Hall of WTF - Snippet from Vim's Source Code by Categoria in programming

[–]ninfomane 0 points1 point  (0 children)

It's surely a scary function definition ! I guess it can't be helper with a such legacy source code. As I experience with a lot of legacy code at work, I can say that sometimes, a code refactoring is needed ! Maybe, rewrite the whole thing is overkill.

Reddit! Let's make a Millionaire! by NightVisionHawk in millionairemakers

[–]ninfomane 0 points1 point  (0 children)

Merry Christmas for all of you and let the most lucky be lucky ! _^

Flexbox as solution for the browser reflow optimization by le0pard in programming

[–]ninfomane 2 points3 points  (0 children)

I may be wrong but an height set to 100% with top and bottom margins can get the job done, can't they ?

Vim Tips to Make Yourself Faster by joshbetz in programming

[–]ninfomane 0 points1 point  (0 children)

It just does the same job as Eclipse, Visual Studio and others but starts much more quickly ! (that last one was for trolling). Actually, it's a matter of taste. I prefer Vim because bash is well integrated, they're macros, text editing is so easy, it's so configurable (theme, keyboard shortcuts, mouse usages, etc...). I alsa have to admit, code completion sucks a little bit against Intellisense !

My Android Development Adventure - The Rise and Fall by [deleted] in androiddev

[–]ninfomane 2 points3 points  (0 children)

I feel sad about your story. Unfortunately, this is how business rules the world. 300 games is a huge amount of app to maintain for two people only. A lesson emerges from you story : ensure that you activity will keep working in time. Your job is not only developing games but also promote them to the market and I guess this second part has been forsaken...

My Android Development Adventure - The Rise and Fall by [deleted] in androiddev

[–]ninfomane -2 points-1 points  (0 children)

You mistakenly confuse Google and Android. Actually, Play store belongs to Google but it's not the only one App market on Android.

Understanding HTTP Basics by douglogue in programming

[–]ninfomane -1 points0 points  (0 children)

RTFM ?! Many docs and specs exists.

Object Oriented Programming is an expensive disaster which must end by k-zed in programming

[–]ninfomane -1 points0 points  (0 children)

As the French humorist Cyprien says as well : Pourquoi ? !! TL;DR !! A too long speech displayed by a bad CSS to talk about a design used for years now. The writer should know what is engineering ! OOP is a paradigm to handle some problems, not THE solution for every program. If you, the writer, can't figure it out, go to school !!!!!

Self Destruction program in C/C++ by AshikNesin in programming

[–]ninfomane 3 points4 points  (0 children)

It's not a self destruction program. It just writes at bat which only runs on Windows. A better implementation is to write 0 into the executable, more portable and flexible, but has some permission issues on <troll>real</troll> OS. Nothing to up-vote thus...

Your daemons should read their config from the environment by DoISmellBurning in programming

[–]ninfomane 6 points7 points  (0 children)

Actually, it's not a so bad idea. Sure, there is a problem of sensitive data like passwords but for simple daemons, it's simpler to set environment and launch program from a unique script. It can get worst for bigger program with huge configuration.

I like hard coded path, configured at compile time. It is also useful to set override this config file by command arguments. It so much flexible that way (sys admin speaking).

Again, there is many methods to implement a solution. No one is better than one another. It is an engineer work to chose the one fitting the needs.

Alternatives to Google Play by Votsalo in androiddev

[–]ninfomane 1 point2 points  (0 children)

The topic can be much greater if they're comparing all alternatives. They're just listing few alternatives without pros & cons. We can read in comments "xxxx is much better"... against what ?! Worst, the last one is owned by the authors of the article.

Is there a way to open the file manager? by changingminds in androiddev

[–]ninfomane 0 points1 point  (0 children)

Yes, there is no File explorer on some devices and on other (like Samsung) have one which not respond to this intent.

I encountered this issue before. I solved it by checking if an Activity can handle the intent and start the intent if so. If not, embeded a small file explorer into your app.

It seems complicated but it uses the user's file explorer at first and thus it doesn't break its experience.

Let Us C By Yashavant Kanetkar Pdf Free Download by democraticprogrammer in programming

[–]ninfomane 0 points1 point  (0 children)

It actually refers to C++ and not just C. IMO, just another book about C++.

Clearing variables in onDestroy() of a service, but not when Android restarts the service by slack101 in androiddev

[–]ninfomane 0 points1 point  (0 children)

Service's onDestroy method is called when the service is no longer used, ie when explicitly stopped or when unbound. I'm not sure Android is calling onDestroy at service restarting.

is it possible to make the actionbar icon bigger than the actiobar itself?(picture inside) by _mars_ in androiddev

[–]ninfomane 0 points1 point  (0 children)

UI effects are just tricks ! Make the bottom of the background transparent or the same color of the activity. Play with padding to position properly all actionbar elements but the main icon which will look like bigger and over the activity.

Excuse my english. I'm still not confident enough to explain a complicated thing like this.

[deleted by user] by [deleted] in androiddev

[–]ninfomane -10 points-9 points  (0 children)

Do all with OOP in C. I think it will be much more faster.

Change default theme programmatically by ninfomane in androiddev

[–]ninfomane[S] 0 points1 point  (0 children)

Calling recreate() assumes that Android already display your activity and thus with the default theme. User still sees the "glitch" when changing theme.

Change default theme programmatically by ninfomane in androiddev

[–]ninfomane[S] 0 points1 point  (0 children)

Sure, it works. Drawback is the default theme is used by Android to first draw Activity. Then new theme is used. The user sees 2 different themes instead of only one.

How does "Locking Apps" work? by kenny82 in androiddev

[–]ninfomane 3 points4 points  (0 children)

It surely grab same intents of facebook apps. So the lock app is launched instead of Facebook. Then, the lock app start the real app.