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 - "syntax"
-
School time, programming class:
Girl: Hey, Can you help me?
Me: Sure, what's up?
G: I have an error but I don't know why
M: *looks at error stack trace* You're missing a semicolon in line 133 *puts comma, run... 27 more errors* Well, you have more issues up there, why don't you try to fix them?
G: Oh, Ok, thanks
-- 1 hour later --
G: Hey, can you come? I already fixed the other issues but I still have one I can't fix
M: *checks code, same mistake I fixed, missing semicolon, same line* Why did you erase the semicolon?
G: Oh, because if I erase it, I only have 1 error, but if I leave it, I have 27 so....
M: *turn around, walk away*19 -
I changed my Wi-Fi name to Syntax Error and made some changes to the configuration. I wanted to disable the admin page at the 2.4Ghz connection, but I got kicked out at 5Ghz as well. So I couldn't log in anymore and resetting the router didn't helped.
So I called the ISP if they can restore it to factory settings, but the guy on the phone didn't understand a thing I said. He said to me: "Sir I don't exactly understand what u say, but I can see an Syntax Error. Do you want me to fix it." And I laughed and I laughed.. I told him that's the Wi-Fi name but ofcourse he didn't got the joke. I called again and got someone else on the phone. He's resetting the router in a one minute call.
Had some fun this morning.12 -
1. I'm a programmer, that does not mean I know every possible programming language. Yes, I can build Android apps, standalone softwares, serverside frameworks. No, I do not know how to build frigging websites!
2. "You can build a website in 2 days, you're a programmer". Tell a single mechanic to build an entire car in 2 days or tell a civil engineer to build an entire building in 2 days and I'll build your website in 2 days.
AAAAAAARRRRRGGGGGHHHHH!
Why does your family think that being a programmer means being a magician who can just pull any kind of software, hardware, app, website out of their hat?17 -
INTRODUCING:
---
SYNTAX HIGHLIGHT BOT
---
I have lots of ideas.
This was one of them.
Last week I was playing around with https://carbon.now.sh and found it quite cool!
Then I thought: https://carbon.now.sh supports Twitter. Cool. But what about devRant?
So yeah, then I got the idea: A devRant Bot that generates https://carbon.now.sh images!
Now, 4 days and 800 lines of code later, the bot is ready!
I even had to rewrite the notification checking code 4 times, because none of them worked perfectly...
But on the other hand, the final solution is so good that I want to keep it a secret for now ;D
---
HOW TO USE:
All you need to do is to mention the bot!
Example:
<rant>
@highlight
console.log('Hello World!');
</rant>
The bot then generates your syntax highlighted code (as an image) and posts it as comment a few seconds later.
Everything before the "@highlight" will be ignored!
Example:
<rant>
Look at this code:
@highlight
function add(a) {
return a + 1;
}
</rant>
Here, "Look at this code:" will not be included in the syntax highlighted code.
If the comment text ends right after the "@highlight", the bot wont reply, btw.
---
THEME SELECTION:
That's not all!
You can even select the theme for your syntax highlighted code!
Just go to my other rant and read the instructions!
The theme will be used for every image the bot generates for you!
Link:
https://devrant.com/rants/2178551
---
Feel free to ask any questions in the comments!
My creator (and father thanks to @rutee07), @Skayo, will try to answer all of them!
P.S.: Speaking of @rutee07: I'm a girl. (Also thanks to him)174 -
Does anyone else experience the excess knowledge crisis? Wherein you realise that there is so much knowledge out there that you don't know where to start, and the moment you start, you realise there is something new to learn and you instantly get distracted.9
-
Seeing how people dislike idea pitches like "It's like Uber but for ...".
I can't help but imagine how the idea of devRant might have been pitched -
"It's like Twitter but for frustrated developers" 😋7 -
I love python, its the language I never really struggled a lot with yet also progressing so fast with it as a programmer!19
-
I sent and email of some code to someone, and when I coppied from VScode into the Email Cliant it saved the Background Color + Syntax Highlighting 😆27
-
I fucking hate python and myself even more. Python is easy they say, Python has nice syntax but fuck you . Fuck you seriously I cringe if I see non-c-like syntax. Every time I leave my comfort zone I get fucked over by damn semicolons. Fuck this imports i don't know your damn library. But god damn In far too advanced for hello world. There are two versions and the lib I want to use is incompatible? Well fuck me? That kind of shit never hit me on PHP. Damn me! Fuck you python. I want to know you but you fuck me harder than life. GEHÖRT? DU FICKST MICH HÄRTE ALS DAS LEBEN DU HURENSOHN!!!!
What is even your problem? Indentation? Well thank you for not having braces! I mean come on I try, I really do. I know you are different but every thing I want to learn about you is either for uber beginners or so advanced I don't even know what's going on. Do magical shit in a few lines? What the fuck is in those packages? A wizard full filling whishes like "plz make this work"?
But don't worry you cum snorting unicorn as much as I hate you I'm more mad about me for not being a descendant of fucking slytherin!15 -
Damn you, Sublime! I love you, but for fuck's sake, why don't you provide syntax highlighting for x86 assembly? :(15
-
I never make the same mistake twice, I make it eight or nine times just to be sure.
String name;
String number
String dob;5 -
Some days I just want to shoot myself.
I get why... someone might do this, but sweet mother of god!rant kill it with fire js i must have done bad in a previous life cluster fuck jquery alternative syntax php17 -
I have reached that point of my life where I feel a laptop with an internet connection is all I need to live the rest of my life.5
-
<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 -
The facial hair devRant provides in it's profile builder are either well maintained thick growth of beard or a neatly trimmed uniform beard.
And here I am with my abomination of a beard that looks like a herd of cattle trampled over a sparse field of grass.
The struggle is real.6 -
Apple really is redefining the entire industry...
On terms of how expensive can a product be and how poor you are.6 -
TAKE A LOOK AT MY OTHER RANT FIRST!
---
SYNTAX THEME SELECTION
---
In this rant you can set your theme for the syntax highlighter!
Just ++ the comment with your preferred theme.
The bot checks for the "<user> ++'d your comment!" notification and stores your selection!
(When you ++ multiple themes, your theme will be the one you ++'d the last)
Then, next time you request a syntax highlighting (see other rant on how to do that), that theme will be used!
Please don't post any comments here if possible!!!
(You can post comments and ask questions in the other rant)
Feel free to ++ this rant tho ;D
---
Have fun and thank you for using this bot!28 -
The world has moved to json, webservices, lightweight frameworks. And here I am writing IDLs for my company's CORBA based product.
P.S. Corba is so obsolete, devRant doesn't even provide an autocomplete for the tag7 -
New proposal: Addition of "!fuckingimportant" syntax to CSS to override any preceding !important modifiers. :P3
-
Ugh, ansible and yml formats. I thought to fix a small issue fast and commit it directly.. but noooo2
-
>Barely ever written python before
>Gets added to a python group project
>Codes the part I'm associated with
>Runs fine after about 19 tries
>Puts it together with other people's code
>Syntax error
>Searches for the error for 2 and a half hours
>tfw other people use 4 spaces instead of a tab like I do and pythong can't handle it :(3 -
Today I spent ten minutes because I didn't see the difference between 'cmp' and 'cpm'
Do I have a slight case of dyslexia? :O
It must be so difficult to be a dyslexic programmer :O18 -
Seeing anything serious written in cpp with in line assembly, that level of witchcraft fascinates me2
-
If you're this kind of developer..
Then you seriously need to reconsider your coding standards and structure.8 -
Always use an editor with color syntax highlighting. About 20 years ago I spent 3 days and nights debugging something that was a simple typo error. Since then I always use an editor with color syntax highlighting.7
-
```
Greetings @dfox @trogus, et al,
Here is some feedback with aspirations for the backlog.
I think it would be a good addition in the devRant UI if we could paste in code snippets and have that code display with proper fonts and syntax formatting, and even ideally with highlighting by language.
Currently, if we paste in any code or text for that matter it is translated into a sans-serif font (14px Helvetica Regular on webapp) which is fine for the poetic prose from our fine and noble devRant colleagues, but not ideal for shared monospace snippets of lesser and grand design.
Here are two websites that provide conversion of code snippets into formatted syntax, and HTML. http://hilite.me/ and http://markup.su/highlighter/
Both of these sites provide an API so highlighters can be used as a service.
Mockup attached.
Thank you @jaaku for your post, and welcome.
Cheers
devRant for the win
```13 -
Recieved my stickers today. Found it aptly ironic to put one right next to one of the most "hated" languages on devRant 😗😋5
-
The more I play with C, the more I realize why many people hate C++.
I like the amount of control and the simplicity. No unnecessary syntax sugar, and the code is very straightforward to read.12 -
Since the past 7 months I was working on a project coded in C++ and shell script.
Today I was shifted to a project where I'm required to code in JavaScript and SQL.
I can't differentiate between my head and a scrambled egg.6 -
When you switch back to Javascript after a while of using SQL and dont see the error in this line..
Thanks for syntax highlighting that, firefox! I spent almost 10mins checking the parentheses and trying different combos...1 -
Hey, Unity!
I love you and how your bug system works, but can you polish your errors?
I don't have any experience in programming and I am only a level designer.
I have no idea what this error meant so I begged to my boss crying that this FATAL error popped up.
Then my boss comforted me with pizza and coke.
I just realized that my boss is better than Unity.
I'm sorry, Unity. I was just about to buy the Unity license, but I changed my mind to just use the [personal edition and hack the dark theme by hex edit.
Best regards,
cozyplanes
(* This is a real e-mail sent to Unity Help Center *)8 -
While getting a pro in Kotlin, I started using
when(condition) {
true -> doOneThing()
false -> {
xyz = whatEver()
blaBla()
}
}
instead of simple if-else.
It looks nice but also distracting.
What is your opinion on that?
I guess most will be like:6 -
The cleaning lady saga continues...
(previous: https://devrant.com/rants/1850777)
Had an appointment with their manager, stuff gets discussed and coordinated at a 3x slower pace than if I'd done it myself (as usual because fuck efficiency when there's muggles involved -_-), yada yada.
*mail addresses for contact start getting discussed*
Incompetent fuck of a manager: And you $realName, your email address is $company@nixmagic.com, then changed to $nickname@nixmagic.com? Mind explaining this?
Me: Oh yeah that's just because I give out different email addresses to each contact person when it involves public forms or registrations, helps with spam prevention and putting the company name of the correspondent in there helps with easy recognition when some company's database leaks and I start getting a lot of spam on that mailbox.
IFOM: Really.. we actually weren't sure whether we should reply to something with our company name in it.. you know, not sure whether it's legit etc. Why would anyone want to use one of our email addresses as theirs?
… Let that sink in for a moment. They think that $company@nixmagic.com is theirs? Just because it's their domain (minus TLD) in front of MY FUCKING DOMAIN? How about you start by learning how email addresses work first, because clearly you have no fucking clue about it. Are you the kind of brainless fucks that get lured in by http://totallylegitbank.com.freehost.com/... scams? Fucking stupid piece of fucking shit.
Oh, and when you're using MS Exchange, of course you can't know that when you're having your own domain, you actually also own every fucking mailbox on it, because Microshaft doesn't allow you to have more than n amount of mailboxes, unless you gobble up money for them. But you know what, in my case it's a fucking catch-all domain running Linux on its servers, so yeah I can use whatever the fuck I want in front of it, including your stupid fucking cleaning company.
IFOM: And then there's your current designated email address. $nickname@nixmagic.com..
Oh you're going to criticise that as well?! Yeah condor is my fucking nickname all over the internet, and my username on all my systems. That's why I use it. But you know what else is an email address that you might come across, because people are shallow idiots like that? ILoveBigTits69@gmail.com or something like that. You know what, how about I address you next time from ILoveBigTits69_OhAndYoursAreAWashboard@nixmagic.com, because you know what? I CAN FUCKING DO THAT. But you know, I at least am halfway fucking professional about my business-related stuff, so I won't because I really don't want to be associated with such an email address. So don't you fucking dare to criticize me for using my fucking nickname instead of my real name.
Long story short, people are fucking idiots.6 -
Also, Oh My ZSH with autocomplete and syntax-highlighting. Terminal won't be the same without it. 😎4
-
When I had to submit an enhancement to the customer and so I pulled an all nighter in my office. I knew before hand that the office would be empty post 11 pm, so I sneaked in 4 cans of beer and coded the night away while downing chilled beer.
That was a good night. :) -
!rant
This rant is just a test. I wrote a comment on a rant, in which i used html notation for a bad nerdy joke. I wrote it on my android phone and opened up the windows desktop and the html brackets are gone, maybe interpreted. Can you see the following html brackets?
<h1>i am inside a h1</h1>
<div>i am inside a div </div>
<p>i am inside a p and <b>i am bold</b></p>
maybe its a bug, because on www.devrant.io the brackets werent interpreted. Or its a feature for highlighting? If its a bug i gonna open up a issue for the devrantron app.36 -
Fuck these super social media instagram influencer developers telling everyone watching their story that "everyone can be a programmer.". You can't. It's not only about syntax and a run button.16
-
@dfox Can we get syntax highlighting? I know someone already requested that so this is just an echo.11
-
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 -
Why do people mix JS vanilla with framework syntax? That's horrible.
Why do people use jQuery anyways? There's no need at all anymore. It is just dumb JS for dumb devs.
Did that trigger you? - well....7 -
!rant
In the office, sometimes we order food for lunch.
Me: *goes outside the office to make the call*
*Coding partner arrives while I'm on phone*
Me: *realize that I forgot to ask him if he wanted food* Hey dude, do you want to order something?
Him: *thinks* Nah, I'm fine, I brought my own lunch
Another Guy: That's good because we already called!
Me: Yeah, but it doesn't matter, I can call and tell them "Order++"
Him: Nah dude, tell him "++order", because maybe he'll bring the orders then go back and realize that he missed one
<<<<
I don't know, it was funny for me 🤷♂️1 -
Started learning PHP bcuz @dfox loves it. Why not me?
(instantly)
WHY IS THERE SO MANY -> SIGNS???????
IT DOESN'T LOOK LIKE AN ARROW AT ALL!!!!!!!!
IT SHOULD BE AT LEAST --> TO LOOK BETTER!!!!!
UUUURRRRGGGHHHHHHHHHHHHHHH!!!!!
(stops learning a few hours ago, got a refund)
(curses david)6 -
Management: List your most significant achievement during this cycle.
Me: Developed and implemented a full stack of database micro containers that allow scalability and reusability. -
so many great fucking small or niche languages are ruined by shitty/odd syntaxes
sorry, but if you use the | character for function arguments, i'm not touching your language
for FUCKS sake5 -
I do not understand people who critique Python for using indentation to mark code blcoks. I've seen multiple posts being like "Uhh in Python a missing space breaks everything and it's so hard to find it". Yeah so hard when the interpreter throws a parse error and tells you exactly which line it's on. Let me go back to a bracefest language, misplace a brace halfway through the file, and get told there's a syntax error at the end, and spend a whole two minutes finding it.11
-
My intern was trained on 1 semester of Java, followed by 2 of Python, so there’s been several conversations at the office that boil down to:
“What’s *not* to love about Python? It’s easy to pick up, and forgiving as hell!”
“What’s *to* love about Python? I like being able to understand how my code is structured!”
As a WordPress shop, the discussion is moot, of course...4 -
!Rant
Having been working with JavaScript so intensively, I have a newfound appreciation for Python. It really is an elegant language.
I'm looking forward to returning to Python one day in the near future.3 -
Python syntax is almost like KARMA! 😒😓
Karma is "what you do is what you get" while
Python syntax is "what you see is what you get"1 -
Please, please for the sake of your born/unborn child, check whether the names of the entity attributes are not valid sql keywords.4
-
Every time I forget a semicolon, my IDE just shows a red squiggly line over the whole line, so I spend a long time analyzing the whole line taking to figure out what I did wrong, then and only then do I realize that I forget the semicolon.2
-
WTF C++?! I liked you, I defended you, I told people about you. Then you go and do shit like this:
int main(int argc, char* argv[])
to
auto main(int argc, char* argv[])->int
Seriously C++ WTF?!15 -
When you're mentally debugging a module and you have an intuition about the point of failure.
So you start mentally tracking variables, going down functions calls, moving from one class to another until finally you reach that one line of code that you feel is getting the wrong parameters.
You substitute in the 10 different variables you have been mentally tracking and find out that...
THE LINE OF CODE IS GETTING THE CORRECT PARAMETERS, AND IS FUNCTIONING AS IT SHOULD.
fuck.1 -
Started my internship web project. Found myself relying a bit too much on stackoverflow and google for backend and frontend help and it's making me feel a bit too guilty. Any advice ?5
-
Those much extension functions in Kotlin...
Just tries a lot combinations and got reminded of the "Let it go"-Song4 -
Wish you all a Happy New Year! Being a part of this community has made me feel a sense of belonging and that I'm a part of something bigger! Seeing all your fuck ups made me feel better that in not the only one, seeing all your accomplishments motivated me to achieve more in life! I would like to take this moment to thank you all and to make me feel proud of being a dev! I wish you all an amazing new year and may you all get whatever you wish this new year!
-
These guys who only know Python and fuck you up, because you are used to write "true" instead of "True", or "else if" instead of "elif". Finally they laugh about you, because you are not able to "remember this simple syntax"!!!2
-
Me: *suggests an architectural input to something that would have taken care of a lot of shit in our project*
Lead Dev: *doesn't completely try to understand what I suggested* I don't know if this would work, it seems a "bit weird"(really?). I think we need to rethink our current architecture. *Moves on to redesign everything from the base up and asks us to adopt so we go on and delete a lot of the existing code and basically rewrite everything*
- 10 days later
Lead Dev: *sees the same old issues with using the new architecture and suggests the same approach that I had suggested earlier, only this time he came up with it and it's a brand new idea*
Me: WTF! *Screams into oblivion*2 -
Why do people complain about python's syntax without semicolons but no one complains about golang?9
-
I thought I at least was OK at JavaScript, but today I looked at a tictactoe implementation, and with all the fancy new syntax I have no clue what most of it is doing.2
-
Just looking at the basic syntax of Kotlin gives me half a chubby. hahaha
It is just so damn simple and sexy!
https://kotlinlang.org/docs/...2 -
Not sure if I love or hate haskell... It's awesome, but then again the syntax is so fucking confusing...5
-
WHY ISNT MY FILE HIGHLIGHT SYNTAX WORKING?!!!
*realizes I forgot to add the opening tags*
Oh wait I'm dumb1 -
The more you learn languages like Javascript and Python, the more you realise that while every syntax differs, they're all essentially themes of the same if, else or and, type statements... This leads me to believe that with enough practice, it's possible to shortcut or pick up a new language progressively faster. Or am I just a melon?7
-
What’s your preference for a simple if without shorthand:
if ($variable == ‘test’) echo ‘’hello’;
if ($variable == ‘test’) { echo ‘’hello’; }
if ($variable == ‘test’) {
echo ‘’hello’;
}27 -
Why can't every programming language have the same syntax? Imagine how many fewer mistakes you would make...7
-
Anyone here knows whether this is valid?
This is the default code for a new Visual Studio C++ Console Project.20 -
After 2 weeks of ranting I have honestly ran out of rants.
Either my life as a dev is too good or I'm clearly not coding enough.
The later seems more plausible. -
Last week my first pull request to our company's Haskell project went into production. At the tender age of 52 I am a true beginner at Haskell, having read half a book and tried it out between other tasks for a couple of weeks before that. I would never have went for learning Haskell if I would not have had to but I am glad I did. And it will take a long time before I reach any sort of mastery.
I started out in the late nineties with JavaScript, learned PHP, Java and then Go. My first impression of Haskell is very favourable, the compiler is very informative and very fast, although not as fast as the Go compiler. The language is so different from anything I have used previously that a lot of synapses have had new connections. But the syntax! It's the one thing I really dislike. <$> and other crazy short hand. Like $ instead of parentheses. Haskell people clearly have a peculiar take on readability.2 -
01000110 01110101 01100011 01101011 00100000 01011001 01101111 01110101 00100000 01000001 01101100 011011007
-
rant, but !really.
Trying out this new Kotlin language. Pretty cool, except for...
val str: String = "what the fuck is this syntax?"6 -
Alright, Programming365 is underway! If you spot anything I could improve on, let me know in the GitHub repository.
https://youtu.be/ZhBesBRiuxM1 -
has anyone ever had this happen?
ide- syntax error: missing ";" on line 7 (1 error)
me- *adds the missing ; *
ide- syntax error: missing ";" on line 7 (57 errors)1 -
stop teaching language syntax and start explaining the ideas and the concepts in computer science.2
-
!rant
We've got a small army of foreign contractors working with us both in the office and overseas. Syntax has become the thing that stands out to me the most. We can all speak the same language, but our partners don't quite have the syntax down, resulting in some rather amusing email exchanges. I can't fault them, if the shoe was on the other foot, I guarantee I'd be butchering any other language's conversational syntax. Overall, the experience has been a bit of an eye opener for me. -
any of you guys listen to programming-related podcasts? 🎧
I recently came across "Syntax", a podcast on web development. They cover pretty basic stuff but I still find it interesting.
Would love to know if there are any other podcasts on programmin 🙂5 -
I hate it when someone says 'syntactic sugar' and on the other hand wants code to be readable. For me it seems that this are wheels which chain together.1
-
I'm a php developer
I don't like
If (something) {
//code here
}
I like
if (something)
{
//code here
}
Sorry.
EDIT:
However, in javascript, I'm fine with the first example. I may need professional help.29 -
Attempting a huge undertaking. I'm trying to convert a large JavaScript library, written in standard ES5 syntax, to Typescript with ES6 syntax. Turns out it's extremely difficult, but if I can finish this it will be 100% worth it3
-
If you feel you're not confused enough in life, try writing JS for a Rhino engine interface implemented on a Java codebase.
I have to deal with stringified JSON, native JSON, java JSON objects (org.json.JSONObject) and all the different attributes and functions specific to each of these objects.
Even "Why are the Kardashians so famous?" doesn't confuse me as much as this shit does.2 -
So for the past one month I'm working on an enhancement in a product coded in C++ and shell script, running on RHEL. After toiling away for almost 10 hours/day for a month, the enhacement is ready. Coded, tested, documented. Ready to ship.
The client is supposed to recieve the update as a drop. 1 day before the drop is scheduled to be released to Quality Control, I fire an overnight build on the build machine, update the change request ticket, update other related tickets, inform QC of the drop to be released tomorrow. On the D-day, I package the drop using the company's painfully arduous method. Everything is ready by the evening, and the drop is good to go.
At 7pm (one hour before the drop is to be released), Jack fucking Jack-o-lantern (one of the top most exec in the company) tells me that the default value of the parameter introduced in the enhancement, needs to be changed from 86400 to 1500. HALF AN HOUR BEFORE THE DROP IS TO BE RELAEASED!
Now here I am, changing the value in over 25 files, followed by firing an overnight build, followed by sanity testing, change specific testing, followed by drop packaging, followed by inform QC that the drop will be delayed.
All because fucking jack-o-lantern wanted to change the fucking default value.
GOOD FOR YOU FUCKING JACK.2 -
This is just a sweet little harmless block of code, why should I unit test it?
3 months later...
Bug in production : This is why. -
I have a weird love/hate relationship with JavaScript.
I'm not at all a webDev, but I like to use it occasionally because it's fun and I really like its syntax... but it's an absolute pile of shit.
If you put racing stripes and a spoiler on a golf cart, it's still a fucking golf cart.2 -
Have grown wierdly fond of devRant in a very short time.
Reading about devs around the world getting as frustrated and magnetically fucked as me, gives me some sort of sadistic calmness.1 -
Grails 2.x all groovy syntax for code and configuration. Simple and elegant.
Grails 3.x all groovy syntax except for the main configuration file. Let's make that a YAML file. F#%king genius!1 -
When I wrote count++ in Python and got syntax error. Darn!!! I just applied Java and C syntax again!2
-
Reading documentation for 3rd party software... come across a code snippet which references a class. The class is spelt correctly in the comment but wrong in the code!
What??? Surely if you're going to get it wrong it would be the other way round :/ -
Should linting and syntax highlighting be separate options in editors? It seems to me that anytime i just want a nice syntax highlighting extension in vscode i end up with a shitton of linter errors that i didn't ask for... I just wanted to see my keywords, dammit!7
-
Starts search and replace.
Trys to replace a type in the whole Project.
Syntax Check: lol no, apparently everything is broken now, good job
(literally my whole project was marked red)
Reverts changes
(project still marked red)
Syntax Check: lol what? Your code already looked like shit before, won't let you compile this.
It was a bug which breaks the syntax check after big replace requests. Had to start a new project and copy my code step for step, so it didn't break again. However I've forgotten to replace the type before I copy...
Another story regarding this shit:
Renames Variable
IDE: oh, let me help you by replacing all old var names with the new one
Agrees
IDE: oh shoot, didn't know it could break things
Wants to revert
IDE: did you think I would go through this mess again?! Do it yourself!3 -
Hey management,
Please assign me that Node.js project that I'll get to code from scratch and I'm stoked about.
Regards,
Frustrated developer. -
Making a function pointer in C and typedef-ing it.
Done wrong. Every single time.
Look up in the internet.
Copy a typdef-d function pointer.
It works.
Check it's syntax.
THE SAME FCKIN SYNTAX AS DONE FIRST!
And that's why I hate function pointers.2 -
That moment when you realize that normal people dont use increment and decrement in normal speech syntax...
-
Guys does any of you know good first c++ project. I have a lot of experience with java and python so I am not new to programming, but I want to get proficient in C++ because I am soon starting a job which all lower level programming.7
-
I really want to dive deeper in other languages. But everytime I see something with a not c-like syntax i can't muster the resolve to dive in.
Any advice to overcome that?3 -
Fucking gdb with your stupid commands, showing me the memory allocation, shos me the data you stupid piece of shit, what is the value pointed by the pointer.
*Segmentation fault**core dumped*
Oh gdb! How much I missed you. Please don't ever leave me okay? -
Code got submitted for review... Syntax error.
Like wtf, your IDE even tells you about syntax errors... not to mention the failing build 😤 -
When instead of propperly coding one ends up adding syntax highlighting to emacs for specific terms and just other fancy functions...
I mean hey, it is somewhat more readable now I guess. 🤷♀️
...
Guess I'm just distracted and aoiding the issue ^^' -
WHO CAN SPOT THIS STUPID PHP ERROR!
$string = "something.com"
if(strpos(".", $string))
echo " yep, there's a period";
else
echo "nope, fuck you there isn't";
output: "nope, fuck you there isn't"
me: wtf ??? fucking wasting my time on this fucking stupid tiny fucking error, goddamnit and each refresh takes 15 seconds because it involves calling all these apis from localhost, gmail, etc. arggg...
...for an hour, until I smacked my head so hard I'm in the hospital for a concussion
I hate when that happens.
Time to take a break.18 -
"we have all had that code which you read over and over again till you realise your mistake.';
read it again. #syntaxHell -
No matter what I do and try: Scala always look so damn ugly.
And yes, I do use scalafmt. Yes, I try to follow the scala approach, yet still -- my poor eyes.
It's also not helping that the bracket mess and the lack IDE-help in regards to finding where I missed them reminds me of time wasted in lisp. -
My worst habit(?) is probably loving to "waste" time, making api uri builders.
so I can chain a couple of methods instead of just typing out an uri :p -
most annoying "feature" in C++: the semicolon after a class definition. It just doesn't make any sense!3
-
Is there anything like a reverse search engine, that let's you enter e.g. some js code and it tells you what language feature has been used? Imagine you see syntax you've never used before and don't know what it's called or what it does but would like to know more about it.7
-
to everyone who judges programming languages based on syntax, it's appeal and familiarity: fuck you!5
-
The Uniparser: a single, self-describing general parser capable of parsing/syntax highlighting/linting every language ever made.
-
Seriously, FUCK initialization in parenthesis.
Because of fucked-up C++ standards I spent half an hour debugging a cryptic AST error because my method definition was apparently parsed as a member initialization.7 -
Built the most generic file importer.
So a customer had his SAP system giving us some 5 million barcodes in a csv which we needed to parse. But as there could be different file types and I thought the handling would always include the same steps I made them configurable through function pointers. - Did not want to make it as spooky as the rest of the code base where the function pointers were buried deep in some shared memory configs, which might even change at run time, but rather I statically used the member functions of my class. Just to poke fun on the ugly C++ syntax of member function pointers. I still shudder at the thought some poor soul now has to maintain that code.
(For the actual parsing I actually used a one liner in awk which was churning through the records in one minute which was faster than the SAP guys seemed to be accustomed to.) -
Learning about the basic syntax, then making a simple project with help from stack overflow and the documentation.
-
Its a real kick in the balls when you’re coding crazy for hours and the on the first test you get a fuckin Syntax Error2
-
This might be a highly specific mistake but, never ever uninstall the ms-office package installed on your work pc, linked to your corporate ms account. And then try to install another version from an installer you have lying around. Internal Support Team wasn't happy. 😅
-
Asking for a friend. Anyone here know how to get code syntax highlighting in Photoshop?
Screenshot and removing the background doesn’t help. It screws up the font of the code.
🙏🏻4 -
shower thought : if i made a compiler for my own programming language and it compiles to python. would it be a python dialect or a new programming language?5
-
Why is the syntax of SQL INSERT so completely different to the syntax of UPDATE?
...proceeds to rewrite multiple 60 column inserts into updates...2 -
What is everyone's preferred formatting for functions/if statements. Does the first curly brace go on the same line or a new line?
function 1() {
}
or
function 2()
{
}14 -
I've always was curious why people debating about mostly two code formatting types
for(;;)
{
//somestuff
}
or
for(;;){
//somestuff
}
while almost no one uses pretty decent IMO type like
for(;;){
//somestuff
//somemorestuff} (with tabs ofc)
It might be easier to forget some }s, but other than that it seems pretty nice to me13 -
I'm gonna enter in school tomorrow, in the presentation, they told us that during the "piscine" (a test phase to put everyone on the same level), we have to make code with functions with less than 5 lines of code inside it to validate the exercise. Do you think it's the good way to make a program?
-
Getting used to C++.... Jesus those syntaxes.... you can write it so or so or this way... also this way.... did i mentioned this?!1
-
So as part of my news years resolution, I thought id build an app and I thought I would build it in vue.js and native script with a shared codebase, I've started with a fresh project and already I have an error, one that I've not caused, this is in router.js. see if you can spot it.
module.exports = (api, options) => {
require('@vue/cli-plugin-router/generator')(api, {
historyMode: options.routerHistoryMode
};
export default new Router(options);
}
When I've fixed the syntax error, I then get, the error:
/src/router.js: 'import' and 'export' may only appear at the top level (5:0)
This is when I run "npm run serve:ios"
if anyone has encountered this, please let me know how you fixed this.2 -
Those of you working with .NET, do you prefer C# casting syntax:
(Type)variable;
Or VB casting syntax:
variable as Type;3 -
I should setup the Boostnote Sync. I wish there's a hybrid for Mac Onenote and Boostnote. My life will be easier.
What are you using guys? Is there a onenote and boostnote hybrid mac app out there? What are some alternatives? Thanks! 😃 -
It's the small things. Chronos task run syntax:
- P10M = 10 months
- PT10M = 10 minutes
And for some reason, lots of our task are defined to only run every 10 months, should be run every 10 minutes though.
Even weirder: Why do most of our tasks run daily? Either we have some cron job task firing curl requests at chronos rest api, or some poor content managers clicks a button daily. -
Which syntax is "correct" TypeScript syntax ?. I prefer the first one. But what's about guidelines ?
Note for UpperCase variables: yes I know. We use that syntax to differentiate public and private variables. (Yes I know that doesn’t exist in JavaScript)9 -
I'm trying to get started in making language syntax packages for Atom, mostly for two languages that are not so used as of yet though (Lisaac and S-SIZE), but I wonder: does one really have to upload the package to npm in order to be able to use it in Atom yourself?
-
anybody else has a "polish notation fetish"? i never actually learned lisp, but since i first saw its style, i find writing functions like "+ 1 2" instead of "1 + 2" both aesthetically and functionally more appealing. i think the infix notation is just being kept because of well-established habits.
-
Having a build check line for line, item by item what my Javascript syntax has to follow is fucking driving me nuts. A goddammn in place Javascript syntax machine nazi.
-
Hey fellow c++ devs, i have a question. I am currently working for a company that has a system with more than 300 000 thousand lines of maintained code and it is written in C++03. A lot of it utilises boost and custom performance work arounds and migration is currently out of the question, but I would really love to see some Cpp11 sugar in the code-base. I know there might not be too much business value to this potential endevour, but what do you think?1
-
Ah. As someone learning Python coming from .NET background, function names starting with a lower case is killing me.
I just spent 5 minutes figuring out why "PIL.Image.Open" didn't work. It's "open" not "Open"!!! -
<Dream type="pipe">
GitHub-flavoured Markdown in devRant... maybe even with syntax highlighting...
</Dream>4