Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
 
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Search - "part1"
		
- 
				    					
					
					Believe it or not, none of these mices are working. This is my traveling setup, this laptop used to be a gaming computer, but now it's just really tired (but it still can run servers so it's k) 5 5
- 
				    					
					
					At work we have to split a potentially large ID into 2 10-digit long parts that will be passed to an outside system that will later return them with some more data to us.
 
 A colleague had implemented it using regular expression, it passed code review, everything was ok, until he noticed a potential problem. For some cases, because the outside system stores them as int and therefore will remove any leading zeros, there will be no way to reconstruct the number.
 So we brainstorm and I propose ether a modified regex, or to just use math like part1 = id % 10^10 and part2 = floor(id % 10^10) and then we can reconstruct it simply by: part2 * 10000000000 + part1
 
 Colleague: - Well, the regex will be faster, there won't be any calculations
 Me: - :| I disagree but ok..
 
 We do some more brainstorming and testing and find a case where the proposed new regex fails as well
 So I bring up my previous proposal, I explain what exactly it does.
 
 Colleague: - I don't like the math, it has calculations, which won't be needed before we reach the 11th digit
 
 Have I missed some major development in computer hardware? When did they become bad/slow at doing math? :|8
- 
				    					
					
					!rant
 I've made a web page, which is divided in two parts which basically are the same thing but with different designs.
 Can any of you please tell me which one should i remove from the project
 
 Part1: http://propika.com/
 Part2: http://propika.com/meshume/
 
 I would like to thank in advance anyone who is willing to give me an idea !3



