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 - "static"
-
Client : pls put the disclaimer that the site uses cookies.
Me: but we don't use cookies this is a static page
Client: Still, the pop up makes the site look more professional, kindly add the feature asap
Me: :/22 -
Worst Hackathon ? When you have coded so hard during 48 hours to have a functional prototype and the winners get trophee with a static PowerPoint, full of bullshit buzzwords...10
-
Consultant: "you should deploy a website. Use wordpress and have a draft ready in a few days. It's easy."
Me: "It's a static website, a one-pager even. I think we would be better served with something light-weight without a database."
Consultant: "99% of the websites in the entire internet are powered by wordpress. It's state of the art, you should use it"
Me: 😢 "Nooo, it needs mainentance and stuff. Look, XY is much simpler. You can even version the static site with git"
Consultant: 😤
We ended up with wordpress for our static website now. I am so proud. I absolutely love wordpress. It is amazing. Now my static one-pager can have plugins, multiple users, security issues and all that. The future is now!17 -
Today I saw this in our code base:
private static final int THREE = 3;
To do this:
rating += THREE;
I laughed, and cried a little.8 -
Hehe, stumbled upon an oldie :-)
struct ComputerContractor
{
double salary;
long lunches;
float jobs;
char unstable;
void work;
int hiring_him_again;
const pain_in_the_arse;
unsigned agreement;
short fuse;
volatile personality;
static progress;
};
/* and there are no unions in sight */3 -
My biggest tip to new developers? Embrace your ignorance, don't be embarrassed by it. Let it inspire you to learn as much as you can, let it humble you into asking questions when you're stuck, let it prepare you to change within an industry that is anything but static. Admitting you don't know something isn't a weakness, it's an opportunity 😃6
-
My boss has never programmed before. Recently, he decided that I should print out all the code for an admittedly rather small project (10k lines of Java code, 200 pages printed out), and then have me explain every line to him.
Luckily, he didn't get past 'public static void main', especially since I hadn't even bothered to print out more than that!13 -
static void TryOut<T>(T newStuff)
{
try
{
self.Learn(newStuff);
}
catch (NotUnderstandingException)
{
// At some point, it will work, just call it again
TryOut(newStuff);
}
}4 -
"I made your static HTML pages into a dynamic site! Now just include <%Header%> instead of copy pasting that nav into every page!"
...1 week later...
"You made our website all crazy. None of the pages have headers in the source code but it still shows up by some kind of witchcraft. Put it back."3 -
When you accidentaly build up so much static electricity that you zap your laptop and the screen goes black. 😅2
-
As a Java developer, reasons to kill other programmers:
- static mutable variables
- WRITING to static mutable variables
- API call with Framework X didn't work. Add Framework Y along with X and try that. Wrap X in try/catch statement. Catch block fires framework Y.
- six, seven, ten levels of nested code. Zero thought put in organization
- 6K LOC Java files
- spring (singleton? Maybe) object assigning values in static mutable (see pt.1)
- a couple of unit tests in code base that no longer work. Zero unit tests in new code
- unit testing disabled in CI pipeline
- empty catch blocks
- pass mutable data between threads. Modify in various places concurrently.3 -
/*
Pickup line by a dev-
Hey girl,
I always thought `love` was a static class till you made an instance of it!
copied
*/2 -
FrontEnd developper :
Hello here is the STATIC page you asked. Only takes 300 MB of frameworks to make it work.
Are these people on crack or something ?11 -
import java.util.Exception;
try {
public class A {
public static void main(String args[]) {
new Exception();
}
}
}
catch(Exception e) {
System.out.println("Got you BITCH");
}9 -
The moment when the legacy system programmer told you they program object oriented, and all you see is a class with hundreds of static methods. and 2 protected static methods9
-
public class HelloDevRant
{
public static void main(String[] args)
{
//Commenting for reasons! ;)
System.out.print("Hello dear devRant community!\nI am new here!\nNice to meet you.");
}
}5 -
// I can't be the only one...
public static void p(String inpt) {
System.out.println(inpt);
}
...
p("That much typing is unjustified.");13 -
Python: I hate the way it uses True/False over true/false
Java: Static. Just fuck static. oh and System.out.println(), why the fuck did they make the basic print function so long to write.
C#: I despise the way the curly braces get automatically put under the function declaration rather than beside it since it's a language style thing.
C: the inability to declare vars in altho declaration of a forloop. Although I think C11 let's you do this.
Javascript: Fucking prototypes.
Coldfusion: it runs like an elephant. Slow and heavy.
Go: The way the compiler won't let you have unused variables/imports. Pain in the ass for testing.17 -
For all you meme lovers
namespace Improvise {
static class Adapt {
int Overcome;
}
}
Improvise.Adapt.Overcome2 -
Going through code left by a senior developer who quit.. Dated 2015..
public static T IfThenElse<T>(bool isTrue, T ifYes, T ifNo)
{
if(isTrue) { return ifNo ; }
else if(!isTrue) { return ifNo ;}
Debugger.Break();
throw new Exception("") ;
}
.....
There was a unit test for it well
....
............. Wow, just wow9 -
Found this gem in some old piece of code:
public static void printStackTrace(Exception e){
e.printStackTrace();
}3 -
condition == true
is for boys,
public static boolean isTrue(boolean condition) {
try {
return new Boolean(condition).equals(Boolean.parseBoolean(new String(Boolean.toString((boolean) Boolean.class.getField(String.valueOf(true != false).toUpperCase()).get(null)).toString().toCharArray())));
} catch(Throwable t) {
return condition;
}
}
is for men.6 -
Not really a programming thing. But I once forgot to set a server to use a static ip. So after 3 months of runtime, it had to be restarted. And everything broke.2
-
Putting SSH on another port and using fail2ban on the default one to ban everyone else trying to get in is a nice thing until you ban your own static ip by forgetting the new port...4
-
My first real web project was in my senior year of college.
It was a hacker rank clone. And supported a bunch of languages. It was a fun project.
Others created a static website.
And guess what? they got the same grade as I did.
Fml14 -
Python Dev Learning C#: I'll just wait until I run the program to see what type the function returns.
Me: Static typing means you know that before the code even compiles!
Python Dev: Sometimes I forget that all functions explicitly say what they can return.4 -
TIL that it's faster to host static web components on a separate domain to avoid overhead and traffic generated by cookies
Thank you So yet again
https://sstatic.net/3 -
using 21 js files (most are jquery based) and some 17 or so css files for a simple static one pager,
the only dynamic part is a filtered list of images,
big fuck you to whoever wrote this shit -
Me : Can I have your Server Access to deploy project.
Client : I don't have server. I will run it on my laptop.
Me : Okay, Are you sure? And do you have static IP?
Client : what's that?
😂1 -
Today,I found this gem:
static function getConfig(){
$cacheKey = 'foobar';
try {
$config = $this->repository->getConfig();
$this->cache->set($cacheKey, $config);
}
catch(Exception $e){
try{
$config = $this->repository->getConfig();
$this->cache->set($cacheKey, $config);
}
catch(Exception $e){}
}
}
I don't want to live on this planet anymore...!7 -
FUCK STATIC-SIZED ARRAY!!!
FUCK YOU!!!!
FOR MORE THAN 3 HOURS I TRY TO ADD A VALUE TO AN ARRAY
Nothing work...
Nothing...
AAAAAAAAHHHHHHHHHHHHHHHHHHHHHHH!!!!!18 -
I rewrote my static website generation from jekyll to custom python code over single night.
Literally all jekyll plugins I use including seo, rss, syntax highlighting inside markdown content, sitemap, social plugins, css sass, all of it.
Now it’s around 400 lines of python code that I understand completely. I didn’t touch any existing templates and after comparing output I got even better results now and it’s working faster.
I skipped drafts as I don’t need them now.
Why ? Cause now I can make better generator for my side projects that can include some partial website generation, better modification and date handling, tree structure, etc.
What I will do now is that I will parse bunch of content to create markdown files that will be sucked by this generator to create static web pages that will flood internet lol.
Still I didn’t believe it was possible to rewrite all of it so quickly. I sit yesterday around 4pm and finished around 6am.
I started thinking that maybe I am crazy and no one can help me.9 -
Two actual lines of code I stumbled upon...
static ArchiveAbstract ARCHIVE_TRUE = new ArchiveTrue();
static ArchiveAbstract ARCHIVE_FALSE = new ArchiveFalse();
Ok you might think, what is going on? Searching for it's usage yields exactly a single case:
if(someVar instanceof ArchiveTrue ? true : false)
So someone managed to introduce 3 new classes... instead of using a simple boolean.
(╯°□°)╯︵ ┻━┻2 -
unpopular opinion: javascript has broken standards, and nobody corrects it. people use these frameworks and shit with 600 dependencies, then can't figure out how to update their application when things go out of date. now people are expecting you to use NPM to make a - - > static <- - website9
-
when you make your best at code writting,responsive design, and making everything smooth but the designer get the credit " coz' the design it's what matters" really? i can't imagine browsing a static image..1
-
In ESnext, private properties are marked with `#`.
Who thought that was a good idea? No really, who thought that was a good idea?
Why not just -- I don't know -- introduce keywords like ... let me think ... public, protected and private!?
Why this:
class MyClass {
a = 1; // .a is public
#b = 2; // .#b is private
static #c = 3;// .#c is private and static
incB() {
this.#b++;
}
}
If this becomes part of the language, no JavaScript developer may joke about php usage of `$` anymore.34 -
I provide hosting for my clients. About 3 months ago I discovered that the hosting company that I'd been using had been swallowed up by EIG, which explained why the tech support had gone downhill.
So, I jumped to another hosting company. Same shit different company!
Apparently the fact that my browsers sit at "connecting" for up to 30 seconds, and I get a "could not connect to" message half the time while I'm trying to fucking work on a deadline is the fault of some plug-in in a WordPress installation!
Oh yeah? Why then does this shit happen when I'm working on a pure html/css site?
Why then did it start happening after they "updated" my shared server?!
Oh, but the bastards suggest that I buy Cloudflare or pay for more space!
You fuckers made my work take 3 times as long, and you made an important migration fail!
Network places make mistakes. We all do. That's cool. Fucking own up to it, talk to me like a techie, and DON'T TRY TO BLAME IT ON ME OR MY TOOLS!
Fuck you! I think I'm gonna give Google Cloud a try, and do this shit myself!7 -
Getting a static IP has become a kind of a status symbol, my friends are paying extra bucks to ISPs so during parties they can be like `Hey Yo, Ping me at 27.49.36.16 , it's static!` :/8
-
conversation between me and coworker via slack:
me: why ffs does this class extend this class. Calling it as a static?
me: it's called as a static exclusively throughout the entire project. shouldn't it be moved to a core singleton class?
me: yup, moving it to core
me: thanks for being my rubber duck -
Arrrrrry new year, you bloody pirates!
For those few of us still running fully static sites: remember to update the year constant, re-compile and upload.4 -
- What did a Java static method accused of criminal possession of a weapon said in his deffense?
- "THIS does not belong to me!"1 -
Dear everyone who doesn't write JS and has some hand-wringing concern about its lack of static typing, lack of threading, or its suitability for large back-end services:
It's fine, we've got this. You go back to discussing contravariance or whatever it is you do.
Signed,
Team JS4 -
Have I ever mentioned how much TypeScript compensates for JavaScript's Lack of being statically typed?
It's. So. Much. Better.12 -
Biggest annoyance of favorite language:
Python has no static type checking. I know that is not something that is intended for Python. It's just that I enjoy the syntax, but would love the type-safety of something like Kotlin/Java12 -
class Life extends Death{
public static void main(String...args){
Guy me = new Guy();
me.born();
GirlFriend gf = new GirlFriend();
me.setGirlFriend(gf);
me.getMarried();
me.haveSon();
me.die();
}
}
------- Exception on line 5: NullPointerException, girlfriend cannot be null ---
Daaamnn6 -
public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
sorry for my messy code23 -
*Java*
Friend: So I can have variables on interfaces?
Me: Yeah, just that they are final and static
Friend: ...2 -
Annoyance in C: using the same keyword for two unrelated things, process-long memory allocation and internal linkage. Looking at you, static.
The latter should really have been called "intern", just like there is "extern". Far more people would use it if it was named correctly.
History says "static" was chosen for compatibility, allowing older compilers to take new source files.2 -
Just purchased a new house and was looking for a new ISP. Found a local ISP that is still offering dial up services and "Professional Website Design". Their website was obviously pre-web 2.0 all static nested tables and sliced images.4
-
How many here know surge.sh? it seems each time I mention it somewhere, nobody knows it, checks it out and thanks me. It basically allows you to host a static webpage on their servers - for free and with custom domain if you wish. They are also the creators of Cordova/Phonegap.3
-
I have an interface implemented by 11 classes, coz u kno, it's "SOLID". But today i felt my life is a lie when a developer refactored my code and deleted all those classes and placed them in a Utils class with static methods, and slapped me with "Let's make it simple".14
-
Learn VIM. Unless you're doing Java or some other compiled static typed language. In that case: learn JavaScript and then learn VIM. 😎4
-
I just had a programming test.
I'm such a fucking stupid retard.
What I should've written:
static bool NotAnd(bool a, bool b) => !(a && b);
What I did:
static bool NotAnd(bool a, bool b) => a != b;
So instead of !AND, I wrote a fucking XOR. I got everything else right but not the simplest of all.
Great birthday so far.4 -
Some people in the company (3000+ people) didn't know how to use static variables (c#) in a thread-safe manner which resulted in production problems.
Only possible way to solve this in management's mind?:
Disable the usage of not read-only static variables via quality control...1 -
A guy rants a client of mine "anonymously" via his website contact form. How stupid is that. Even worst. He used his static IP connection. Busted! IP forwarded to my client. Turns out he is one of my client's client and has unpaid bills to him :>
-
Extensible event system design in c++ - but also includes built-in static types for uniformity and performance.
Happy with it!14 -
Not sure if I'm going crazy or my spacebar is full of static 🤔 is that even a thing?
Anytime I move my hand pass the spacebar I get this tingly feeling.....
In 30 years... this is a new!8 -
!rant
I used to doubt the usefulness of regex, until now.
I'm new to web dev, and downloaded a sample website to make a project with, but all the sources of images came as src="images/image.jpg", and for some reason I couldn't make it work, the only way that I found that could work to me was creating a static folder inside my app folder, declaring in the start of the document a {% load static %} and referring the image source as {% static 'images/image.jpg' %} in the html file, I kinda get what this is doing, but why it's the only way that works, it's beyond me.
Great! Now I can start the development server and see the website in its full glory!!! Then I realized: I had to edit the sources of every image and every reference to css and js in 5 html files to it work properly, and come on, do all that by hand?
Then regex came to mind, never had used it, never knew how to use it properly, after some web research I found if I did a find/replace with ([a-z]\w+\/[a-z,-]+\.[a-z]+{1,2}) and {% static '$1' %}, all the work I had to do, was resumed to a single click of replace all.
Man, I love doing what I do, and I love you guys/gals, never tough I would ever find a place in which I could share this kind of thing!6 -
A project at work which is based on blindly copying other projects, empty catch clauses, a static class for global variables, and incompetence.2
-
I got freelance contact for this simple static website.
Now the client is having a brainstorm and started giving more and more requests for features...
Slowly it's going to be not worth it...5 -
I legit had an interview once where he said
"Ok next question. Static variables...are they good or are they bad"
The funny thing is I can totally relate to working with someone who thinks static variables are bad but it's sad to see this is how far we have fallen.7 -
STOP WRITING CRAZY FUNCTIONS FULL OF INSTANTIATIONS THAT I NOR ANYONE WILL EVER BE ABLE TO WRITE UNIT TESTS FOR!!! STOP calling static factory methods that spawn up who knows what in mid function as if Im actually going to be able to mock such a dependency. Better yet, practice test driven development so we don't end up in this mess again11
-
Why would anybody use dynamically typed languages? I mean it is lot safer to use static languages, no? No weird bugs, no weird outputs...
How they manage to write such big applications in dynamical languages?17 -
Came across an app that I really liked, but unfortunately, development has ceased for it. That also means I can't pay for it in order to get a license key. So what's a developer to do?
DECOMPILE it
After decompiling it, I placed inside the code that I paid for the app 😂
.field public static final MARKET:Ljava/lang/String; = "paid" -
Keeping myself from getting bored af at work. I am a backend engineer doing mostly frontend. And right now it ain't even the interesting stuff. I am merely passing photoshop files to static displays.
Kill me. Every once in a while I do maintenance on Java and PHP apps, but still...bored.....more Rails or Django please -
I recently got into an argument with some people, and I want your opinion. I did a speed code in Java (just sped up clip of programming, because it looks cool lol), and someone commented:
"Way too much static abuse here. Jesus"
In which I replied:
"Actually, sir. There is near none at all, just because I use static methods does not make it static abuse. A static method belongs to the class, and is somewhat permanent. It is not a type (instance, cat, dog, animal, etc.) class, it is a Utility class, much like other dependencies you'd use are Utilities and not types."
To which they reply:
"Getting and setting is a Utility?"
Boi. If it is a static variable, yes. Like, what?6 -
"We enjoy typescript because it helps 'Massage our code' ". Dude if you used javascript enough to understand the difference between excellent and atrocious code then you could "Massage" all you damn well please.
Strict typed languages just keep the developer from making more mistakes. Being a GOOD dynamically typed programmer is an art form in itself. Most will be 'ehhh' cause languages like python/javascript/php allow you to be awful with zero repercussions and that feeling of liberty continues to make them so popular.
Give it up for the javascript developers that do not need a strict typed language to keep their ducks in a row or their tests in line.16 -
What kind of seizure of insanity led the devs of Python to believe that static, mutable default parameters could be a good idea? You can literally share whole arrays between multiple calls of the same function with the same input, and the number of cases where a sane person would intentionally want to do that is FUCKING ZERO.4
-
Me: the web app is downloading a lot of static content while loading the page, leading to the app being very slow in low bandwidth locations. can you ensure compression is enabled while serving static files ?
UI Developer: sure, I'll look into that. Btw, I have a question reg that.
Me: yes, pls.
UI Developer: once the compressed static files are downloaded to the browser, should I write a separate module to uncompress them ?
Me: :-(Strategic Facepalm) -
All classes (with a few exceptions) have nothing but static methods just so that I can call them like "Class::Method()" from anywhere in the project...5
-
Why the FUCK are my project ideas so easy to implement. I wanted to make a static site sharing webpage (imagine github pages), and i fucking made it in 2 hours?????? Fuck me, does anyone know something like codewars or something but with project ideas instead of algorithms?5
-
C# developer: static typing and precompilation make my language really fast! *writes service that makes 50 synchronous database calls for every request*1
-
Use different indentations in same program.
for(.....) {
}
if
{
}
else
{
}
void doSomething
{
}
static{
}
I have to stick to one convention anyhow soon.. :/3 -
When your director wants a single flat static webpage(a simple advertisement with a form), but forces you to create it within Wordpress
....talk about clunky9 -
I was working with a stable installation of an elaborated platform. Some plugins were installed. After upgrading the installation by 2 patch level the customer registration was not working anymore.
In these two patch level a method in an interface got an additional optional parameter which had a major impact on the behaviour the implemented method. A plugin decorated the implementation without knowing about the new parameter. Therefore when calling the method the decorating class did not pass the new parameter in to the decorated implementation and the fallback value was given instead.
The caller expected the method to do something and did not branch into an alternative way but the default value disables the expected behaviour. Eventually nothing happened.
Breaking changes in patch levels woop di fucking do.2 -
Interviewer: Could you please make a class to force it create one instance at most?
Me: Sure!
(I didn't know the singleton pattern)
class A {
public static bool isCreated = false;
A() {
if(isCreated == true)
throw new Exception();
isCreated = true;
}
}6 -
I created a class Log with a method d(String tag, String text) to replicate Android's log method in Flutter.
class Log {
static void d(String tag, String text) { print(tag + ": " + text); }
}
I replaced all 'print' into 'Log.d' in my project and I wondered why emulator kept crashing for the past two days.
Now I know..4 -
I have found some subdomains of a specific domain.
I know the subdomains are up but when i try to load them , firefox says "unable to connect".
What might have caused this?
A static ip or mac address?5 -
!rant
Started learning Rust yesterday. As a web developer I like the static typing and the speed. I want to know a low-level language to complement Python but kind of dislike C and C++ and that's why I chose Rust. At the moment the syntax still feels kind of foreign but I probably need to just man up and embrace it. :)9 -
8 hours of networking/static routing exercises...
Result?
Windows bug: system provides two standardgateways
Let me write that again:
Two STANDARDgateways
Neither me nor my teacher found out how this happened -
University: "It is important to distinguish between read-only variables and editable variables. They make it easier to find bugs if you're changing a value that should not be changed"
Me: changes all `const`s and `val`s for `var`s every time I get a re-assign error.2 -
interface Flyable {
public static final int wings = 2;
void fly();
}
This is a good use of interface a/c to my CS Prof
(╯°□°)╯︵ ┻━┻21 -
Why are there barely any material design based static site libraries using js and CSS -,-
Don't use node or anything so guess I'll be building my own 😁🔫16 -
using System;
namespace HelloWorld {
class Hello {
static void Main() {
Console.WriteLine("Hello World!");
}
}
}
So, yeah, hello DevRant...
But that you don't thing I am insane, I also know how to survive in C++ and Python.
Besides the fact that I utilize Mono on my Linux server I am crazy enough to admin Windows servers.6 -
Imma jus start callin uhlee niggas who touch me electronics wo/ discharging their static electricity fat fucken retards 🤙6
-
I've tried to give it many chances, but I just don't think Python will ever be for me. Even "quick and dirty" scripts are faster for me in a statically-typed language with static syntax checking and sensible code completion.8
-
Can we please make a Over Engineered Section....
This happened a couple of weeks ago...
Hey platform engineer team, we need a environment spun up, it's a static site, THATS IT!
PE Team response.. okay give us a 2 weeks we need to write some terraform, update some terraform module, need you to sign your life away as the aws account owner, then use this internal application to spin up a static site, then customize the yml file to use nuxt, then we will need you to use this other internal tool to push to prod...
ME: ITS a static site... all I need is a s3 bucket, cloudfront, and circleci9 -
So I'm kind of a fledgling webdev. Where would I go to learn how to do backend in order to do logins, manage inventory, create posts, that kind of thing?
I know a little bit of PHP, HTML, and CSS, but only enough to make static pages... it's kind of bad...2 -
In production, whenever nginx can't find an upstream it will display a static 'maintenance' html file that tells the user the come back later
In development, it shows clippy :D -
Without using editor...
public class Test {
public static void main(String[ ] args) {
int value = 3, sum = 6 + --value;
int data = --value + ++value / sum++ * value++ + ++sum % value--;
System.out.println(data);
}
}
a) 1 b) 2
c) 0 c) 318 -
FUCKING CSS and browser inconsistencies.
Trying to make a simple static site but these fucking browsers are making it so hard I want to program console application instead.
Also for some reason mobile Firefox don't give the right window height and width fuck everything.9 -
My "senior developer" colleague just committed 300Mbs worth of node modules in addition to static files bundle. So not only I have to wait 20mins for the changeset to download on this god damned internet over barrels connection but also resolve merge conflicts on 100+ files. You think that was a mistake? Oh no I've asked him about it and it was intentional ...1
-
Same procedure as last year? Same procedure as every year for the last truly static website holdouts: change the year in the template, re-compile, upload.2
-
!rant
Today I took a look at https://hexo.io/ as a static website generator for github pages.
It seems pretty decent and you can create your content in any of the 'layers' you like. (markdown, jade, scripting or plain html)1 -
In my previous job, we had in c# a class called static manager. This abomination was thousands of lines long, every member static. Eventually the dev responsible, did split it in to multiple files each thousands of lines using partial class. Worst part? It wasn't even legacy code yet.1
-
Folks,
What static site generator do you prefer, and why?
I want to set up a website for a small business and do not want to spend a lot of time on it but it also should be blazing fast.
My familiarity with react leads me to Gatsby, but there are probably good alternatives.
It should also be easy for the (non-tech) admin then to create posts on a news page or even new pages (probably with Markdown).
Thank you in advance!4 -
dear ietf-people i want to thank you that tls1.3 is official. i know it was hard work to say just no to the doughbags and preventing that middleware and spyware manufacturers implementing static keys.
to make it short:
Thank you for your hard work -
The cool feeling when you see your static analyzer that compare previous version and future release and code quality is improved.
At the same time the bad feeling because you was the same dev that made the previous version. -
That moment when you get your first job after getting your degree and one of your co-workers with about 5 years of experience asks you what is a static class because he never used one...
I mean come on... You have 5 years of xp and never used a static before? x)
This project is going places...1 -
Metalsmith is an older but still awesome NodeJS static site generator. Due to metalsmith's original founding company not having done a complete open-source ownership transfer however, active development has stalled for years.
I am super-happy to have been accepted as a member of the Github metalsmith org today in the role of maintainer. Hope I can help bring it back on track. If you're curious please npm i metalsmith and head over to the newly created Gitter chat to share your input: https://gitter.im/metalsmith/... !2 -
During my first job as software engineer I was assign to setup meta data upon implementing the meta data I accidentally forgot to remove the static og:title="Im ocabafox and Im handsome AF" and it was deploy to production. After few days someone send an email that when they share to facebook there is a text Im ocabafox and Im handsome AF. :D
-
Since becoming an "Architect", I've come to learn "Architect" simply means siphoning your will by eliminating all opportunities to actually write code ...
public class Architect {
static final boolean inMeeting = true;
private int will;
public static void main(String args[]){
Architect me = new Architect();
if(me.inMeeting){
while(meeting.active){
me.reactToEvents();
}
}else{
me.writeCode();
}
}
public void reactToEvents(){
if(new Random().nextInt() % 3 == 0)
will -= this.hit(this.face, this.palm, Force.CONSIDERABLE);
else
will -= this.hit(Office.desk, this.head, Force.MODERATE);
}
public int hit(Object object, Object with, Force force){
object.useForce(force);
object.moveTo(with);
return new Random().nextInt();
}
}1 -
The most interesting part of learning Jekyll is trying to remember how to type 'Jekyll' correctly...
-
Having a static class in C# with 20 variables of generic type: ArrayList with zero documentation to know type of array content 😒1
-
Does the ease of “hacking”/breaking AI scare anyone else?
I remember a slide from a security presentation I saw once where there were three sections, the first was an AI classification of some animal with about 60% confidence, the second was a small grey static (think old tv static type thing) with a label next to it saying 10% and the third was an AI classification of the first picture overplayed with 10% of that noise and it had 95% confidence that the animal was COMPLETELY DIFFERENT.
Adding just 10% noise and AI goes batshit crazy. (No it was not a bat afaik)
THINK ABOUT THIS IN TERMS OF STOP SIGNS. WELP.3 -
I've been writing various forms of OOP for three years and just now learned exactly what static means
-
Building games for people to whom the expression "game design" evaluates to "game UI design", which a fancier way to say "a bunch of static slides with arbitrary screenshots"6
-
I just hate Comcast. All I want is a static IP to host a server on BUT NOOOO COMCAST BE LIKE BITCH YOU GOTTA BUY OUR ENTERPRISE PLAN FOR SOME RIDICULOUS AMOUNT FOR A STATIC IP4
-
So I reinstalled Ubuntu server and set the ip to 204, but I forgot that I assigned a static ip to it in my dhcp. I guess it has two IPv4 addresses now? How? Only one NIC 🤔3
-
I'm dockerizing this old CMS that needs a database query to resolve URLs for static assets.
Yes, a query for every single static resources. Fuck me.2 -
Python. Oh dear Python. Why, oh why, when I have your function with parameters defined as an int, do you blithely accept a string and just go about your merry day? If I wanted you to be able to accept a string I would have let you accept a string. But no, I want ints. Its not a suggestion. Its a demand.
You're dynamically-typed thug life gets on my static-typed backgrounds nerves.
(I am fully aware of the reasons for it and why, but my goodness I do sometimes miss my static-typed compile error languages, rather than pseudocode that accidently compiles python)25 -
Felt like helping out a local brewery with a website due to the pandemic for free beer.
OMG feel like an idiot on how long it takes to set up static site from scratch.
Using the static site generator Hugo is easy but customizing the templates, content writing and the graphics are becoming such a fucking bitch! Especially the fucking graphics and not using photoshop but gimp. Is there something else do not want to learn anything else.
Not even to the hosting yet, I hope AWS for hosting static sites is as cheap as eveyone says. I know there is a learning curve but that is why I took this on so I would have experience with it and can out it on my resume.
New respect for free-lancers that do it all.11 -
I once had a Pakistani client on Freelancer who offered me almost 300$ just for a static two-page website.
I agreed,and later found out it was for a Ponzi scheme.2 -
When I overhear a senior dev explain a static class to a dev who makes twice as much as me it kind of pisses me off.2
-
Spent months building a full regression testing framework app at the request of my boss...
Now he just says need a simple app to test a few static URLs...
I could've written that in 1 day... FML...
And now I've been pulled away from the main thing he wanted me to work on...
and keeps asking if it's done yet... -
I'm absolutely exhausted...
Just spent the past 2 days restructuring our SAAS products entire server network on AWS just so we can have a static IP address for all our server instances passing through an NAT....because we need to integrate with another service that only allows you to access their API if they whitelist your IP.2 -
You know your doing a quick and dirty job for a diagnostic tool when every method you create in alternate namespaces is static...
Suppose I should probably stop doing that aye...3 -
C# has static binding by default. Meaning methods aren't overrideable unless you specifically tag them as virtual. I love how in java you can take someone else's random class and override everything with some additional or alternate behaviour.13
-
Sitting here scrolling my timeline seeing my friends and family getting engaged, getting their degrees, getting new jobs, talking about #addictedtosuccess and all that. Meanwhile I'm just here like "Should I use a constructor or a static method for this?" 🤷🏽♂️3
-
Took a whack at installing arch...
I failed. 😔
My rj-45 port is broken and i I couldn't figure out how to manually set a static ip, default gateway and dns for the wifi interface thru the terminal when installing.
Oh well. Maybe next time5 -
U've seen one dev creating Java-Classes like 'GetLevel' which contain only one method that is called 'getLevel'. And it wasn't even a static method.4
-
public class Celebrations {
public static void WishHappyBirthday(String toWho) {
if(toWho == null || toWho.isEmpty()){
System.out.println("Can't wish" +
"happy birthday to" +
"someone that doesn't exist");
return;
}
System.out.println("Happy Birthday " +
toWho + "!!!");
}
}1 -
JS' array function forEach. Why. Why does it exist? How is a function with a callback better than a freaking simple language feature like for of? If I recall correctly, forEach is older than for of, but people still use it nowadays, and too frequently...
Hate it, definitely.
Also, talking about enumeration in JS, Object's "static" method entries. I can't see how it can't be an instance method. Same for keys and values, but I usually don't care about them.12 -
Who the fuck invented the glorified pile of shit people call laravel? Is this actually used in PROD for anything else than load testing a monitoring server by creating loads of error messages?
OOP exists for a reason, not to create bazillions of classes with static methods.
Dump that shit ffs!7 -
http://bit.ly/2fme7PU
Check out this article I wrote on Jekyll. There's a tutorial in progress there too :) Jekyll is a static site building framework that allows you to dynamically allocate headers, footers, etc. Change a header once and it updates across all pages. I have a tutorial in progress there too :)3 -
Pet peeve: the claim that static typing prevents errors.
Today I worked on a C# project that's a mess of nulls, side-effects, inferences, and race conditions. Then I went back to a JS project that's twice the size but written in a clean, well-tested, FP style and currently has fewer than 10 issues logged.
Look, I get that there are upsides to static typing, and I'm open to introducing typescript or flow for our JS code.
I just can't stand the faux-concern from the static typing dingleberries when they are the ones who produce these horrendous lumps of unmaintainable shit, and the JS/Python/Ruby/etc people are over here quietly reinventing functional programming and code modularity.10 -
Static typing : one boyfriend/girlfriend is enough for me
Dynamic typing : prostitute/womanizing mode activated (i have the right to fuck who ever i want) -
Static site generators are fun and games until you try to add a self hosted image file to your site. 😢3
-
* Publish blog update that's been sitting idle locally since months
* Donate 50$ to open-source initiatives (favs are VLC, Linux Mint)
* Contribute meaningfully to relaunch metalsmith static site generator dev
* side projects (TBD) -
participating at an coding challenge.
the mission is to write an game solver for an game engine - in java. based on astar, pathfinding should be made possible by cloning objects.
never seen a so hardly misconcepted challenge, where character instances and their variables are static and contain uncloneable data😂 oh god what a waste of time realizing this bs1 -
Finally set up my home server and port forwarded it so I can use linux everywhere even as a window pleb.
Now just to make a solution for not having a static IP address...2 -
Me (sysop) : in order to access our servers, you have to give us your WAN static IP...
Developer : yes I have a static IP... 192.... 168...
Me (don't know wether to laugh or cry...) : O.K. !2 -
I just built a website with Hugo. And I love it. Got a request for a certain set of pages but because of the workflow the one thing I could dynamically load wasn't worth a whole wordpress site.
So I built it with Hugo instead. I played with it a little last week so I could get around but I got good this week and damn it's powerful.
I think I'm in love. I wish more projects at work could be built in Hugo.12 -
My colleague is having fever with reactjs and tools. Why the hell a 5 pages static cooperate website of our own need to use webpack?! How often we need to update the site? And today he spent whole day configure his gulp and deployment automation. If I were him, I would have finish the task with bootstrap, jquery and filezilla.3
-
Jesus fucking christ! I've been hired by this bank to improve the quality of their online banking software. Zero unit tests and I'm tasked to make it testable as much as possible.
Guess what? Almost the whole fucking codebase uses static classes everywhere!!! Good luck unit testing that.... what a bummer. It is a challenge though.2 -
public static void turnItUpTo(int val) {
this.setLevel(val);
}
public static void main(String[] args) {
turnItUpTo(11);
System.out.println("Rock out");
} -
class smoking{
public static void main ( String []args){
int a = 2;
String c = "cigarettes";
if (a==2)
System.out.print ("go smoke "+ c);
else if (a <2)
System.out.println ("go buy some");
else
System.out.println ("error");
}
}10 -
I'm writing a website for a café and I'd like to use a new tool for generating content and managing it. Only real requirement is a SCSS pre-processor and maybe built-in Auth.
Any suggestions?3 -
I´m learning C # basic concepts and a question has come up after doing this exercise:
using System;
namespace exercise
{
class MainClass
{
public static void Main (string[] args)
{
console.WriteLine("Type your name");
String name = Console.ReadLine ();
console.WriteLine("Type one city");
String city = Console.ReadLine ();
console.WriteLine("Hello"+ name + "wellcome to " + city )
Console.ReadLine ();
}
}
}
Question: its necessary to put the last
Console.ReadLine ();?Why?9 -
For months had a static clicking very faint noise on my creative speakers. Googled every issue with my x-fi titanium, swapped pcie around, changed cables you name it. In the end I blamed "dying" speakers amp as they have 10 years now only to realize a minute ago it was interference from the fecking cell phone's 4g...1
-
Got a new job and I'm moving from academia to industry. Decided to step up my web dev game by using Netlify and GatsbyJS to build a static site blog.
Not a difficult task but it forces me to look at more current technologies. -
Is this okay, why or why not? (I see this used that's why I ask
public static Main instance = new Main();3 -
It looks like Olognion is shutting down due to the intersection of !money and !ads. I kind of feel like we could keep this site alive with a combination of a static site generation and/or some crowdfunding.
Thoughts?
https://twitter.com/theolognion/...
https://web.archive.org/web/...11 -
One of these days my Windows 10 system will actually figure out how to obtain an IPv6 address without needing me to manually run ipconfig /renew6 or disable/reenable the network adapter... For now, static IPv6 it is
-
!rant
Python is a language I love to use. But after using a typed language I just so wanted that feature in Python. And guess what, there's already a project that does that - mypy! Static typing for Python. Just wow!1 -
https://stackoverflow.com/questions...
I'm quite tempted to tell him to implement everything static in Python and get this one maybe non-static string using RegEx, but I don't want to lose any more reputation. D:1 -
Me: *Building my own CSS and JS framework for static websites and testing it as i go while building my work site*
Inner me: Stop remaking the wheel, use MDL!
Me: *Starts sweating furiously*
Why must JS and CSS be so bloody horrible to build with from scratch, should I just use MDL and extend it with some custom classes or keep powering forward?6 -
How to serve a static file when infra setup is something every hard to do?
<script src="/path/to/my/fav/lang.cxx?filename=mystaticfile.js" type="text/javascript" />
... Brilliant !5 -
I uploaded my static site on AWS. Doesn't load when I typed the public IP in the URL. Googled, found StackOverflow answer to traffic and ports as a security group to AWS. Tried it and it still doesn't work.
Hey Bluehost, sorry I left but I'm back now7 -
So, I need to customize some shit for my company's app...
Just discovered they somehow manage to call a protected method on an object stored in a field... I can't even... How does that even compile? And also, things neccessary for my subclass are private with no getter...
private static final int ZERO = 0;
private static final int ONE = 1;
private static final int TWO = 2;
What. The. Hell. Why?
Damn Java. Though this is the programmer's fault, it does seem to favor this kind of shit.2 -
So my computer is doing ok after becoming spastic over viruses. I did hardware and software cleaning. First time I did removing hardware parts but it worked it way better than expected with the static sensitive parts (I used a anti static wrist band). Congrats to myself I guess :)3
-
The evolution of code, in Python:
-Many scripts
-Refactor common functions into a Utility class
-Make the scripts into classes/methods with a "static main"
-Create a super script to run them all
I'd provide a screen shot of the last but to much propriety info... But yes it looks short and simple 😄😊 -
Why does java have so many nonsensical limitations? Why? Why can't we have multiple heritage? Why can't we have friend classes? Why can't we make static abstract methods? Oracle, PLEASE.9
-
Which static site generator are you using?
Jekyll vs Hugo vs Gatsby vs Hexo ...
I want to build my personal blog using it, I've also used ghost.
Which one is better in terms of performance?6 -
Once I helped one of my friends writing a coding project for an interview for him.
We worked out a solution in C++. I showed him all the class hierarchies, how the flow worked and so on.
The day after he told me he re-wrote it in C# as he was more confident with it. Fair enough.
He changed most of the names using camel + underscore notation, sometimes starting with a capital letter, sometimes not!
But the best (or, rather, worst) was to convert the class hierarchy in a big class with all stuff in it, called "CMother". That got me. This class had a couple of static methods that took a lot (if not all) inputs that somehow coincided with the member variables of another class and did some work with them (like a constructor of that class would do).
Needless to say, he didn't got the job -
Never underestimate the power of a misplaced static in your Java to totally fuck you over.
I was busy with my computer science project for the semester where we have to implement a Sudoku solver without backtracking by using graph theory.
So there I was writing my data structure for the grid when for some reason all the cells were initialized with the value 8.
After a whole night of debugging I was about to start over when I realized I had made my array static.
And boom, it works. WTF!!!!!!!3 -
When you pick up a codebase from 4 years ago of utter dissaray and static/hard coded in nature.
Then later meet said original developer presenting at a conference on re-useable code.
There is a feeling akin to meeting someone whom you have seen naked...2 -
The last 2 days trying to fix a code with 5 String arrays and static indexes that you have to guess.
The nightmare of ArrayIndexOutOfBoundsException.1 -
I’ve been asked by two different people to make them a website. I’ve been building SPAs for so long I don’t even know what the go to is any more for a static site CRM. Are we still predominately stuck with WordPress if wanting to meet an efficient timeframe/budget?11
-
I want to create a static JS class/file to hold shared functions but I can't seem to make it usable in other JS files.
import DbCommons from './commons' //Same folder
getCategories() {
return this.db.transaction((tx) => {
tx.executeSql('SELECT * FROM ' + DbCommons.CategoryTable, []) //Says not found
I forget how do I make things visible outisde of the actualy JS file11 -
In highschool I made simple static webpages for small businesses. No div tags, this was all <tr><td> all the way down.
One client was upset that the website was too 'liney' and wanted more 'pop' with a content management system and push updates for the same price.4 -
i know i am late to the party, but i am beginning to fall in love with json for my use of static data procession!
-
What the f*...
SomeType {
var something = {
somethingElse: "blah",
whatever: "halb"
}
var doStuff = function() {
this.something.whatever = "foo";
}
}
Based on what fucking logic are you claiming "something" is _undefined_ while running doStuff()??? What the fuck is wrong with you??? It's a freakin' static context!!!! "SOMETHING" IS DESIGNED TO BE DEFINED ! ! ! ! !8 -
After having struggled with trying to set up a server for my static files, I finally gave in and signed up for AWS S3. Why did I wait so long?1
-
Method passing as argument.
Fuck you who are doing that.
FUCK YOU !!!!
Use fucking STATIC !!!!!!!!11 -
Why somebody would think that allocate huge amount of objects in the static memory make any sense?? Why??? You need to allocate a bloody database context and all the allocation of your IOC containers and keep increasing!!!
-
This is Node.js FYI
Exporting a single class from a file called util.js. This class only has static methods. Each method is a util function. No fucking way of importing a single method. Class abuse?6 -
“20” twenty static code if conditions...
if() {} else if(){} else if(....
with static code contains the different names of some users... and he still thinking that it the best way to do it!!!! -
I am starting to get a hang of kotlin at last.
But its gives such a weird feeling. all these years i was writing great code that could lift mountains without failing. And now this language comes in, says "fuck you, we must prevent null and make everything static/final asap!!"
Like static inner classes? Why would we even want them? Well the lady says am wrong, am wrong. -
APIs this have unnecessary global state (static config properties) as if you're writing a monolithic single threaded app.
-
How are we feeling about the new Ryzen lineup for workstations that can do a bit of gaming on the side?
I'm so looking to go back to team red, but I don't know how beneficial the no of cores Ryzen provides is for compiling, static analysis and other dev tasks.
Anyone have experience with Ryzen for dev'ing?7 -
Checked out scss today and it shortened the time it takes me to make a static UI by about x10
.
Sadly I did this to procrastinate writing my thesis. -
https://devrant.io/static/devrant/...
The girl at the bottom needs a tooltip above her:
,{shiposting loudly}2 -
WTF?
Just found this code:
"It is assumed that all 'static final String'-Attributes of this class are a key in the property file (which is validated by reflection)."
SO REFACTORING YOUR FUCKING MAGIC NUMBERS WITH A MEANINGFUL CONSTANT MADE THE APP CRASH. ASSHOLE. -
Would you use react to create something like a static corporate website?
If not, with which framework/ technology would you do it?10 -
C++: the Static Initialisation Order Fiasco. If you have two static instances in separate translation units, there is no way to guarantee their initialisation order, you're at the mercy of the compiler/linker. If one of the instance constructors depends on the other already being initialised, you have a 50% random chance of your program blowing up. The same ordering problem applies to global destruction at program termination time.2
-
Java apparently thinks it would be too convenient if we would use comparison operators on enumerations.
If you have to use the .ordinal() every time you want to do such a thing, you make the code uglier that you're trying to clean up to begin with!
Time to do this the hard way:
public static final int YELLING = 0;
public static final int SCREAMING = 1;
...1 -
So, guys, I'm wondering if someone can help me wkth this thing. I'm sorta newish to programming and was searching up different kinds of typing. Basically what I found was:
Strong: Variables are explicitly declared, can only be changed to values of that type
Weak: Variables are implicitly typed, can accept any value of any type.
However, upon searching static and dynamic, it says the same things for dynamic and weak, and for static and strong. Can anyone help me by telling me the dofference between these (if you even understood this post 😅)
Thanks5 -
Is storing-of-data-in-classes-as-static-variables-to-access-them-later-on-from-one-page-to-another a good practice? It always seemed fishy to me...5
-
package bar;
public class Foo {
public static void main(){
System.out.println("Hello, World!");
}
}
I still wonder why I didn't start with Python, print('Hello, World') is a god damn one-liner11 -
This will never clash:
static createGuid() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return s4() + s4() + s4() + s4(); // Example => 'e014026082e6237b'
} -
Don't you guys love it when your ISP suddenly decides to change your public IP? The one you were using for months?
I know we're technically not getting a static address guarantee (that is for some reason something only companies can buy), but a heads up would be nice...
I spent like an hour debugging why my VPN suddenly couldn't connect...8 -
Jason Bourne logic: type "run predictive algorithm" without any parameters into a terminal and it returns the locations of whatever you want. Either that function is the _best_ at predicting user input, or its variables are so hardcoded that we've just discovered the hardest material on earth2
-
Public static void Main()
{
wakeUp();
massiveProject.refactorLargeSwathsOfCodeForReusability();
smallerProject.findOutItCanBeDoneInOneLine();
Environment.RageQuit();
} -
Sharing the repo for a POC im working on right now for anyone interested in Clojure. Im building a web app which serves static HTML generated by a custom engine. You can literally write HTML in Clojure. Its still very much a work in progress.
https://github.com/LikeLikeAteMyShi...2 -
Migrate a site to a new web CMS... by rendering all current pages as static html files and copying it to a new server.
(true story) -
!Rant
What's the best way to get into remote work or freelance. I'm almost done making a personal website to show my skills but I wanna avoid doing static websites and work on web or mobile systems.
Any advice would greatly be appreciated. Where to apply, mandatory skills/languages, best way to present yourself in a job application, etc4 -
6hrs trying to get a static and dynamic cell working in Swift. Xcode crashes and not a fucking thing was saved! My git commits make no fucking sense!4
-
How do you deal with clients continuously rewriting the content for a static website and every time you deploy they rewrite it again?
Some pages of this site I'm currently working on are on their 6th version just for written content changes!
I wanna drive over there and punch them every time they do.5 -
so i had this day at college we were supposed have a viva ( oral test ) ..the teacher asked me to print hello world..in java but no where can i use a static method including 'main'..well i made a static block instead and added System.exit in it.. and i had to write the complete syntax of main else it wont run..but my teacher snapped back at me saying it could be done.. with a non static main
..nodded an okay..didnt want a fight..came home..figured out the thing she said is now obsolete.. fuckin hell..update yourself at least..1 -
What do you guys think about this?
https://github.com/klopango/...
It's facemash, recreated using firebase and a static website.
( I feel bad ass when I created this so I think this could be in the #wk65 tag)2 -
So, the main system we develop and "maintain" is a horrible monolithic huge project that has the majority of the code in one and only one god class.
On top of that, all the main logic is implemented directly in the "main" method (yes, the "public static void main"). Now every time you have to create a method to use it in the main logic, it has to be static!
God, I hate to even look at this class, let alone touch it, I feel dirty, like I'm touching a pile of shit. -
Why the pointer of member function so special.
trying make a non-template class that like std::function but simpler:
1. wrap static function pointer.
2. wrap class member function pointer and the class object pointer.
3. WITHOUT ALLOCATE MEMORY.
I can't store member function pointer because the size is undefined?! -
Goddammit have tried for several days to get a vpn up and running so we can have a mac as build server.
I have opened the ports on the router, tried l2tp and openvpn, everything works on the local network.
However accessing my static ip from my ISP, it just gives me weird errors from the devices no information. Goddammit what to do....5 -
spent close to 3 hrs trying to figure out why my server wasn't serving my webpage (consisting of both static files and HTML) only to find out I deleted the content in the base file that all other files were supposed to extend from. Ah! a month's work! Thank God for version control. How did people survive before? 🤔1
-
1) Use Jmockit to write some test utilizing $clinit method
2) Have private static field in enum (along with static initialization block)
????(Doesn't work when I run mvn clean install (despite the fact it was working on eclipse) on cmd, because classes can't be found, log4j, etc.)
Profit -
Today I found a faulty design choice in java, that seriously makes me hate java. Basically java prohibits abstract static methods. This -combined with the poor design choices for constructors - means that Subclasses cannot have a common constructor or static method calling the constructor.
Basically meaning that you can't just map a collection to objects without handling EVERY FUCKING CASE, WRITING THE WHOLE MAPPING AGAIN AND AGAIN, ADDING A FORCED PORTION OF SPAGHETTI WITH EVERY CLASS WHERE THIS WAS NEEDED.
https://stackoverflow.com/questions...
There seem to be other OOP languages with this faulty design. Can't say if I now hate OOP ingeneral or not, because maybe some languages may have provided a substitute for this6 -
My colleague afraid and refused to pick up new things, and he thought front end is just about static stuff with some basic JavaScript. Good luck to his future.1
-
!rant
Is there any static site generator or builder, like webpack but which builds/compiles static HTML files? In which we can use partials and things like sass etc.
Actually I am asking for another js module/framework... Sorry :|6 -
Really big problem with a detail in a Google example code. Working on a reporting service for Googles ad manager, pulling statistics based on Advertiser ID. Made good progress till I hit a wall trying to make the script work with command line arguments. All other arguments populated nicely but the choice of download format would not work. I read the documentation and studied Googles example. The example feeds a static function value "ExportFormat::CSV_DUMP". Worked. Changing the format worked too. But it was impossible to change it dynamically. I tried for hours but only got different error messages. In desperation I started reading the Google API source code for the function. Turns out the function called actually expects a string! Just giving the format string, like "CSV_DUMP" works perfectly. And makes a lot of sense. Have no idea why the examples uses ExportFormat and Paamayim Nekudotayim. Maybe they improved the code and stopped using a static function for this and forgot to change the example. Somehow the example also works...1
-
Guys and gals, what's tour opinion on static website generators? Have you ever used one?
The concept kind of intrigues me and I was considering a Hugo + Travis CI stack.7 -
Statically linking to qt5 is quickly driving me fucking insane.
I've a list of unresolved dependencies during linking longer than a really long fucking list. Ugh.
Cmake, why can't you save me?
Think I'll just go back to dynamic and build on each needed system.1 -
Rust's type system is amazing. I love it so much, but every time I get a compiler error I look at garbage collection with envy. It's such a love/hate relationship.7
-
Space X had a "Static fire anamoly" today. Apparently at work everyone is having a "Static intelligence anamoly".
-
public static bool IsYouCrazy()
{
// I can't stand random
// carriage returns
bool hasRandomBlankLines = true;
Return hasRandomBlankLines;
} -
public class MyLife {
public static void main (String [] args) {
System.out.println ("My life sucks!");
}
} -
Dear PHP creators. Why did you think having "static" overriding "private" was a good idea? I get that you won't have instances of a static value but private should still take precedence.
-
TIL the definition of Favela Architecture.
The blue spots are (copied) helper classes and everything is static. -
Life is too short to have commented codes; don't want to go back to it once it shows up in the static code analysis scan9
-
I just pushed an app that sends mails with an static "to:" to my personal address. Will the spam folder make it?
-
Why is my test not failing? The actual and the expected json is completely different? What the fuck!?!
It says:
static::assertJson($expected, $actual);
right there.
Oh wait.
Nevermind.
`static::assertJson` only checks for any VALID json string that I always provided in with my own expectation m)
Use `assertJsonStringEqualsJsonString` instead.
What.
Who needs meaningful defaults.
(I would claim that `assertJson` should be defaulft for string equalness, and assertValidJson should be for any Json validation. But you are free to disagree.)4 -
How should I explain to my colleagues why to use a object oriented approach or even dependency injection when they write mostly only static methods in our projects?
Points like testing and maintenance don‘t sadly work.2 -
haha i get to know so much new things everytime i try web development.
Interestingly, i don't know even the basics of any framework or websites, yet i am a "JAMstack" developer (coz i use mkdocs to maintain a website and am pretty comfortable with static site generators)
how cool is that? XD -
`[vuex] unknown mutation type:`
This is the worst bullshit error that I ever got. It just stubbornly stays there making me waste my whole morning on this stupid error and still no solution.
Using >> Nuxt.js with static site generation2 -
So can anyone suggest me a no-html/css blogging solution with very basic markup ( headers, text , image and code blocks(v. imp)
that would satisfy the following constraints:
1 must allows syntax highlighting for code
2 must have a wyswyg editor for creating blogs with code blocks/ auto image copy paste feature(like ms word or google docs)
3 automatically generate pages or generate pages with minimal steps(like one click to publish button and article is published
4 remote content management. I don't wanna have to upload my whole repo to upload one article
5 categorizing/tagging system(but not necessary)
6 ads/discussion forum (but not necessary)
7 free/ minimal cost hosting
I have tried a lot of solutions like wordpress, blogger and static site generator like mkdocs. mkdocs has been my most favorite tool as it gave almost all those features but had a few issues:
1. it fucked up my python modules
2. for every new article, i would have to add a line in some yaml file, and the file was growing big. it was manageable but i get lazy in the process : look at file properties, copy paths( with windows adding another stupid layer of inconvenience), pasting file names, etc
3. would have to manually add image in the folders to use them in articles
4. the mkdocs would need to first build locally and then it would upload it to ghpages via git. I would have preferred that i add an article via github gui and it starts showing automatically
5. no fun in writing articles. would have to write article as if writing some code, with all the markdown syntax of # ,** and ``` . I ended up writing articles in google docs, and adding their links in the nav menu via yaml file. meh. worked but kinda disjointed.
I am guessing maybe jekyll could be an option, thoughts? I also revisited wordpress and that could potentially be a solution to all my needs, but i haven't seen a free hosting solution for wordpress that doesn't come with its limitations and hassles
Thoughts?4 -
The best explanation why we need Static Import Libraries to load a dll and wtf they contain
https://cnblogs.com/adylee/p/...
and many interesting stuff about PE file format3 -
Once this happened to me where I copied some static text from notepad to VIM editor and my test cases was failing because of junk characters inserted. It ruined whole dam day and later found out the root cause.
Something I learned that Windows != Linux1 -
Getting Cluster Container Servers running with a static NFS Server in the Background.
This could be called "clusterfuck", cause my mind was fucked. -
Hey guys I've been learning reactjs , jquery bootstrap basically a lot of static stuff but now I want to build a dynamic site like a blog I have no idea how to get started any tips or advice...8
-
Is storing game score as static int is a good idea? I know you should avoid them, but is it the same in this case?3
-
!rant
I was scrolling devrant as we do and spotted something intriguing.
Just beneath the panel where the 'wyd' tag is- is some background text. And it is static. Its the bar of check boxes that allow us to choose a filter (Algo. Recent etc)
Just random noticings.1 -
laravel-excel has an absolute piece of shit importer. So rigid I have to jump through loops, use hacks so static functions fill up non-static properties just to do half of what I probably could do much more easily with phpspreadsheet. And to top it off I have no way of getting direct feedback unless it's using the console. What a fucking joke5
-
Just found this little nugget... So much wrong with this.
public static class CleanString
{
public static string CleanString(this String str)
{
if (str != "" && str != null)
{
str = str.Replace("!", "");
str = str.Replace("£", "");
str = str.Replace("$", "");
str = str.Replace("%", "");
str = str.Replace("^", "");
str = str.Replace("&", "");
str = str.Replace("*", "");
str = str.Replace("(", "");
str = str.Replace(")", "");
str = str.Replace("-", "");
str = str.Replace("=", "");
str = str.Replace("{", "");
str = str.Replace("}", "");
str = str.Replace("[", "");
str = str.Replace("]", "");
.....
return str;
}
}
}2 -
not only using a static factor to resize a freeform, user uploaded image into thumbnails, but also defining this "const" in every method that uses it ... with the same values ... gotta love working with this code ...
-
Here's an achievement to celebrate
Wrote my own static file server on android to serve static react pages as an app to frontend -
Made some basic static sites in early 2010’s, started getting bootcamp ads frequently.
Eventually joined one & saw what I’ve been missing out on...actually tried in bootcamp and now I’m almost a real deal dev guy 👌🏿
...actually extremely happy but don’t wanna be that guy -
I have watched a couple of videos on YouTube talking about Elm. It is a language used to develop user interfaces. It has a very organized ecosystem (unlike JS) and it is pretty cool to code with. Static typing, everything is immutable, etc...
For those who have worked with it, is it worth learning? I would love to know your experience.1 -
I just want to say that I am extremely irritated that the question of which webserver to use to serve static files inside a docker container has become political.12
-
so... if someone is learning php, then all of their pages would be php scripts which needs the php engine to execute, aka a complete server set up. therefore no chance of sharing their progress or cool mini projects to the world by setting up a static github page.
Why didn't anyone tell me about that :/1 -
Writing--
public static void main(String args[ ] ) all the time (in every program)....during competitive programming questions.... :/
I get the meaning but still....just look at c or py...:/ -
How, to load static images in the reactJS component, by using like declaring in a stateless function where we declare a style object name style return and passing into a <div style={...}>2
-
!rant
Got a freelance job, I need to make a websites for doctors (3-5 pages + mostly static pages). Should i use a CMS? Please don't say WordPress.11 -
'Every variable is a static constant once declared'
All variables in PuppetDSL, really hard to wrap the head around if you are 'used to' re-assign a variable a new value.5 -
Friend asked me to make a site for her dad. Seems like he just wants a simple static site. Working for a friend's relative is not a good idea, is it? What's the chance of this going south?15
-
We had an argument about constructor overloading vs static functions that creates an instance with no args constructor and then sets the variables. It lasted too long so we decided agree to disagree.3
-
!rant
Is it unprofessional to have my web application and my static content hosted through different ports (like having the static content on 80, but when it posts to my database it calls different random ports)?2 -
Is web server like apache or nginx required if there’s no static resource and no need to reverse proxy?11
-
Todays website fail, looks like someone is using a NFS mount for the site:
"Deprecated: Non-static method PageLinesTemplate::current_admin_post_type() should not be called statically, assuming $this from incompatible context in /nfs/c03/h03/mnt/166492/domains/makerspace.com/html/wp-content/themes/pagelines/admin/class.options.metapanel.php on line 30" -
programming:
cc hello_world.c -o hello world
object-oriented programming:
cc -c hello_world.c -o hello_world.o
cc hello_world.o -o hello world
some weird shit:
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}4 -
Generally new to programming, building a static practice portfolio site, encounters first few hours of being stumped from coding.
I now understand the struggle of missing semi-colons 🙃 -
I need to integrate ChargeBee in our product.
They have .Net lib……… Based on fucking static config. Well, I’ll add 1 week to due date for rewriting their lib….
How can they even publicly suggest use of static configuration?
I didn’t even start this project and I feel that it will be one of most painful integrations I’ve done. -
Worked on a project where the variable was public and static, was accessed at multiple locations and across multiple threads and no it wasn't using thread safe implementation. Since then whenever I read public static I start praying the next word be "final".
-
Does anyone here prefer dynamic languages for large scale projects?
If so, have you looked into Crystal? Why would you prefer Ruby over Crystal? (Nearly or exactly identical code but one is supported by static typing) -
what are you all using for static site generations? like I am planning todo a collection of links/resources/knowledge for personal use. Would do it with markdown and heard about https://www.11ty.dev/docs/ and jekyll, can you recommend me some others?5
-
Hey guys, is someone there using Middleman with Foundation?
I am developing a static website but foundation classes ain't considered with Middleman.
In the head I put foundation stylesheet before the others, and jquery before foundation.
If someone has a solution, this may help me a lot.
Thanks! -
What do u think guys about the generic idea to add static methods in a class that will be some sort of "thematic helpers" that will be used in the whole app ?10
-
>Be me
>Have the COMPAL modem with the DOCSIS OS
>Change my bedroom router's IP to static after doing factory reset on the modem
>As expected, I get booted from the modem settings page
>Cannot log in now, because "another user is already signed into the modem settings page"
Stupid piece of silicon waste, whyyyy. I hate that thing, ugh! -
I took an intro to web dev class for credits at my college, seeing as to how I was just short enough credits to graduate...
Currently working as a web developer, gonna be really funny writing unstyled static HTML on tests