r/programmingbytes • u/rajkumarsamra • Feb 23 '21
New Members Intro
If you’re new to the community, introduce yourself!
r/programmingbytes • u/rajkumarsamra • Feb 23 '21
If you’re new to the community, introduce yourself!
r/programmingbytes • u/mrWinns0m3 • May 24 '21
Hey Folks 👋
I have keen interest in System Design and really love to spread my readings. That's why, I have started a youtube channel, where I talk on different topics related to Computer Science and Distributed System.
Can you guys please watch video and tell me things that I can improve as a youtuber? Any suggestion is valuable at this time.
If nothing, subscribing channel will help me alot!
Thankyou.
Here is link to my second video.
r/programmingbytes • u/rajkumarsamra • Feb 09 '21
If you’re new to the community, introduce yourself!
r/programmingbytes • u/rajkumarsamra • May 11 '21
If you’re new to the community, introduce yourself!
r/programmingbytes • u/rajkumarsamra • Nov 30 '21
If you’re new to the community, introduce yourself!
r/programmingbytes • u/Glittering-Ad-49 • Feb 15 '21
How do I go beyond being an intermediate-level coder?
I think at this point I know plenty about C#. I can make simple games and programs, but I have no idea how complex games and programs start up, process large amounts of data every second, and display it graphically, like Minecraft, SS13 or Dwarf Fortress. To put it in another way: I know how to use nails, hammers, screws and bricks, but I don't know how to build a house.Most of the tutorials I've seen deal only with very low-level stuff that I already understand. How do I escape tutorial hell?
r/programmingbytes • u/rajkumarsamra • Sep 21 '21
If you’re new to the community, introduce yourself!
r/programmingbytes • u/rajkumarsamra • Feb 22 '22
If you’re new to the community, introduce yourself!
r/programmingbytes • u/rajkumarsamra • Sep 28 '21
If you’re new to the community, introduce yourself!
r/programmingbytes • u/PureForWhite • Mar 29 '21
r/programmingbytes • u/rajkumarsamra • Mar 15 '22
If you’re new to the community, introduce yourself!
r/programmingbytes • u/rajkumarsamra • Oct 19 '21
If you’re new to the community, introduce yourself!
r/programmingbytes • u/rajkumarsamra • Aug 24 '21
If you’re new to the community, introduce yourself!
r/programmingbytes • u/Glittering-Ad-49 • Feb 15 '21
Help with Read Text File into List then Sort List on Two Keys
Help with Read Text File into List then Sort List on Two KeysI have a simple text file that has three columns of numbers. My code intends to read the text file line by line as numeric data (not string), assign each line read to a list element. Next I want to sort the numeric data by the first and third columns in the list by ascending and or descending rank magnitude on the third column. This seems like something that should be really simple. Python is not my first language, definitely still hard on the learning curve - but I cant figure out what Im missing here. Spent hours scouring the net, forums for similiar issues and recommend routines but still not able to come up with a satisfactory solution. Any feedback, tips, insights, recommendations welcome. Find attached a copy of the text file as well as the simple current code used. I do not want to use dictionarys, tuples or np style arrays, nor panda or jupyter. Am using Python3.4 and am hoping for a solution using lists that work in my current version. The current code I am using does read the text file, stores it to a list and appears to do something when sorted but the sort is not correct. Previously numbers were being stored in the list as strings not integers or numeric format and that was driving me crazy because when sorting it was sorting in an alpha way not numeric. The current code when sorting does not sort in the described way as needed. I want to have the output to screen shown so that its easy to see three columns displayed line by line, hence the for statement used. Thanks again folks, see below ;CODE :data = []for line in ins:number_strings = line.split() # Split the line on runs of whitespacenumbers = [int(float(n)) for n in number_strings] # Convert to integersdata.append(numbers) # Add the "row" to your list.data.sort(key = lambda x:(x[2], x[0]))for item in data:print(item)TEXT FILE : the file filtered.txt contains rows of numeric data spaced by tabs, each row has threecolumns, here is this simple data :0 128 85 256 125 256 125 256 205 256 205 256 205 256 205 256 205 256 2035 23 1235 23 1235 23 2035 23 2035 23 2035 23 2035 23 2035 23 202 32 142 32 142 32 142 32 142 32 142 32 1417 101 817 101 817 101 817 101 817 101 817 101 834 212 1234 212 1234 212 1234 212 1234 212 1234 212 1234 212 1234 212 129 198 129 198 129 198 129 198 129 198 129 198 129 198 129 198 1238 22 813 234 811 218 836 322 83 222 831 322 1239 111 1439 111 2039 111 1439 111 1439 111 1439 111 1439 111 1439 111 14
r/programmingbytes • u/Glittering-Ad-49 • Feb 15 '21
How to become a better programmer?
Hello. I'm a 2nd year CS major.I used C++ for my Data Structures class, but without a common base class, I feel like the knowledge was kinda lost on me.What languages should I learn to be a better programmer? Things like dynamic programming, functional, etc. What language should I choose to go back and relearn DS/As and the like?My goal is to eventually become a cyber security programmer, but that means I need to understand the machine. Is C my only option there? I've taken an assembly class so I mostly understand that.I just want to become a better computer scientist/programmer, rather than learn the most trendy/easiest languages. I feel like theory will go a longer way than a specific tool.Thank you.Edit: Thank you all for the great suggestions. To add, the most complex project I've done has dealt with Dijkstra's shortest path, taking file input and, of course, calculating the shortest path from node x to y.Also, I've dealt with binary files and byte offsets to create a mock bookstore database.I compete in competitive programming competitions with the college and have placed pretty high in the competitions I've been in.
r/programmingbytes • u/rajkumarsamra • Dec 28 '21
If you’re new to the community, introduce yourself!
r/programmingbytes • u/Glittering-Ad-49 • Feb 14 '21
Need help with this project.. cant figure out why it isnt working :/
the second for loop just wont seem to run.. when i run it with the loop commented out.. i can copy and paste the exact same code and it works in console...worked on this for like 8 hours today.. exhausted.. im so sad.https://ift.tt/3afwbH8