Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
Search - "landscape"
This is a view from a rooftop in NYC that I sometimes get the pleasure to work from. I really like the view and it’s pretty quiet usually. It also overlooks one of my favorite buildings, the Empire State Building.
I’m looking forward to seeing everyone else’s desks, setups, and remote/outdoor workspaces.
We’ll be featuring them on our recently launched devRant Instagram account, devDesks (https://www.instagram.com/devdesks).55
The smallest utility made its way to being the largest companies must-have, the most critical part of the whole development landscape.
Using just plain C, Git can shred huge amounts of data insanely fast. It never gets old.
Git is a developer's scalpel.12
I just spent 3 HOURS(!!!) on coding a program that simply DRAWS A HILLS LANDSCAPE and this is what I got. 3h of wasted time.20
My boss literally spends half an hour finger-fucking his phone on the mobile site to find "bugs", that I can't replicate. A combination like: swipe, pinch, landscape, portrait, back pinch, open new tab, close tab, ash cigarette on phone, dunk in toilet, dry, double tap... Aha I've found a bug, there's 0.5 pixel line of space between the bag header and the browser bar.14
I am writing to you today to ask you for a favor.
Please support landscape mode, viewing landscape images in portrait mode really upsets my right brain hemisphere. There is a conflict with what my synapses think but this is another story.
when it's 36*C / 97*F in the city and you pack your laptop into your backpack and flee on to the swiss alps. To work on a new website at a beautiful landscape, on green meadows, cows and agreeable 18*C / 64*F.
And getting payed for this... This is life!12
This codebase reminds me of a large, rotting, barely-alive dromedary. Parts of it function quite well, but large swaths of it are necrotic, foul-smelling, and even rotted away. Were it healthy, it would still exude a terrible stench, and its temperament would easily match: If you managed to get near enough, it would spit and try to bite you.
Swaths of code are commented out -- entire classes simply don't exist anymore, and the ghosts of several-year-old methods still linger. Despite this, large and deprecated (yet uncommented) sections of the application depend on those undefined classes/methods. Navigating the codebase is akin to walking through a minefield: if you reference the wrong method on the wrong object... fatal exception. And being very new to this project, I have no idea what's live and what isn't.
The naming scheme doesn't help, either: it's impossible to know what's still functional without asking because nothing's marked. Instead, I've been working backwards from multiple points to try to find code paths between objects/events. I'm rarely successful.
Not only can I not tell what's live code and what's interactive death, the code itself is messy and awful. Don't get me wrong: it's solid. There's virtually no way to break it. But trying to understand it ... I feel like I'm looking at a huge, sprawling MC Escher landscape through a microscope. (No exaggeration: a magnifying glass would show a larger view that included paradoxes / dubious structures, and these are not readily apparent to me.)
It's also rife with bad practices. Terrible naming choices consisting of arbitrarily-placed acronyms, bad word choices, and simply inconsistent naming (hash vs hsh vs hs vs h). The indentation is a mix of spaces and tabs. There's magic numbers galore, and variable re-use -- not just local scope, but public methods on objects as well. I've also seen countless assignments within conditionals, and these are apparently intentional! The reasoning: to ensure the code only runs with non-falsey values. While that would indeed work, an early return/next is much clearer, and reduces indentation. It's just. reading through this makes me cringe or literally throw my hands up in frustration and exasperation.
Honestly though, I know why the code is so terrible, and I understand:
The architect/sole dev was new to coding -- I have 5-7 times his current experience -- and the project scope expanded significantly and extremely quickly, and also broke all of its foundation rules. Non-developers also dictated architecture, creating further mess. It's the stuff of nightmares. Looking at what he was able to accomplish, though, I'm impressed. Horrified at the details, but impressed with the whole.
This project is the epitome of "I wrote it quickly and just made it work."
Fortunately, he and I both agree that a rewrite is in order. but at 76k lines (without styling or configuration), it's quite the undertaking.
Amusing: after running the codebase through `wc`, it apparently sums to half the word count of "War and Peace"15
Pm: OK what you've got here?
Me: a bug, haven't tested yet
Pm: *grabs a phone* follow me we will do it
Pm: *attaches it, goes to the DOM inspector, starts clicking random divs* OK where the fuck the canvas is?
Me: uhmm there in this tree
Pm: *inspects the canvas element for a few sec* what do you think?
Me: ... ... Well the bug was that it wouldn't resize properly after you change to landscape
Pm: *rotates the phone back and forth looking at the canvas properties*
Pm: gotcha, see? Width and height
Me: yes, those are the default html prope...
Pm: now see, there's another width and height. That's the malfunction right there. I'm telling you.
Me: no, this is css. It overrides the html properties there
Pm: well, say what, it doesn't
Me: no it does, that's how html works for decades already
Pm: but why does that not work properly then? Mm? *stares at me wide open*
Me: well I need to do some testing before I can sa...
Pm: then what do you think we are doing now?
Me: we jus...
Pm: *gets a phone call, stands up and walks away*4
My Typical Project
1. Identify common problem
2. Investigate options
3. Come up with clever solution
4. Implement backend solution
5. Get fed up with current frontend
6. Investigate other frontend
8. Lie down in a corner
9. Cry myself to sleep4
You know that feeling when you rotate one of your monitors from landscape to portrait and can see all the code at once...9
I was assigned a ticket which was about a drop down menu which was not aligning properly.
Turns out the drop-down was positioned absolutely and my co-worker (read bestie) had written media query for every 10 pixels to match the position for mobile and desktop devices (from 320px to 1040px and beyond ~150 lines for a drop-down). No one noticed any flaw for few weeks until one of the QA had to check the site in landscape mode on mobile device.
iOS 11 you buggy piece of shit!
Layouts breaking all around, can’t figure out if it’s in landscape or portrait mode, lock menu disapearing, minimizing apps breaks them...
Oooh, you invented a GENIUS NEW option to turn mobile data on from launch control, but WiFi and Bluetooth buttons don’t turn these off, but disconnect from current network... WHOSE SMART ASS IDEA WAS THAT? BURN IN UX HELL ASSHOLE!
Haven’t seen a worse update since Vista...6
So nearly done with the work app and I need these images scaled accurately (it's for comparing pupils) my problem is I'd normally ask my brother to make the images but he is busy with uni for the next few weeks.
I'm just wondering is there a tool I can use that can rescale images (I have images from the iPhone app, and I gotta say I had to add in % changes despite the proper dpi sizing), I'm looking at the Android documentation but what's funny is in the listed resolutions OnePlus 3 wasn't included (along with some other newer resolutions) lol, and also Wikipedia for OnePlus 3 has the width and height switched (for some reason the author imagined the phone is also in landscape lol).
So do you guys know of something I can use? Programming is one thing but designer is another :/4
What's worse than filming in vertical?
Filming in landscape, but getting it wrong anyway.
I blurred out most of it because reasons.3
"A developer? What, like a landscape gardener?"
No idea to this day what they meant, but it's always stuck with me!3
I feel like the web frontend landscape has gone to hell...
It used to be a priority to develop lean front end applications that load fast and work the same on most devices. If resources are required you try to share them. I have always liked the way this was solved using CDN.
Proper workflow: include some small libs you might need, script your interactions, test site, deliver.
I have even considered to develop a library that makes it easy to develop with CDN (and dependencies) in mind but I don't even know if it will be worth it as more and more people tend to move away from it.
For those keeping track of what inwas doing here: https://devrant.com/rants/1641742/...
Inhave been playing around woth fractals and making trees (although it wasnt 3 dementional) i have been taking time to learn things there regardless and had an attempt at making a landscape using Perlin noise procedurally generated by the computer
I am planning on releasing the code as soon as i figure out making these trees geberate at certain points of the land and firstly, make it branch in a 3 dementional space
Update of the land
Although i dont have the most time to so this and had to learn java in the process to move away from the limitations i had in the browser. It is a fun experiance and good break away from my actual job.
Ill see how it goes while working on this
Any wireless electronics geeks here?
When my phone switches between landscape and portrait orientations, so will It's internal antenna, right? My WiFi router has dual antennas. Does keeping one antenna parallel and the other one vertical to the ground improve signal reception to my phone?16
Friend: why do you hate react so much ?
Me: Because web development should be all about browser compatibility ( yeah even for that shitty ie8 ) and usability not spa and shitty made animation that breaks when you switch from landscape to portrait .
Friend: then why do you use it ?
Am I the only one who thinks monitors turned to portrait looks dumb and can’t possibly be more useful? The number one reason people give when I ask is that they can fit more code on the screen. I don’t know about you but I don’t have the ability to glance at an entire screen of code in portrait or landscape and understand it immediately.6
Any chance we can do a polling system?
I studied anthropology and ive been in this community for almost 2 years. Have discovered the coding landscape at pretty much the same time and i must say its an interesting bunch of people.
I came on here to learn about the geek way and how to become a better dev. Seeing the rants has been really helpful!
But i think the polling system could lead to interesting understanding. Of the community both for your own app (for marketing bullshit purposes) but also for us.
Id love to know what kind of music people listen to but in a summarized way rather than a unending list of comments which will be harder to extract the information from!9
What fascinates me the most about the industry we work in, is the disruptive and transformative nature of ideas the come out every day.
The technology we use augmented with the software we build have the capability to disrupt and shift the existing paradigm of absolutely any industry today. The solution we construct changes the way in which an industry functions, and brings the horizon closer while making the ocean wider.
So does our capability to design and transform the existing landscape with the ability to visualise the many dimensions of a problem that are otherwise overlooked by others.
I had one of the best feelings today when 3 extremely prolific doctors in the Indian opthalmological industry told me how the solution i built could change the way in which they have been working for almost 20 years ... For the best ...
It's just such a great feeling to know every line of code we write , execute and debug would one day disrupt and transform an otherwise traditional landscape.
So hooray to us and the things we invent, because at the end of the day a PC to code and internet for the outreach ( and stackoverflow ofcourse. 😅 ) Is all that's needed to bring about a metamorphosis of conventional thoughts and theories.1
Spend hours implementing a working landscape design for mobile app. Priority #1 most important feature. Review meeting attendees decide not to support landscape mode because...well, for no good reason at all.
DevRant landscape mode for ipad? Turning my head sideways doesn't make this keyboard feel very smart :P2
I hate my tablet...
It is a giveaway from my sister and it is a bit damaged. It's unresponsive on a straight line from the one side on the middle of the screen to the other.
It's an old tablet, so it has not much memory and it lags a lot, especially during app updates.
To "work" with it, I have to switch from landscape to portrait mode and vice versa, because many apps put dialogs exactly in the middle of the screen, on the unresponsive part.
But what I hate most about this situation is that there are apps that are locked on portrait mode and I can't access them... It wouldn't hurt much if all apps could rotate from one mode to the other!!!
I'm on limited funds for quite a while, so I'm stuck with it for now. Meh... ☹4
So, we (I'm the backend guy and work with a UI dev) are building this product portfolio management tool for our client and they have a set of 250 users. The team has two point of contacts for the 250 users who maintain the master data, help users with data quality, tool guidance, reporting and other stuff. So one day one of these two support users come to me and say : Hey I'm not able to add new transactions coz a customer is missing.
We have the provision to create / maintain customers.
I check the production DB, application code, try creating the customer and then the transaction, everything works perfectly fine.
I ask the user for a screen sharing session, the user starts reproducing the error like this :
We have a 3 system landscape - Dev / Test and Prod
U : Logs into the test system url, creates the customer.
U : Points out the toast saying customer creation is successful.
U : opens a new tab, opens the production system, tries creating the transaction, searches for the customer and says " see !! cant find the customer here ! the master data management apps never work !! "
Damn it, Spotify. Were your product owner and scrum master away and your dev team still drunk after last night's after work so that they disobeyed every "definition-of"-lists and ignored all the automated tests failure warnings? Give me back my favorite feature to be able to play a full folder instead of single playlists...
I need my music when trying to code in an office landscape 😠
First allocate all day..
W10 Update time !
Then, watch as your multi-monitor setup loses its drivers and only 2 of your 4 monitors are working..
Meanwhile, still not done all the updates, and CPU is running wild doing some kind of indexing..
A bit like playing wack a mole as you try and guess which monitor Windows is going to boot to this time around..
Oh look, its gone for the portrait one, this time in landscape mode, good thing I can tilt my head enough..
Also a good thing I have one of those icon position restore apps, or they would be all over the place again once I get things back to where they should be..
Have you done your updates . . .6
I realised, that Git now has the same problem as Windows:
Its widespread because its widespread.
There are, especially for smaller projects, few reasons to actually use Git instead any other VCS.
Look at the landscape of free repo hosting.
There are hundreds, if not thousands of free Git hosters.
A handful of free Mercurial hosters,
Launchpad for Bazaar and I didn't even find a free SVN hoster.
Everyone uses Git, because there are Services for it, and there are Services for it, because everyone uses it.5
Does anyone even use their phone in landscape mode other than when watching a video or playing a game?8
Former android fan, I’ve been using iPhone SE for a while, and now I’m ready to give feedback. We are talking about brand new, iOS 11.2.2 device, never jailbraked (jailbroken?) or made anything fucked up to.
The main problem is battery life. It’s poor. I mean, my cheap ass Meizu m3s stands for about three times longer. Now I always need to carry power bank or charger around, keeping it up from one outlet to another.
iOS 11 is unstable and flawed. Music widget on lock screen freezes randomly, ui falls apart sometimes, apps sometimes start in landscape mode. I never found android ui falling apart, just like webpage marked up by interns.
Transferring files to Linux PC is huge pain in the ass. Nuff said.
Aaaand... that’s all. There is literally only three problems present.
On the other hand, there is huge advantages over android:
Speed. It’s unbeatable. It’s absolutely stunning. Need camera? Here it is, quarter second away. Android camera needed straight 15 seconds to start up. Taking picture? Here it is, flawless as always. Zero motion blur, gamma is ideal, focus is so sharp so you may hurt your eyes. Need 100 pictures? Here you go, just press the button and hold it. Maybe s9 or another shiny ass android takes pictures as fast as iPhone, but I bet my iPhone will be taking pictures same flawlessly after 5 years, while your android will probably become sluggish ass piece of crap.
Not. A. Single. Fucking. Lag.
Asphalt 8? 60 FPS all the way down. 2GIS? Fraction of a second away. That’s it, that’s how it have to be.
Sound quality. Just as neat as my Sansa Clip. EarPods are crap, so I’m using my SE215. Not going to ever come back to Sansa. Xperia TX had much less quality audio btw.
Apps. As long as the whole enterprise world sucking Apple’s dick, apps are running silky smooth and the things are not going to change. Come on. Apple is the king nowadays, admit it or not.
Keyboard is amazing. Screen is amazing. It’s just that pleasing. The sounds iPhone makes are great, while android sounds piss me off and making me hold myself from throwing the phone straight to the wall.
iPhone makes me feel cared about. Everything is on it’s place, everything fits perfectly. You are watching YouTube, you need to adjust volume and volume bar appears as tiny strip on the very top, just to not distract you. Make screenshot, draw something on it, share and hit delete. Every action you need is one tap away. Look up word? One tap away. Position the cursor between words? Polished as fuck, here you go, have your handy magnifying glass. Adblock in safari? Install it from the App Store and it will be literally two taps away, right at the settings. No VPN needed. Safari doesn’t become slow with Adblock, it’s just the same amazingly fast browser, but without ads. And Apple Music is just one dollar a month for students, filled with high quality songs.
Even google apps working better on iOS.
The advantages are clear for me, while downsides aren’t significant. @irene, you wanted to know what I’ll tell after a while, so I’m saying it proudly:
I’m never ever coming back to android.12
Is anybody using skype on android. Recently it got updated and is bloody useless, can't even share stuff over it anymore. While having a video call, rotating to landscape doesn't work most of the time. This is the only fucking app from MS I am still using, only because of my family.3
After hassling and saying all the benefits of Linux finally we agreed that she'd give Linux a go on her old laptop and after all the set ups she changes the background picture to windows xp's landscape just to feel good. Change never comes with some people.
Uhmm... anyone having the same picture Problem on devrant.io when using your mobile in landscape mode?8
I don't think devrant would work very well in landscape orientation, but could we please get reverse portrait orientation?
I don't know shit about app development but I'm pretty sure that is an option.8
Worked for many hours with CSS to make a website look good in landscape mode and what's the solution I came with? Show a black screen asking the user to use portrait...
Defeated again by CSS.5
I installed this app called Android P rotation. Link below -
This is how devrant behaves when turned to landscape mode1
Would anyone else like to see a landscape view in the DevRant app, especially when when viewing image attachment in full screen?
My main problem with programming on android phones(not for android) is it's keyboard, almost none of default layouts don't have the needed buttons(i.e. ; [ ] ( ) ...), I managed to find a good one "Hacker's Keyboard", 5 rows almost every button(even shift, ctrl and arrow keys). But here's the problem with this: it's buttons width is very low on portrait mode, on landscape, even if you're used to lanscape typing, you won't be able to see shit because it's covering most of screen.
"Hey, what about an external keyboard", well it's not totally a bad idea, but you would need a stand for your phone, and if it's connecting via usb and not bt, you have to buy a usb2[yourPort] convertion, besides I want to hold my phone while typing "How about you make you make your own bt/usb attachable mini keyboard for your phone.", Wow that's a very good idea, it would take maybe a year to make it, but maybe instead of making the whole thing myself I can buy a mini keyboard and make the attaching part myself, it can't be THAT hard, right? Need a 3D printer(√), need time(have alot of it), need to design it(no problem), now start... uhhh nevermind, who am I kiddin', I won't be able to make such a thing, just use that "Hacker's Keyboard".36
The industry is sometimes sad and hilarious at the same time. There was a townhall at my workplace and our country head was talking about all the new tech we were working on. Now he is a good business person but I doubt him as a tech guy. And then he went on ranting about AI and ML and how they are to going change the software landscape and how developer as a profession will become obsolete. He said the technology will reach up to a point where we no longer need to write code to build software. Obviously, I couldn't digest it and confronted him the moment after the event.
Me: so why do you think writing code will become outdated?
Him: it's just that we will be able to create a technology through which we can simply command a machine to build a software.
Me: oh. But someone needs to tell the machine how to do it right?
Him: yes. We have to train the machine to act on these commands.
Me: and do you know how you "train" these machines?
Me: by writing code.2
Dear @dfox and @trogus, please make the app go landscape for large screen devices like iPads, now I have to hold it always in portrait mode and it is highly uncomfortable at this size of screen4
So, I was using YT on my phone now since I'm at my family over the holidays. So far so good.
I just noticed, that google apparently cant even make apps good. FFS, I'm playing a YT vid (fullscreen, landscape) and then close fullscreen.
Guess how it looks now:
a) landscape mode
b) portrait mode
c) locked portrait mode until you go back to the fuckin homescreen where it rotates again
PHP features the best of the wicked minds.
In this legacy but still used project just so to save the scourge opening tcp connection (I suppose) some guy wrapped js libs like jQuery, mootools in a script tag.. In individual php files. Then from a main.php include all those libraries. This produces a 2Mb file to send to the client and it's not even compressed. This guy never had any thought about maintenance.
This is one symptom of the problem with PHP that every company developed or have in-house undocumented unmaintained frameworks made by devs without any idea about testing, security and more.
Gosh in a previous work I've seen a PHP cron that used arguments passed to a switch case of 25 cases.
It took 19 years for the language to get a standard, meanwhile leaving the web landscape as a mess of bad coding practices, bad design practices, SQL injections, outdated tutorials and more. PHP is the example that it's not because it's used on almost all the web that it's good, it only means that's it's cheap! Cheap like asking a red neck to build you a car and he tows (deploy) it to your house with his own tow truck he built.
So as a student I often wonder how my future workplace will look like. So..
Show us your workspace! And not just the desk you sit by but the bigger picture. Personal office? Open landscape? Lonesome forgotten room in the basement of the building?
And which is the best? Close to the team to cooperate or fortress of solitude?2
Hey, I got this new web project, but to be honest I haven’t coded much web in a few years and I’ve heard the landscape changed a bit. You are the most up-to date web dev around here right?
-The actual term is Front End engineer, but yeah, I’m the right guy. I do web in 2016. Visualisations, music players, flying drones that play football, you name it. I just came back from JsConf and ReactConf, so I know the latest technologies to create web apps.
Cool. I need to create a page that displays the latest activity from the users, so I just need to get the data from the REST endpoint and display it in some sort of filterable table, and update it if anything changes in the server. I was thinking maybe using jQuery to fetch and display the data?
read full article at https://hackernoon.com/how-it-feels...1
@dfox & @trogus
Any chance of the tablet versions of DevRant to have rotatable interfaces? I always keep my iPad on my Smart Cover which is in landscape.
I wish the iOS app could be used in landscape mode on iPad. It would allow us to view the algo feed and any other feed side by side for example.
"This deal is an important step towards correcting a situation which has allowed a few companies to earn huge sums of money without properly remunerating the thousands of creatives and journalists whose work they depend on.
At the same time, this deal contains numerous provisions which will guarantee that the internet remains a space for free expression. These provisions were not in themselves necessary because the directive will not be creating any new rights for rights holders. Yet we listened to the concerns raised and chose to doubly guarantee the freedom of expression. The ‘meme’, the ‘gif’, the ‘snippet’ are now more protected than ever before.
I am also glad that the text agreed today pays particular attention to sheltering start-ups. Tomorrow’s leading companies are the start-ups of today and diversity depends on a deep pool of innovative, dynamic, young companies.
This is a deal which protects people’s living, safeguards democracy by defending a diverse media landscape, entrenches freedom of expression, and encourages start-ups and technological development. It helps make the internet ready for the future, a space which benefits everyone, not only a powerful few."
- Axel Voss, 2019
Would it be possible to allow the iPad app to rotate? I only ever use it in landscape unless forced, because my typing speed and accuracy take a nosedive with the smaller keyboard...2
Interesting defect... I opened from a notification while watching a video in landscape. @dfox @trogus
Android Pixel 31
If the project is the landscape of the client's requirements and the code is the map into it.
Where in the f*cking abyss am I right now?? #LegacyCodes1
I have a live example. Some smart colleague decided today would be a great day to bring a toddler to the office. Too bad we sit in an open landscape type of office. Now everyone can hear how lovely she/he/it is
@dfox @trogus Thanks for the update. Can you look at adding the ability to view images in Landscape mode? That might allow one to view finer details especially on a small phone. The ability to zoom in could also be a bonus.1
Rant at samsung tablet design. Those fucking touch buttons are shit. How the fuck am i supposed to hold my tablet comfortably in landscape mode when every 5 fucking seconds i accidentally press the buttons? This design has no place on any device larger than 6". From now on its physical buttons or on screen only. They dont even provide a simple non-hacky root method to turn them the fuck off and replace with on screen android buttons.
I really enjoy having a tablet and i find them incredibly useful. My only problem im having is that i seem to ALWAYS press something by accident. If its not my hand touching the samsung buttons its my headphone cable gently brushing against the screen.
I need to write an app that will lock out all input to my device until i do a certain gesture on the screen, something that cant easily be mistaken like a 4 finger infinity 😂😂2
After a long and exhausting progress that feels like it took days! (maybe a day lol). I came to the conclusion that StoryBoard is probably one of the biggest pains in the universe. I tried to center a UIImage View for an eternity to work both with landscape and portriat and continued to get vaying results with no actual pattern whatsoever.... One day I woke up and there was actually more textfields than were originally put on...... wahhhhh?
Within this eternity I decided that my only hope against losing all sanity and bashing my head against a keyboard screaming "#$%# you Xcode!" was to do the UI in AutoLayout Programmatically. Took me 1 hour.... thats it... Just one. Instant love. haha
Okay Im done now. Have a great day devRanters!
Kinda’ NOT(x+x) = rant, but still would like to have some way of direct message system in the app, i guess it will be added in the near future but im getting more frustrated by the hour when not being able to communicate directly with a user without a mention publicly and offtopic’ing the main rant’s subject.
Another thing would be cool to have the app in landscape mode without losing its ui/ux integrity. Think “iphone 6” ergonomics when at restful position.
Just realized how monstrous this app could get and be if the team grew and started implementing shit ton of APIs to connect and centralize every coding dev scheme.
And not sure if its okay or not but, I just mentioned myself! XD iMessages dejavu?3
Feature request: please allow the app to work in landscape and rotate. I can't get to the hamburger menu in bottom right due to broken screen3
Any tips for good practices of @media queries for responsive design (portrait and landscape) ?9
Why are animations slow in portrait mode in android? Please help. When I use translate animations in landscape mode, they run quite well. But when I run the app in portrait mode, it’s sooooooooo laggy. PLEASE HELP!2
if rotation is enabled and you open a rant keeping your phone in landscape position, app goes landscape for no reason and comes back to portrait.1
We're preparing for our school leaving exams. Everyone has to choose at least one subject in addition to required stuff (like mathematics). Me and some other guy in my class chose IT, becausr it has programming.
Today in class we had to do last years test, which required us yo make a simple program. It had to load a file with 1000 binary digits, find which number is the smallest/biggest and which line are they on. Not a big deal, we were learning about that last year so I was done in 20 minutes. My friend asked me to help me with debugging why his code didn't work correctly.
When I saw it I wanted to pres ctrl+a, backspace, ctrl+s. It was the worst code I have ever read. He was storing the biggest/smallest numbers and line numbers in global variables. Ok, maybe not the best approach, but ut should work. BUT. He then passed all those variables, as well as the file handle, to a function that looked like:
void count(int x, int y, int z, int a, File b).
All his processing was done there with a
while(!b.eof()) block and a bunch of nested for loops and if/else statements. I asked him how does he know which parameter is what. He responded with, quote: "I just scroll to the top and see which variables I passed". I'm worried he might not pass that exam (to pass it you need one point. for real).
Also, @dfox, can we please get landscape mode? At least while typing. I feel like I pressed backspace more than other keys combined.
DevRant gets very confused about orientation. Exactly upside down for some screens (landscape), and portrait only for others. To the devs: I feel you. Sincerely—a veteran of the rotation trenches.2