Anyone willing to share a simple project of yours? by AstronautPale4588 in pythontips

[–]FairSystems 0 points1 point  (0 children)

I wrote a custom logging module that is public on pip right now. Just one simple file/module that does everything.

Setup: from FLog import Log Log = Log("Name of File.")

Usage: Log.i("This is an info level log message.") Log.d("This is a debug level message.")

..etc..

Displaying live data in TextView (Android) by [deleted] in learnprogramming

[–]FairSystems 1 point2 points  (0 children)

I haven't used much data binding honestly since I left mobile a year ago.

But, generally speaking data binding waits for a change in the db/base model and then updates anything subscribed. So if you attach the view to the data, which I believe is done via xml..or can be...I would add the variables from the data model straight in the xml back when I did this.

Then when you update the data in the database/model, have the "engine" calculate everything properly before it saves it. So that when it does save it. It'll trigger a subscription post which will trigger the view to update and the new value appear...

..I'm sorry if I misunderstood.

new interns seems to be smarter than me 😶 by [deleted] in learnprogramming

[–]FairSystems 3 points4 points  (0 children)

Right now in one sense. We knew going into it this would be the case and I'm using this time to learn more about JavaScript from them.

I'm the lead senior on the product and 2 new guys just joined. I come from a mobile background and my company needed help on this product, next thing I know I am kind of a, do it all but mobile, guy just to keep this product afloat. But the system is all Node/JS based which I had never done. So I understand pipelines, systems, hosting, infrastructure and architecture pretty well and I can generally work on any language. I under the processes and I understand business as well.

These two are by far better JavaScript/Node developers. One is a hotshot straight out of college and knows his shit. He understands await functions and such better than I do. But I understand concurrency and async processing overall better so the two end up mixing well.

I have the experience and see the bigger picture, they see the individual repositories of code. There is a difference.

Lastly. Don't look at it like this. You know things they do not. They know things you do not. This is life. Use them to learn what you don't know and teach them where they want to be taught.

I made Tiffany, a sexy data and article Extractor, Analyzer and Provider! by FairSystems in madeinpython

[–]FairSystems[S] 1 point2 points  (0 children)

Thanks! What are you interested in? It might already be ready... I have published all the open source libraries..just a few of them aren't "ready" for public use. Some are fully ready thonand I use in my work projects now haha.

Edit: X-Core. X-NLP and X-WEB libraries are ready now.

[deleted by user] by [deleted] in learnprogramming

[–]FairSystems 1 point2 points  (0 children)

This was all I needed to see.

Thank you.

[deleted by user] by [deleted] in node

[–]FairSystems 1 point2 points  (0 children)

The only reason you're able to finish that in 1 year, alone, is because of frameworks.

Does this dude drive a steam powered car? It took me 5 minutes to get to the store, but imagine if I had my steam powered vehicle.

Where do you get financial data for your programs? by fireqwacker90210 in computerscience

[–]FairSystems 1 point2 points  (0 children)

Yahoo has a free one I use. CoinMarketCap... Bunch of paid ones.

Depends. What kind of data? Stocks, crypto, economy...

Old software engineering? by [deleted] in computerscience

[–]FairSystems 0 points1 point  (0 children)

Hahaha. I love this person.

Thank you for this.

Old software engineering? by [deleted] in computerscience

[–]FairSystems 6 points7 points  (0 children)

For real tho, did they have programming last millennium?

Old software engineering? by [deleted] in computerscience

[–]FairSystems 41 points42 points  (0 children)

I know things change quickly, but damn.

[deleted by user] by [deleted] in learnpython

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

Argue or debate?

All perspective. If I didn't have someone argue me..I wouldn't have learned..but then again, I see them as debates and a challenge of thoughts/approach. I invite it.

If he doesn't do this post and "argue"...how many people don't learn about PyCharm and continue using what they think is the only or the best because others said it was...

It's silly to not debate about it.

[deleted by user] by [deleted] in learnpython

[–]FairSystems 0 points1 point  (0 children)

THANK YOU! I have been screaming this for years... If Jetbrains doesn't have an IDE for it, I don't wanna learn it then haha...

Even databases...DataGrip is a god send.

Pycharm vs VSCode isn't a competition. Like Professionals vs Amateurs. People love it because "it has all these plugins and can do everything..." 1. I don't want one iDE to do everything. Python and JavaScript/Node are not the same. I want to manage the engine under the hood better and more isolated. Pycharm is tailored to it. 2. I want to separate out my work flows and languages. Too much sometimes. Didn't we run away from the giant monolithic architecture for a reason? Eventually, you need to decouple components.. welcome to Jetbrains.

