How can you know if your code is "professional" enough for production? Ask Programming |
- How can you know if your code is "professional" enough for production?
- Microservice - Cases when scaling horizontaly may need extra care
- Questions from a beginner
- Are hex and octal useful anymore?
- Looking for open-source modern path-tracing renderer to tinker with
- Why do some love gatekeeping in the programming community?
- I don't wanna create 230+ Animations for my project in Java/Android Studio
- Do you use TDD, DDD or some other pre-development paradigm?
- I have to create a basic POC CRUD web app in two weeks, should I choose Django?
- Powershell or python google form automation
- Making an automatic QR code scanner
- Android Java
- Helloo!! I need your help. Im a beginner at programming. And Im using Pycharm.
- Where do yall work?
- Where to put my encrypted password files?
- Licensing with Open Source Software
- Checkers capture logic
- Quick Python Automation Script help
- Merkle tree to reduce processing
- How To Make Python Script Ignore Raised Errors
- Good frameworks for front-end?
- Spectate league of legends game and retrive data [Riot Games API]
- Would a CMMS job be good experience while I'm still in school?
- What do you guys do to practice your skills ?
- Copying Data into a New Programme
How can you know if your code is "professional" enough for production? Posted: 15 Sep 2020 01:50 PM PDT I have started making alot of scripts in python which automates manual work, and saves my company alot of time. All in all, my code works fantastic for the purpose it was made for.. But still, i am sure that many of you bright minds would laugh when you see my rinkydink code solutions.. So it makes me wonder if their are any frameworks or standards which your code need to meet or comply with in order to be taken serious in a professional matter? Mind you i have been programming python for about 9 months, and I am learning everyday, but you always here that some new smart it-company has made this insane-whatever-algorithme which is why Google will buy them for a gizillion dollors.. How the hell are thous guys writing their python compared to what i am doing? Is the mind-set: "if it works, it works" not good enough? [link] [comments] |
Microservice - Cases when scaling horizontaly may need extra care Posted: 15 Sep 2020 04:30 PM PDT Hi! I would like to know if I'm overthinking, just have valid cases where I could need to, ±, make sure messages are FIFO, miss something or/and if I'm just wrong (if so please teach me!) Context/my mind I'm trying to mitigate issues that could be caused by concurrent consumers on the overall state (not for a specific data) to process ALL messages with the usual solution. When I read about microservice it is like having to process messages in a specific order and lock (against conccurency from multiples consumers) are rares cases. But yet almost all cases I have in mind would need such special care. So I start thinking I'm in the wrong big time. I have actual no practical experience, and it is only all theory. What I currently have in my mind is actions done to and only from/by himself. Not (yet) about real conccurent changes/view but it should apply anyway. I also happens to be focused on my previous experiences which are mostly e-commerce or management softwares. I tried to look for answers but I only find patterns to solve the issue and no cases when it should really apply or patterns/ideas to mitigate the issue. Probably I'm not using the right word so here I'm. Expected case When the project start it is small, you have one message queue server and one consumer. From what I read, message queue seem to guarantee it will be FIFO. Exemple 1: If the user in a e-commerce add/change products then go to the checkout. Exemple 2: A timesheet where when you "submit" your time sheet you can't edit it back. In both case by the nature of the FIFO and eventual consistency everything will go as expected. The messages are processed in the same order as received, by the time the processor process the checkout/timesheet submission all other messages would have been processed. When you scale So now that you add a couples of consumers on the same message queue server because I need to. This mean each consumer could commit/save the result out of order (from the typical FIDO with one consumer). There could be many reason for that, some connectivity issue, discrepency between servers charges, ... Exemple 1: Expected/messages: I add product 1, change the quantity of product 1, add product 2, then checkout. Reality/events: Change the quantity of product 1, add product 1, checkout, add product 2 So when processing the checkout message, it would be off when generating the final invoice, sending the email, ... Also, the events would trigger the shipping/inventory microservice and they would be missing the product 2 events. (Here I'm assuming the checkout event is the trigger since it is logicaly when the company commit to provide the consumer with what he requested). For the inventory it isn't that bad to still process the "add product 2" later one. You could flag the order for manual review (and ultimatly cancel the order, refund it (partialy) or handle it as a backorder). Exemple 2: Expected/messages: I add one event on monday, I add one event on friday, I submit my time sheet Reality/events: I add one event on monday, I submit my timesheet, I add one event on friday In this case I can mitigate the issue but just letting messages be processed like the eventual consistency idea want since it would only make the state readonly. There could be no special processing triggered by this events in my exemple. But if we would trigger events, we would end with the same situation. Missing some informations. So Does I miss something or my cases can't blindly use the eventual consistency and would need some extra care? Even if I try to mitigate the issue as described? Thanks, I would like to give some reddit points as a kind of thanks but I can't :( [link] [comments] |
Posted: 15 Sep 2020 03:48 PM PDT Hi I've started learning C for college but I don't need to become an expert on it since I'm studying electrical and electronics engineering. I think the basics will be enough. I have 2 questions. Is there anything remarkable one could do himself with C? Is it worth spending a lot of time on? As I understand it's not very fit for videogame creation, but can I for example create simple phone apps etc.? After learning all the basic stuff about C, I want to learn either C++ or C# for videogame creation. Would learning and working on one of these languages damage my C knowledge? I need C for the first year of school. [link] [comments] |
Are hex and octal useful anymore? Posted: 15 Sep 2020 07:51 AM PDT True story: I have been a full-time programmer for a decade, using everything from SQL and Sybase to AWS, and have almost never had to use anything besides decimal. The only flirtation I've ever had with binary in my professional career has been the occasional use of the BIT datatype in SQL Server, and I've seen an enum using powers of two exactly once. Beyond knowing that FF = 255, I don't think I've ever had to use hexadecimal, and I don't think they even mentioned octal in college. Do "general" programmers in 2020 have any reason to be familiar with these once-indispensable numbering systems, beyond being aware of their existence? [link] [comments] |
Looking for open-source modern path-tracing renderer to tinker with Posted: 15 Sep 2020 10:14 PM PDT I've been working on an algorithm to accelerate path-tracing, and it's finally ready for testing. While it's passed all of the unit tests I've thrown at it, I'll need an actual 3D-rendering program to do full integration testing with. Ideally it would be relatively state-of-the-art, with at least CPU-only rendering (a GPU option is a welcome addition). I'm not too picky about the language. At the moment, I'm looking as Intel's OSPRay, but I'm not quite sold. If anyone has any recommendations or input I would greatly appreciate the help. [link] [comments] |
Why do some love gatekeeping in the programming community? Posted: 15 Sep 2020 09:16 PM PDT I've been talking to a group of people about neural networks recently, I'm pretty good at programming, and know the very basics of neural networks from Carykh and Tom Scott. However, the people I'm talking to are always gatekeeping the community, and ridiculing me, instead of actually providing any helpful information (They gatekeep even more when it comes to people who know less programming than me) I hope this is just a small group of toxic people in an otherwise friendly community :) [link] [comments] |
I don't wanna create 230+ Animations for my project in Java/Android Studio Posted: 15 Sep 2020 08:48 PM PDT Can someone help me? It would be more than just awesome, if someone could. :) [link] [comments] |
Do you use TDD, DDD or some other pre-development paradigm? Posted: 15 Sep 2020 08:45 PM PDT Just wondering what the consensus is if you use any of these, and if so, which ones? [link] [comments] |
I have to create a basic POC CRUD web app in two weeks, should I choose Django? Posted: 15 Sep 2020 08:36 PM PDT My background is primarily in desktop/mobile Java development. I haven't used Spring Boot before but it's on my radar. Have a little bit of previous experience using web technologies and JavaScript but haven't done anything like quiet like this. Was considering Node express apps but I haven't used that either. I have done a couple of projects in Python before.. is this the route to go? Basically the requirements are user authentication and crud functionality interfacing with MySQL. from what I'm reading it's batteries included and fits my needs but I want to make sure I'm not overlooking anything. Looking for the fastest and easiest development. Thank you for any input. Edit: I also have experience with SQLite, MySQL, and PostgreSQL [link] [comments] |
Powershell or python google form automation Posted: 15 Sep 2020 08:28 PM PDT Hello all, My college has implemented a google form to request the use of the gym. The sad part is that the form has a very inconvenient first page that we have to keep filling out over and over again. I've done 2 hours of google to no avail of how to fill the form out using either python or powershell. I am an absolute newbie and was hoping google would help teach me something new. After 2.5 hours of googling and trying I am now asking you all. Please help or refer me to the proper google search as my googlefu is still being honed. [link] [comments] |
Making an automatic QR code scanner Posted: 15 Sep 2020 07:56 PM PDT If I were to code a program which automatically detects a qr code on the screen and scans it at say, 5 second intervals, how would I approach such a task or has it been done bore? I considered perhaps constantly screenshotting and scanning the .png that way but it would be a really rought way of doing it [link] [comments] |
Posted: 15 Sep 2020 07:04 PM PDT I just made a change to the android app that is already published in the play store. Now I can run my app on a testing device. But when I make an apk and run on another device it doesn't work. Note: I change the first screen but after that, I undo that change. This is my manifest.xml <application <activity android:name=".First"></activity> <category android:name="android.intent.category.LAUNCHER" /> </activity> [link] [comments] |
Helloo!! I need your help. Im a beginner at programming. And Im using Pycharm. Posted: 15 Sep 2020 07:01 PM PDT How can i create a programthat will count from 0 to 100 by 2. When the count reaches 20,40,60,80 it will display the word xxxxx instead of 20,40,60,80. pls im lost [link] [comments] |
Posted: 15 Sep 2020 06:37 PM PDT Just would like to know , is the environment weird, is it fun , boring, tedious , how long have u been there ? [link] [comments] |
Where to put my encrypted password files? Posted: 15 Sep 2020 02:49 AM PDT I'm writing a program at the moment and I've figured out how to use the Python cryptography import to encrypt the passwords and sensitive data and decrypt them every time they are needed. My problem is now that txt file with the encrypted password is just sitting in a folder for everyone to open and look at. Is this a problem? And, if so, what should I do to make the files more secure so that they can't be accessed? [link] [comments] |
Licensing with Open Source Software Posted: 15 Sep 2020 06:03 PM PDT People always mention that Kotlin and Swift are open source languages and that's open-sourced great but does that mean that say and app I build using Apple's Swift or Android Studio's Kotlin must be open sourced as well. I'm pretty sure it doesn't but I've heard talk of licenses that require all things made from them to be open-sourced as well. [link] [comments] |
Posted: 15 Sep 2020 05:05 PM PDT I need some outside input on how to create this little system which I did not think would stump me. I'm making a little checkers application, and I don't know how to approach making some logic that will display the takeable areas (represented in a 2d array), including the areas from double-jumps, and triple-jumps, and so on. Furthermore, not only does it have to display it, but store references to the pieces that are takeable. In my first tests, I wrote up a recursive method that keeps looking for takeable areas, and doesn't allow itself to hit one area twice. This of course worked, but wasn't able to allow for advanced moves, such as jumps that go full circle and end up back in the original position, or crossing over positions that were already used. So then I was like, okay, I scrapped that logic and said "I'll just write up some logic that creates a bunch of unique paths!" Andd...6 hours later, I'm here. If anybody has ideas on how they'd make a system like this, I'm dying to know. Thank you! [link] [comments] |
Quick Python Automation Script help Posted: 15 Sep 2020 07:08 AM PDT Hello , I am a student trying to work on a project with Helium(python library) and I have a simple question. from helium import * start_chrome ('https://youtube.com') click(Button('Sign in')) write('automation1122333@gmail.com', into='email') press(ENTER) write('xxx', into='password') when i run the python script, the email is entered but the password is not. i kept having similar LookupErrors. can anyone help? thank you so much [link] [comments] |
Merkle tree to reduce processing Posted: 15 Sep 2020 12:35 PM PDT Hi all, I'm wondering if any bright engineers more experienced with merkle trees could assist me with an idea I have had. Perhaps a merkle tree isn't the right data structure to use at all, but any guidance would be appreciated. The scenario is that at work the system I'm building will have processed some data given to it and scheduled a message. In a future change, this message might not need to be delivered for until say ~4 years time. When the message should be sent to the recipient will actually be determined by the system. There are multiple configuration profiles that determine when the message should be delivered, and they change not uncommonly. The configuration profiles contain ~ 10 different data elements, e.g. Item 1: X Item 2: Y Item 3: Z etc And there might be ~20 different profiles that a message might use. The system will attempt to pick the config profile by matching on the data elements mentioned within the profile and the data given to us. The problem: If we process the given data against the current configuration profiles and schedule a message to be delivered in 3 years time, then somebody changes the configuration, it might be that we now need to change the message to only be sent in 1 months time. (I know the scenario might sound a bit unrealistic, but I'm trying to be a bit vague intentionally here. Just understand that this is a real scenario). The issue is that we might have hundreds of thousands of records we now need to reprocess every time a configuration item changes because it could drastically affect the delivery date of each one, and we'd need to reprocess them all. This is obviously very expensive. Simply storing a hash of the configuration profile chosen wouldn't be terribly helpful, as all we'd know is that the one we chose changed, but one that we _didn't_ change might now be a better fit. This is where I'm wondering if a merkle tree could assist. Maybe when a configuration profile is changed we'd be able to only process a subset of this data. I appreciate any opinions. Perhaps this is a misuse of the data structure and it won't work, but if you have any alternatives I'd love to hear them. I understand that this might be more of a complex question that typically asked here, but I'd love to bounce the idea off some sharp minds if they're willing. Thanks [link] [comments] |
How To Make Python Script Ignore Raised Errors Posted: 15 Sep 2020 08:37 AM PDT Hi, I have this script that runs a check on (sub)domain names.But some (sub)domain names are not in the correct format.I would like the script to ignore this "bad" (sub)domain names. i.e i would like python to ignore the errors shown by the idna module because they are making the scripts crash.How can this be done.Below shows the error that crashes the script https://i.imgur.com/wY3LJ7c.png Thanks [link] [comments] |
Good frameworks for front-end? Posted: 15 Sep 2020 03:51 PM PDT I used Skeleton for years and have not been coding for years. With HTML5, is there any newer and more completed frameworks that you would suggest? [link] [comments] |
Spectate league of legends game and retrive data [Riot Games API] Posted: 15 Sep 2020 03:07 PM PDT I want to code a script to retrieve data from league of legends game while spectating. I want to open the league of legends client, join a game as a spectator, then run the script, and the script collects all the game data, champ damage, gold etc and save that to a json file.then display that data nicely on a webpage and the gold and players damage as graphs. Does riot games apis provide such a thing or if there's anything on github i can use for this kinda job ? thanks in advance :") [link] [comments] |
Would a CMMS job be good experience while I'm still in school? Posted: 15 Sep 2020 02:59 PM PDT |
What do you guys do to practice your skills ? Posted: 15 Sep 2020 10:18 AM PDT Id like to know what you all do to practice your coding skills [link] [comments] |
Copying Data into a New Programme Posted: 15 Sep 2020 07:47 AM PDT I made some simple Returns Management Software for work a few years ago. I've been trying to copy the data from that old system into a more modern one. I ran into an issue with deserializing the Files that store customer data in my new software. The new software is trying the deserialize the old files into a "ReturnsFile" class that is an exact copy of the class used in the old setup, for some reason I assumed this would work. Am I being an idiot? [link] [comments] |
You are subscribed to email updates from AskProgramming. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment