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 - "colon"
-
Made me laugh so hard thinking about how often a semi-colon has been my source of depression & self injury14
-
It doesn't matter what I'm programming in, every time my wife sees me writing code she'll tell me "I think you forgot a semi-colon there".
I guess it was funny the first 3 times, but after 10 years, every day?22 -
4 years ago I was placed on probation for not having the special format in source control check in comments. When I asked, the 'special format' was
clearly documented on page 18, sub-section 4, sub-paragraph 2, "All check in comments will include the solution name, separated by a colon,
and why the code was changed." My check-in comment was only missing the colon. Indecently, over 80% of the other comments consisted of 'adsf',
'bug fix', and several 'BOOM!'s. So I mistakenly said out loud 'This check-in policy appears only to exist to allow management to cherry pick
developers they do not like, find something wrong, and put them on probation.' That comment got on a 30-day ‘corrective action plan’ for openly disagreeing with a
company policy. Today, all those managers were either fired or quit and now I set policy. Dear Mr. ex-Bosses, I won.6 -
*on the phone with a client*
Important detail: in Dutch we call a colon a "double point" and a semicolon a "point comma".
Me: go to {url} and put double point followed by {something} behind it.
Client: *tries for 5 minutes, suggestions forth and back*
Me: how did you type the double points?
Client: I typed two points. (..)
The level of retardness I thought existed got worse once again.
At that moment the open window seemed like a veeery good option 😭15 -
Don’t you just love it when you do the following in a prod database 😅
UPDATE table SET someImportantField= NULL; WHERE abc = 123;
If I don’t laugh right now I’m going to cry.5 -
Why do people (Some devs too...) bloody hell think that devs have Hard time fixing the Semi Colon issue, we have a lot of other issues to figure out, like the Structure of Data, Code Fragmentation, API Creation, Invalid Data Handling, Injection Prevention. But no, since we are developers, we are having sleepless nights because of one fucking semicolon? FUCKING NO, it hardly takes 30 seconds to figure out that there is a missing semi-colon. Really People, stop the ; thing!10
-
I want to see a movie where machines gain intelligence and go to war with humanity, only to be defeated when some guy deletes a single semi-colon from their code.
Saw this in a Tumblr blog. Lol3 -
after hours of debugging your program without any luck...
wife(never programmed a day in her life): what's up?
me: I can't figure out why this program won't work
wife: oh! you're probably missing a semi-colon somewhere9 -
The interviewer pointed out that I missed a semi-colon on the whiteboard code .I was like... sorry, but the whiteboard can't compile this code!
...and I wasn't selected! -.-"3 -
<meta-rant>
Am I the only dev who gets bugged when I see the common "a semi-colon just cost me 45 minutes!" joke, or similar?
Any modern IDE or text editor will show you syntax errors immediately, and even if they didn't you can usually resolve them in under a minute.6 -
That weird moment when you write a Python script and errors pop up everywhere, only after an hour of debugging (pulling hair out) to find that you started putting a semicolon at the end of each statement again.3
-
Today as my friend left for lunch, I opened his code, and changed all the ';' (semi-Colon) to ';' (Geek Question Mark). It's been 10+ hours, still no push from his side on the repo, called him... He is still stuck on the same.. and I won't tell him.
I am a horrible person. 😂8 -
a missing semi colon is overated, the white space character at the end of a string is the real OG. Been hunting a bug for three days because of it!!15
-
[long]
When searching for internship via school I found this small startup with this cute project of building a teaching tool for programming. There were back then 2 programmers: the founder and the co-founder.
Then like 1 week before the internship started, the co-founder had a burnout and had to get off the project, while the company was so low on budget the founder, aka my new b0ss, had to work separate jobs to keep the company alive. (quite metal tbh)
It's funny because I'm a junior developer, 100%. I've been coding as a hobby for around 8 years now but I've never worked in a big company before. (No exception to this workplace either)
First project I get: rewrite the compiler. The Python compiler.
"But wait, why not just embed a real compiler from the first case?"
-nanananana it's never simple, as you probably know from your own projects.
The new compiler, as compared to existing embedded compiler solutions out there, needed these prime features:
- Walk through the code (debugger style), but programmatically.
- Show custom exceptions (ex: "A colon is needed at the end of an if-statement" instead of "Syntax error line 3")
- Have a "Did-you-mean this variable?" error for usage of unassigned variables.
- Be able to be embedded in Unity's WebGL build target
All for the use case of being a friendly compiler.
The last dash in the list is actually the biggest bottleneck which excluded all existing open-source projects (i could find). Compliant with WebAssembly I can't use threads among other things, IL2CPP has lots of restrictions, Unity has some as well...
Oh and it should of course be built using test-driven development.
"Good luck!" - said the founder, first day of work as she then traveled to USA for **3 weeks**, leaving me solo with the to-be-made codebase and humongous list of requirements.
---
I just finished the 6th week of internship, boss has been at "HQ" for 3 weeks now, and I just hit the biggest milestone yet for this project.
Yes I've been succeeding! This project has gone so well, and I'm surprising myself how much code I've been pumping out during these weeks.
I'm up now at almost 40'000 lines of source and 30'000 lines of code. ‼
( Biggest project I've ever worked on previously was at 8'000 lines of code )
The milestone (that I finished today) was for loops! As been trying to showcase in the GIF.
---
It's such a giant project and I can honestly say I've done some good work here. Self-five. Over-performing is a thing.
The things that makes me shiver though is that most that use this application will never know the intricates of it's insides, and the brain work put into it.
The project is probably over-engineered. A lot. Having a home-made compiler gives us a lot of flexibility for our product as we're trying to make more of a "pedagogic IDE". But no matter that I reinvented the wheel for the 105Gth time, it's still the most fun I've had with a project to date.
---
Also btw if anyone wants to see source code, please give me good reasons as I'm actively trying to convince my boss to make the compiler open-source.
Cheers!4 -
So I recently started going to a university, and I am being taught C. I have previously learnt C++ in school so its all pretty easy for me compared to those who are programming for the first time.
So, one of my classmates run into a problem with their code so he asks to check where he went wrong. So, the teacher comes and checks his code and then concluded that the compiler is F****** broken!! And i am like FFS theres a missing semi-colon, even the compiler pointed it out....just because you couldn't figure out the problem doesn't mean the compiler is broken.7 -
Grr the feeling when one of your interviewers has a hard-on for trying to find ways to sink your boat.
Went to a job interview yesterday during my lunch break for a mid level dev job in central London , i have been trying to transition from a junior role.
First were two senior devs , that went quiet well...
Next up was the tech lead and a team lead, lets call the latter Mc-douche for some problem
The tech lead was fine, very relaxed and clam guy more interested in seeing the logic of my answers and questions as to why i did certain things in this or that manner....
Mc-douche, he would always try to find something wrong then smile smugly and do that sideways head waggle thing
His tech lead is like " yup that's correct"
But he would be like " yeeess but you didn't think about bla bla bla" then talk about shit not even present in the context of the question
Ah also he would ask a question then cut me off as soon as I begin to say that i didnt mention or take into account x or y even though literally my next sentence is about address those details he wanted.
let me fucking finish you dickbag 😡
Had a js question, simple stuff about dom manipulation, told not to bother with code... yet McD starts asking me to write the code for it....managed it , quite easy stuff
Then a sql and db test , again technlead was happy with the answers and the logic am approaching the question when writing my query, yet mc d Is bitching about SQL syntax....
Ok fine, i made a simple mistake, I forgot and used WHERE instead of HAVING in a group by but really?! Thats his focus ?!
Most devs I know look up syntax to do stuff , they focus on their logic first the do the impl.
Then a general question on some math and how i would code to impl a solution on paper
That was a 20 mins one, the question said they didn't expect me to finish it totally so
I approached it like an exam question.
First
I focussed on my general flow of my process, listing out each step.
Then elaborated each step with pseudo code showing my logic for each of the key steps.
Then went deeper and started on some of the classes and methods , was about to finish before it was time up.
Mc douch went through my solution
And grudgingly admitted my logic was "robust enough" it was like he really had to yank that deep out of his colon.
I didn't really respond to any of his rudeness throughout the whole interview,i either smiled politely or put on a keen looking poker face.
Really felt awful the rest of the day, skipped the gym and went home after work, really sucks to have a hostile interviewer.
Pretty sure i wont be hearing anything good from them even though the three other interviewers were happy with me I felt.4 -
Scenario 1
Friend 1:"Hey, you're good at computers right?"
Me:"Erm yup."
Friend 1:"Can you hack Instagram? I've lost my password."
Me:"Oh My God."
Scenario 2
Me looking at a friend's unity C# code
Me:"You know there's an enter key right? Why is your code horizontal not vertical?"
(Means that after a semi-colon he continues his code)
Friend 2:"I like to read my code in horizontal, that feels natural to me"
Me:"What ever, as long as it works. But why do you have so many if function inside another if function?"
Friend 2:"Cuz I want the player to do this while moving"
Me:".........."3 -
Have a couple I want to air today.
First was at my first gig as a dev, 4-5 months out of school. I was the only dev at a startup where the owner was a computer illiterate psycopath with serious temper tantrums. We're talking slamming doors, shouting at you while you are on the phone with customers, the works...
Anyways, what happened was that we needed to do an update in our database to correct some data on a few order lines regarding a specific product. Guess who forgot the fucking where-clause... Did I mention this boss was a cheap ass, dollar stupid, penny wise asshole that refused to have anything but the cheapest hosting? No backups, no test/dev/staging environment, no local copies... Yeah, live devving in prod, fucking all customers with a missing semi-colon (or where clause).
Amazingly, his sheer incompetance saved my ass, because even if I explained it, he didn't get it, and just wanted it fixed as best we could.
The second time was at a different company where we were delivering managed network services for a few municipalities. I was working netops at that time, mostly Cisco branded stuff, from Voice-over-IP and wifi to switches and some routing.
One day I was rolling out a new wireless network, and had to add the VLAN to the core switch on the correct port. VLAN's, for those who don't know, are virtual networks you can use to run several separated networks on the same cable.
To add a VLAN on a Cisco switch one uses the command:
switchport access vlan add XYZ
My mistake was omitting the 'add', which Cisco switches happily accept without warning. That command however can be quite disruptive as it replaces all of the excisting VLAN's with the new one.
Not a big deal on a distribution switch supplying an office floor or something, but on a fucking core switch in the datacenter this meant 20K user had no internet, no access to the applications in the DS, no access to Active Directory etc. Oh and my remote access to that switch also went down the drain...
Luckily a colleague of mine was on site with a console cable and access to config backups. Shit was over within 15 minutes. My boss at that time was thankfully a pragmatic guy who just responded "Well, at least you won't make that mistake again" when we debriefed him after the dust settled. -
So I'm not sure whether this actually is a believable story or not but I think I'll just share the saddest moment in my life with you.
So.... I've been working with a boy 0.5years younger than me on a project in Java so he could learn something about programming. I was actually dictating him code because he wasn't able to JUST WRITE ONE SINGLE LINE OF CODE WITHOUT ASKING ME HOW TO DO SHIT!!! So I dictated him a for each loop:
Me: "for ( Foo foo colon foos ) {doSomeShit();}"
Him: "for ( Foo foo .. foos ) {doSomeShit();}
For your understanding: in German colon means doppel punkt / double dot. I didn't think someone actually writes two dots... THIS IS SO FUCKING SAD
Please don't blame me for being a bad teacher. I'm inn a class with him and I know we did that in class. I also thought it multiple times to him6 -
Ok might as well share my misadventure on a phone screen:
It started pretty normal, the guy talks about his background, the position, and asked me about my background.
Move on to the language trivia; I’m not good at memorizing language features, but I guess it’s what people want, so I’ll be working on that down the road… Anyways it didn’t go well, and the guy somehow made me feel like an idiot even on the questions I got right.
It’s really awkward at this point… but let me tell you I was not prepared for what I can only describe as the fucking coding portion of the phone screen…
No computer. No pencil or paper. No whiteboard. Over the phone I’m saying: “class Dog with a capital ‘D’ colon newline tab def space bark open parentheses close parentheses….”
what the actual fuck4 -
*ahem*
You know how people say "you get the gist!", yeah?
...
I don't. 🤔
How can they expect me to GET http-colon-slash-slash-gist-dot-github-dot-com without the rest of the url?
I bet it's stored in that social context I've never been able to access.
THANK YOU, I'LL BE HERE ALL WEEK 😘joke/meme instant regret help can your score become negative social interactions and spontaneous erections -
!rant
Console.WriteLine("Hello World, again!");
This will be a rough ride dual-wield a non-semi-colon lang (Py 3) and a semi-colon lang (C#). But oh well. I've already taken the plunge. Let's do this!16 -
What is wrong with all these WordPress designers who go around tagging themselves as Full stack developers, it really sucks4
-
>Be me
>About to finish large-ish GUI program in Java
>Finish coding program
>Be happy that you finally finished
>Go to test the program
> Doesn't start
>Get concerned
>Debug the code for hours on end to find out why it isn't working
>Find that you were missing a semi-colon the whole time
>Yell into a pillow
>Go to devRant to rant about it11 -
It would be so agonizing if someone replaced a semi colon in my JAVA code with a Greek question mark!!
I hope there's a 404 message for humans because if I find him, that will be last time anyone sees him!9 -
Well that would probably be my classmate. He sucks at programming but I wanted him to do at least something. So I dictated him code he should simply type down: "for ( blah foo colon foos ) { ..." And he's like "for ( blah foo .. foos ) {". Colon means " Doppelpunkt" in German which means "double dot" if translated literally. So he wrote ".." instead of ":".
Fuck meh2 -
PM: This is broken.
Me: What? It works locally. That's weird...
PM: ...............
Me: (5 mins later) ok try again.
PM: still broken.
Me: Bangs head on desk. Why is this working locally?!?!!?
Me: (3 hours later) I'm missing a semi colon, and it wouldn't minify. Awesome.2 -
So recently I installed Windows 7 on my thiccpad to get Hyperdimension Neptunia to run (yes 50GB wasted just to run a game)... And boy did I love the experience.
ThinkPads are business hardware, remember that. And it's been booting Debian rock solid since.. pretty much forever. There are no hardware issues here. Just saying.
With that out of the way I flashed Windows 7 Ultimate on a USB stick and attempted to boot it... Oh yay, first hurdle to overcome. It can't boot in UEFI mode. Move on Debian, you too shall boot in BIOS mode now! But okay, whatever right. So I set it to BIOS mode and shuffled Debian's partitions around a bit to be left with 3 partitions where Windows could stick in one more.
Installed, it asks for activation. Now my ThinkPad comes with a Windows 7 Pro license key, so fuck it let's just use that and Windows will be able to disable the features that are only available for Ultimate users, right? How convenient would that be, to have one ISO for all the half a dozen editions that each Windows release has? And have the system just disable (or since we're in the installer anyway, not install them in the first place) features depending on what key you used? Haha no, this is Microsoft! Developers developers developers DEVELOPERS!!! Oh and Zune, if anyone remembers that clusterfuck. Crackhead Microsoft.
But okay whatever, no activation then and I'll just fetch Windows Loader from my webserver afterwards to keygen my way through. Too bad you didn't accept that key Microsoft! Wouldn't that have been nice.
So finally booted into the installed system now, and behold finally we find something nice! Apparently Windows 7 Enterprise and Ultimate offer a native NFS driver. That's awesome! That way I don't have to adjust my file server at all. Just some fuckery with registry keys to get the UID and GID correct, but I'll forgive it for that. It's not exactly "native" to Windows after all. The fact that it even has a built-in driver for it is something I found pretty neat already.
Fast-forward a few hours and it's time to Re Boot.. drivers from Lenovo that required reboots and whatnot. Fire the system back up, and low and behold the network drive doesn't mount anymore. I've read that this is apparently due to Windows (not always but often) mounting the network drive before the network comes up. Absolutely brilliant! Move out shitstaind, have you seen this beauty of an init Mr. Poet?
But fuck it we can mount that manually after every single boot.. you know, convenient like that. C O P E.
With it now manually mounted, let's watch a movie! I've recently seen Pyro's review on The Platform and I absolutely loved it. The movie itself is quite good too. Open the directory on my file server and.. oh. Windows.. you just put db.thumb on it and db.thumb:encryptable. I shit you not, with the colon and everything. I thought that file names couldn't contain colons Windows! I thought that was illegal in NTFS. Why you doing this in NFS mate? And "encryptable", am I already infected with ransomware??? If it wasn't for the fact that that could also be disabled with something as easy as a registry key, I would've thought I contracted ransomware!
Oh and sound to go with that video, let's pair up some Bluetooth headphones with that Bluetooth driver I installed earlier! Except.. haha nope. Apparently you don't get that either.
Right so let's just navigate the system in its Aero glory... Gonna need to flick the mouse for that. Except it's excruciatingly slow, even the fastest speed is slower than what I'm used to on Linux.. and it's jerky as hell (Linux doesn't have any of that at higher speed). But hey it can compensate for that! Except that slows down the mouse even more. And occasionally the mouse driver gets fucked up too. Wanna scroll on Telegram messages in a chat where you're admin? Well fuck you mate, let me select all these messages for you and auto scroll at supersonic speeds! And God forbid that you press delete with that admin access of yours. Oh maybe I'll do it for you, helpful OS I am!
And the most saddening part of it all? I'd argue that Windows 7 is the best operating system that Microsoft ever released. Yeah. That's the best they could come up with. But at least it plays le games!10 -
Ok GCSE finals are coming up and I take ICT. literally it's harder to fail than pass this subject. But some how half the class is failing it. One of the topics that a lot of the class are struggling with is web development. Honestly all you have to do is add 2 images and some text and you have 10 marks it's stupidly easy. So at the end of the class the teacher handed me some notes on web development that he thought might come in handy. Knowing me I just chucked it in my bag never to be seen again mainly because I already know a lot about web development and a lot of the time he's asking me why his code isn't working and I'm there mumbling "you forgot a semi colon" or something like that. So when I got home I decided to take a look at these notes and honestly this made my day2
-
I'm tired of meth. I mean math. MATH.
I'm sick and tired of everything.
"First!" numerous blog comments shout to no-one, from the colorful abyss of the internet.
And for me, this is a first. But lets rewind.
It's 2 AM, about a month ago, spring in Akron Ohio. Someone reading this is no doubt shocked "You just revealed where you live, ON THE INTERNET! The weirdos will find you." Anyway, it's a dark and stormy night, as the cliche goes. Like most people up after midnight, I'm browsing facebook posts and useless productivity sites. (lifehacker)
I yearn for something more out of life, somewhere deep down inside..maybe in my colon?
All the articles are saying "10 tips to supercharge your life", "how to discover your life purpose in three easy steps", mixed with an ad about ron jeremys one secret tip to grow a massive cock, and exhortations to buy such-and-such's "new ebook!"
I am not moved by any of this.
Scrolling, and tabbing, and intermittently dropping f-bombs because of js ads locking up my browser, I stop and lean back. In the blue afterglow of my shitty compaqs screen, a thought appears, like a cheesy genie, popping out of a brass toilet. "Start a blog! A youtube channel! A podcast" the ad proclaims. "Yes. Thats what I have to do" I whispered (I'm embarrassed to admit I really did say this).
Then I Control+W'd out of it, and flopped onto my mattress. This was the wasteland of my life. I couldn't help but think The whole internet was like some seedy back alley 2.0, where boxcar willie with his train of needle marks had been replaced by more upstart, greasy-haired gurus. Each peddling 'ebooks' of 'advice', stuffed in between ads to buy 'this one hot stock you have to own' and porn. And that alley was really the 'blogosphere' and 'youtubers'. As I drifted off, the last thought was 'We're all just bottom feeders,leeching and whoring on the attention of faceless anonymous users, hoping for another quick fix.'
I fell asleep, these racing thoughts fading into sweet oblivion, but never too far away.
Welcome to My Back Alley
That title is only twice as dirty, and half as thought-out as I planned. As you imagine, the lure of being the electronic equivalent of a conman never quite faded. And the more I read, the stronger the message "Start a youtube channel!" grew. As if everyone and their grandmother having a youtube channel would somehow make the world right, cure cancer, and save kittens from animal shelter gas chambers. Everyones an expert, everyones an agent of change. Maximizing productivity, Evangelizing Technology, ninjas collaborating to socialfy your community diversification benchmark for target traffic
through user-engagement and authentic grass-roots, blah, blah, blah, blah, money. Thrusting, moaning, screaming. Money. Pumping at the center of it all.
Wake up and smell the bullshit.
This blog is not a blog. This blog is the anti-blog, and we are the anti-streamers. 'We' (read "I") resist your bullshit lingo bingo, call out the Truth (Tm) and refuse to be satisfied with any standards of decency, journalistic integrity, or common sense.
Every blog, every channel, every podcast is Starbucks And I'm tyler durden, pissing in your coffee, and calling it a 'latte'.
Freaks, and anarchists, laymen and losers. If you feel as I do, then this is the place for you. Welcome to devrant.11 -
IDK why our teachers make us write code on paper when we have cool, fancy IDEs with auto correct 🙃 I think they are preparing us for job interview coding rounds from class 12 onwards😂😂
F for those who miss a semi-colon and the teachers gives a round zero😂5 -
I wonder if they have speech to text for code.
Var cars equals left bracket quote Saab quote comma quote Volvo quote comma quote BMW quote right bracket semi-colon4 -
For the first time in history, I have ended a regular sentence using a semi colon instead of the proper punctuation.1
-
My grade in basic programming course went from B to C, determined by a fu****g semi colon! One damn semicolon!!!
Bare in mind that my digital exam was in NOTEPAD with no IDE, no syntax highligting, nothing but black on white!
Is there really any compilator, or realistic job environment, where this could be so devestating?!?!11 -
Usual python code problems coming from someone who has been coding in Javascript and PHP (<--no pitchforks please). It's been months already but old habits still keep on coming back
- adding a semi-colon
- mixing spaces with tabs
- using a lowercase boolean
- adding an open brace when declaring a function
- forgetting the colon ( ;'s brother) -
Why is learning a new language from python such a bitch? Like, w h a t t h e f u c k. Syntax can eat my ass with that semi colon no semi colon bullshit. Also fuck the compiler with it always having an error and shit. I was lowkey just trying to compile the shortest shit but cant get through s h i t. Fuck life I swear I'm gonna shoot my computer if I get another error.25
-
So we released to production today (Friday), not my decision.
All pages work fine expect for the one page which I added a new feature.
It worked fine in Chrome and Edge. But after release a customer who requested the feature said it doesn't work for him. Screenshot showed he was using IE.
Horror time.. it was evident that it has to be the changes to the JavaScript I did, but why does the whole page doesn't work.
So I started debugging. Nothing works on that page in IE11, it doesn't even load the fucking script file. Then I dared to change mode to IE10, it actually gave me an error in my script file. The bad IE has actually picked a mistake that other browsers didn't.
So, the mistake is fun part too.
I had the following jQuery (or Jake Weary) call
$.getJSON(
'/url',
{
argA: a, argB, b, argC:c
},
function (){
// did something
}
);
In second argument, I accidentally typed comma instead of colon. Chrome and Edge ran the script perfectly passing all the arguments.IE 11 failed to load script without giving any error and only IE 10 gave an error of expecting a colon.
I do not know which browser to blame.
PS I didn't try in Firefox, safari, etc.2 -
The hardest decision right after "how to name this variable?":
Where to put free lines?
(Should there be one after the colon!?)7 -
I wasn't hired to do a dev's job (handled sales) but they asked me to help the non-HQ end with sorting transaction records (a country's worth) for an audit.
Asked HQ if they could send the data they took so I wouldn't need to request the data. We get told sure, you can have it. Waits for a month. Nothing. Apparently, they've forgotten.
Asks for data again. They churn it out in 24 hours. Badly Parsed. Apparently they just put a mask of a UI and stored all fields as one entire string (with no separators). The horror!
Ended up wasting most of a week simply fixing the parsing by brute force since we had no time.
Good news(?): We ended up training the front desk people to ending their fields with semi-colons to force backend into a possibly parsed state. -
I've just wasted 2 hours fixing an issue with a GitLab CI YAML definition, all because of a single colon:
echo "Detected changes: compiling new locks"
I swear to god, whoever thought it is a good idea to use YAML for CI scripts should rot in hell.15 -
Lua users, have you used moonscript?
It's a little language that has it's own interpreter or can be compiled down to Lua and it's absolutely lovely (currently using it with Love2d).
Of course, as with most things, what I love about it also royally pisses me off sometimes.
For starters local has to be declared for variables, unlike lua.
Otherwise the variable goes to _
Also note, that some tutorials literally tell you the opposite.
all variables are local by default
unless you don't declare them
then they go to _ (throwaway)
Some tutorials get this wrong too.
all variables have to be declared local
except tables. failure to declare a table WITHOUT a local will cause things like
table.insert to fail with "nil" values for no god damn reason.
No tutorial I could find mentioned this.
Did you know we call methods with '\'?
By the way, we call methods with '\'.
Why? Who the fuck knows.
Does make writing web routes more natural though.
Variables in the parameters of new are declared and bound for you. Would have loved to know this before hand instead of trying
to bind to them like a fucking idiot.
Fat arrows are used to pass in self for methods.
Unless you're calling a method. Then you use backwards slash. This fact is unhelpful when you're a beginner and dealing with the differences between the *other* arrow, the backslash, the fat arrow, and the fact that functions can be called with or WITHOUT parenthesis.
And on that note..
While learning all this other shit, don't forget parenthesis are optional!
Except when they're not!
..Like when you have a function call among your arguments and have to disambiguate which args belong to the outer call and to the inner call! Why not just be fucking consistent?
But on the plus size, ":" is now used for what it should have been used for in the fucking beginning: binding values to keys.
And on the downside, it's in a language thats built on top of another language that uses it for fucking *method calls*, a completely
different fucking usage.
And better still, to add to that brainfuckery thats lost in the mental translational noise like static on a fucking dialup modem, you define methods with the fat arrow. Wait, was that the single arrow or fat one? Yeah the fat one. Fuck. But not before you do THIS shit..
someShit: =>
yeah, you STILL include the god damn colon just so when you're coming from lua you can do a mental double take. "Why am I passing self twice? Oh right, because fuck me, I decided to use moonscript." It's consistent on that front but it also pisses me off.
A lot of these are actually quality of life improvements disguised as gotchas, but when you're two beers in to a 30 minute headscratcher it sure doesn't fucking feel like it.
Nevertheless, once I moved beyond the gotchas, it was like night and day. Sure moonscripts takes a giant steaming dump all over the lua output, like a schizophrenic alcoholic athena from the head of zeus, but god damn, when it works it just WORKS.
Locals that act like locals? Check.
Sane OOP? Check.
Classes, constructors, easy access to class methods, iterators? Check, check, check, check, check.
I fucking hate ceremony. Configuration over convention is for cunts. And moonscript goes a long ways toward making lua less cunty.
If you've ever felt this way while using lua, please, give moonscript a try.
You'll regret it, but in a good way!6 -
I though you may like what I did
The AI finished training now
My server almost went down
I put a semi-colon at the end;
I think you can't create front-end
I haven't had sleep in a while
Neither have I walked a full mile
I'm more of a 'kilometer' guy
We are going to eventually die
Fuck PHP
I can't afford to buy full HD
I'm not good at this
Cause I don't have a girl to kiss -
Saw a git repo that contains the node_modules folder and some dependencies and was wondering how'd fuck did this guy get this up here.... Mehn some devs can be super powerful(funny)
-
Purchasing the premium version of packages and making it open source so you can rip off the author. 😂😂3
-
If languages had slogans...
1) Java -- Buy one get two for free on your delicious NPEs.
2) C -- I burn way too much calories talking, let's do some sign language. Now see over there... 👉
3) Python -- Missing semi-colon? Old method. Just add an extra space and watch the world burn.
4) C++ -- My ancestors made a lot of mistakes, let's fix it with more mistakes.
5) Go -- Meh. I can't believe Google can be this lazy with names.
6) Dart -- I'm the new famous.
7) PHP -- To hide your secrets. Call us on 0700 error_reporting(0)
8) JavaScript -- Asynchronous my ass!
9) Lua -- Beginners love us because arrays start at 1
10) Kotlin -- You heard right. Java is stupid!
11) Swift -- Ahhh... I'm tasty, I'm gonna die, someone please give me some memory.
12) COBOL -- I give jobs to the unemployed.
13) Rust -- I'm good at garbage collection, hence my name.
14) C# -- I am cross-platform because I see sharp.
15) VB -- 🙄
16) F# -- 😴8 -
Fuck. I just realized:
In English,
this is a semicolon “;”? Which has half as many dots as the [full]colon “:”
#mind
#blown12 -
3 hours debugging for one colon. Welcome to the shadow bugs in Go. This was one of the most satisfying fixes. And a great introduction about shadowbugs.
-
Just started learning python (may be a week or so) and colon " : " is fucking my life more than the semicolon " ; " did.7
-
My partner randomly commit to the git.
"A missing semi colon"
"initiate a useless variable"
"adding comment to obvious code"
Hmm ok im done for the week.1 -
One day lost checking each letter in code, and a horrible error with no visible solution.
Answer: A colon in the place of a semicolon.1 -
I'm so sick of stupid little bugs. Not proper bugs like, I don't know, a memory leak or something significantly wrong, it's always a bloody semi colon or backtick...
-
Most angry? Not sure but generally get angry at my own short comings.
Like:
"duh you missed a semi-colon again you douche and it took you 3 days of debugging to realise! Just start writing python already!"3 -
2014
Me: Ordinary wordpress *completes wordpress site within 3 days*
2019
Me: *after learning several technologies* Spent a whole day customizing a Lightbox modal in wordpress. 😌 -
My oppo has just copied and pasted a block of code in the top of all the controllers. He swears he tested it, but theirs a semi colon missing, and and its fed the wrong object as an argument. Internal seething intensifies.1
-
I have just learnt that you can label for statements and break them in an inside loop
Wakanda crazy crap is this?
fyi here is an example:```js
outerLoop:for(let i = 0; i<5; i++){
for(let j=0; j<5; j++){
console.log(i*j);
if(i*j === 8) { break outerLoop;}
}
}
```
Why do we even set a label with a colon, why?6 -
Excel is a powerful and extremely versatile application, but one thing that really SUCKS about it, is that formulas are language-specific! So if using Outlook in - for example - Swedish you can't write "IF(<expression>,<then>,<else>)" but instead "OM(<expression>;<then>;<else>)". Note the semi-colon instead of comma (because in Swedish comma is used as decimal). AAARGGH! This pisses me off!2
-
You look everywhere to be puzzled of what went wrong and realise that you missed a semi colon assuming that language to be semi colon independent.
-
C is one of those languages that I have no idea why I really even mess around with it. It's cool, and useful, and all that jazz. But holy hell messing up one little line of code is the death of everything.
One forgotten semi-colon, and you whole program is gone. It will mess up other lines of code, which will mess up other lines of code, so on and so forth. I've even had times where I have to almost rewrite little programs I'm playing around with because of how much little errors can mess it up.
Don't even get me started on compiling. I don't even want to get into it now.1 -
My Friend(On getting an error in Javascript for not placing a semi-colon";") : If the computer knows that adding the semicolon would fix the code why would it not add it by itself instead of throwing an error.
Me: Because coaches don't play ;) -
I really cant tell anymore if i have colon cancer or not. I was shitting and it hurted my asshole from stretching cause the shit was massive for my tiny asshole. While wiping there was light blood stains. More blood stains than shit stains on the toilet paper. Now i have no idea if the blood happened is due to my asshole being ripped by huge shit, or if i have colon cancer. I saw a tiktok video colonoscopy doctor explain how having blood stains could be potential indicator of colon cancer. But if it is... So be it. At least this shit life of suffering will finally end. Its a win win for me. At least I'd die from incurable disease rather than having to make an accident. The best part about it is i wont have to work for $8 an hour with computer science degree and for that reason im looking forward to it5
-
Coding alone:
int GetData()
{
int iErr;
int nPts;
int nTdx;
matrix mX;
vector vY;
vector vWT;
nPts = 10;
nTdx = 3;
Worksheet vks("Data1");
mX CopyFromWks( wks, 1,3,0,9);
.........
Coding when someone is watching:
"Where is the EFFING Semi-Colon?"2 -
Who knows what the Angular team has in mind that they are upgrading the lang as if it's a trend in fashion2
-
I remember reading a book on HTML. I also remember reading about how to implement the towers of Hanoi, which I never attempted to this date. For a most of the time while I was learning I didn't have a computer, so I would still up in a friends room banging away at the keys. I have, however, implemented a lot of algorithms to date. I had to sit up countless nights trying to debug programs, I still do. I think programming is a life long learning situation. There are no off days. I have had situations where all I needed to do was add a missing colon or so. Greatest lesson learned know your syntax, APIs, frameworks etc. And above all follow best practices and move with the times.
-
Always valued my every minute but seems I have given up the principle for a cron job which I have to wait for every minute to run so I can see what I am doing on the log file.
-
So I'm writing my compiler and I decide to test error handling, see if I'm catching unexpected tokens and whatnot. I try duplicating a semi-colon at the end of a line, for sure it'll give me an error since that's an unexpected token, isn't it? So I run the compiler and... No errors? I start debugging for a few minutes, snoop around, everything seems ok... "Huh, that's weird" and then it dawns on me, a semi-colon only marks the end of a statement. So, technically, it's not an unexpected token if you have an empty statement (which wouldn't break any rules about statements). I decide to try out my theory. I put ;;;;;;;; at the end of a random line in my rust code, hit compile and... it compiles! So that means it is not a bug anymore! I mean, if the big guys that actually know a tad about language design, compilers and all that cool stuff allow it in their languages, why shouldn't it? So I did it, I turned a bug into a feature and now I can go to sleep in peace and stop dreaming about fucking abstract syntax trees (don't mind my kinks >:) ).
Yeah anyways thanks for reading, till next time! Bye!1 -
Let's be honest - given the state of the world today, the more I listen to Megadeth, the more I relate to what Dave Mustaine has been pissed off about for a few decades now. Oh, you don't know who Dave Mustain is? He was, like, the 5th guy in Metallica. Rather, he was the bass player until he got fucked over because he was a dick and thrown off the first album Metallica did. Don't worry - he did OK. He formed Megadeth and still had quite a successful musical career. Why am I ranting about him? Simple - A lot of his lyrics are darker than Metallica's. I honestly don't know what the fuck I'm doing with my software/personal/professional life right now. I've got ideas & dreams, but all this COVID shit is just draining the fuck out of me. Sometimes I feel like I've failed - most of the lifeforms on this planet manage to procreate. Well, that didn't happen for me. On the down side, I didn't get to be a father. On the up side, I didn't punish the life of a child with my own brands of mistakes, ignorance, and stupidity. My life is littered with male failures. My biological father (paranoid, schizophrenic ) died at 58, doing everyone around him a favor. My grandfather on my mother's side died of colon cancer at 69 (so-called reformed alcoholic, manic depressive on lithium with great abusive tendencies). My step father who adopted me? Sure - he loved me. He just never understood me. "Computers are just a tool". Fuck you, 'dad'. Go play with your horses and tell me what I'm doing isn't meaningful. Where was I? Oh yes, almost killing myself last summer. I think between COVID and my own colossal screw ups & paranoia I went over the entire fucking edge. I pulled myself out of it with the help of medication, counseling, and learning to just let shit blow up because "it's not my problem". I'm still angry. Perhaps that's the only thing that keeps me going from time to time. I'll leave you with a quote from Ghandi - No, not that idealistic, limited one, Mahatma Ghandi. From his grandson, who managed to really pick up what he was putting down - Arun Ghandi:
“Use your anger for good. Anger to people is like gas to the automobile - it fuels you to move forward and get to a better place. Without it, we would not be motivated to rise to a challenge. It is an energy that compels us to define what is just and unjust.” -
I think I can, I think I can, I think I can Ahh darn missing semi colon... I think I can I think I can!!
-
You know what's new among my team?
The one that put semi colon and the one doesnt. (Yes javascript)1 -
When you're writing a Perl script and spend 2 hours trying to figure out why it's not working and it turns out that you missed a semi-colon.2
-
I mean, seriously, who needs sleep anyway? Oh, you missed a semi-colon at the end of that line? Boom! Code's broken, and I'm on a wild goose chase.
Thanks for the extra hours of debugging, Captain Forgetful!6 -
So funny that I spend most of my time at work reading rants rather than working. Can you guys allow me to concentrate by not posting any rants. Lolz
-
Was generating a JSON based config manually to be used by a script another dev wrote - only to be criticized for using the text editors built in formatter. Evidently lining up the colon separating key value pairs is a thing.
If readability was so important to you why the fuck did you decide on using JSON as a configuration format? Especially when you could have gone with YAML or better yet INI (flat key/value pairs) style config. -
Using native-base for my react-native apps and semantic-ui for the react(web) based projects, any idea of any other UI/UX styles?2
-
WOAH MOMENT
Just realized 3 most important symbols in web development, maybe programming in general.
1. / the root
2. ; semi colon your old nemesis
3. ~ where you live
You should not be here if you don't understand, just kidding but seriously they are very important. -
Any idea of any online tutorials(video, written) that explains using react,NodeJs along with redux4
-
The genius businessman Isaacs Schlueter, who sold a common tool npm to GitHub, forced a breaking change to block yarn in a minor upgrade in August.
Every decision of trading his users for his own business growth is so obvious, so hostile and so badly executed.
Let us give a moment of silent to the damage he's done to the community, I still see comma-first and colon-skipping as an intentional habit in some open source libraries.
This very commit https://github.com/npm/arborist/... breaks so many things at once.4