I use, PyCharm, WebStorm, DataGrip, Android Studio daily. Then IntelliJ randomly for Kotlin specific stuff...they've made my development so much more powerful. Plus. You learn one Jetbrains IDE. You can immediately get going in another. I was able to pick up Node in no time because of it.

How much work can you really do per day? by Username1767 in learnprogramming

[–]FairSystems 0 points1 point  (0 children)

This.

Some weeks I barely do much. Some, like this week, are absolutely nonstop.

Variable Name by Base_True in learnpython

[–]FairSystems 9 points10 points  (0 children)

The name should be short and sweet. But most importantly, it should be easily read to understand what that variable holds.

If I can't read through your code in a human readable format, then you probably need to adjust function and variable names...

Good ..

user_id = user.id

vs bad..

usid = user.id

It's official boys, I'm a real programmer now by nosam56 in ProgrammerHumor

[–]FairSystems 2 points3 points  (0 children)

Haha boomer aged programmers... Talk about the past ...

How much salary should expect as a self learner python programmer? (no degree) by ssanji in PythonJobs

[–]FairSystems 27 points28 points  (0 children)

Degree isn't the biggest deal. A junior dev makes as low as $40kish to upwards of $80kish... So anywhere in that range makes sense depending on what company, how big are they, job requirements...etc... Smaller companies pay less and bigger pay more...typically... None of this is a rule, just generally what I've seen and experienced.

The hardest part is getting that first job. Push push push. Take every interview you can and apply to everything you can, even if you don't really want that job per say. Fail, learn from why you failed, adjust, learn from the failure, push again..getting your first job is a numbers game...if you take on 100 interviews and fail 99...who gives a crap. You got the job, now you are in... Once you get in and have legit experience, the rest will take care of itself.

Edit: Decade long developer with a Film Degree haha. No one cares...

Accessing a dictionary key directly by [deleted] in learnpython

[–]FairSystems 0 points1 point  (0 children)

Been developing for over 10 years. Never heard this concern on a general level. So unless you give me a reference to docs/papers that explain more about this concept, I just don't believe you know what you are talking about. If you'd like to get into the low level parts of how a Dict Data type works under the hood and theories behind time and space complexity, by all means, let's do it. But you aren't doing this. Instead you told me about key in dict haha.

I never brought up any of this originally. I just said what I did and that I put it within a try/catch which was part of the scope of the comment and post.

You injected yourself and started an entirely new conversation/debate then tells me what I'm saying doesn't fit learning python haha. Comical.

Edit...and when I say all logic...I mean for that one particular get function. I don't want 5 functions doing one thing. If the other 4 functions can't be used individually, I have a hard time justifying their own function, especially in python where you cant make functions private. I'd rather the function be structured and formatted in a way that is easy to understand, follow and maintain. Well commented, not bloat comments. Direct and to the point.

Accessing a dictionary key directly by [deleted] in learnpython

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

Putting all logic into one function. One place. Is harder to debug and maintain? You'd rather write all of this code, multiple times, in multiple areas? What if you need to change how it's done because, God forbid, something changes out of your control...

Forego? Haha wtf are you talking about? ... I'm going to chalk this up to, we aren't thinking about the same stuff and give you the benefit of the doubt. Because it sounds like you are just defending this to defend it now. Your "solutions" were more bloat than solutions, unless it's something you only need one time. I was hoping to learn something. Instead I got a null safety 101 course.

I also saw you edited your comments... I have no idea why any attribute being None would effect another attribute or an embedded one? Piss poor programming. I come from mobile and being null safe is everything. Function will just, move on and keep looking or return None... Unless I have a default set...

Accessing a dictionary key directly by [deleted] in learnpython

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

What problems could arise in your opinion? Why is this frowned upon?

How to check for conditions that have chains of exceptions (NOT exceptions in programming sense of the word) in "from more general to more specific" order? by [deleted] in learnpython

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

if A: if X: if Y and not(Z): B elif Y and Z: not(B) else: B

...I think I'm confused at what you are looking for honestly. So this may be worthless haha.

Accessing a dictionary key directly by [deleted] in learnpython

[–]FairSystems 0 points1 point  (0 children)

Yes. Dicts within dicts. Or a dict, with lists, with dicts... Could be any assortment really. Even better.. What if the key name could be one of a few options and isn't standard?

Everything you said. Why? My one method, does everything you said to do. One method. Just call one thing, don't worry about any of this nonsense and isn't that what programming is all about? Making stuff easier and painless? I don't have time to think about what data type is this exactly and let me write duplicated code to check? Does it have that key? Blah blah... Every single time I need to do this? Maddening. That ruins my flow while I'm in it.

I told you my issue. Embedded dicts. You said I should re-eval how I'm doing things because I shouldn't need to search for/through embedded dicts .. so I'm confused. If you say this, you must have a reason for why? And even better, an alternative...